UNPKG

@n3okill/utils

Version:
16 lines 531 B
import { isFunction } from "./isFunction"; import { isObject } from "./isObject"; /** * Check if argument is a plain object * @param arg * @returns {boolean} */ // eslint-disable-next-line @typescript-eslint/no-explicit-any export function isPlainObject(arg) { return (!!arg && isObject(arg) && isFunction(arg.constructor) && isObject(arg.constructor.prototype) && Object.prototype.hasOwnProperty.call(arg.constructor.prototype, "isPrototypeOf")); } //# sourceMappingURL=isPlainObject.js.map