Files
lcbp3.np-dms.work/frontend/node_modules/is-plain-obj/index.js
2025-09-21 20:29:15 +07:00

9 lines
344 B
JavaScript

export default function isPlainObject(value) {
if (typeof value !== 'object' || value === null) {
return false;
}
const prototype = Object.getPrototypeOf(value);
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
}