Urara-Blog/node_modules/.pnpm-store/v3/files/e5/3994b63d933d6fdc34e34bb17de9d3110a0c60da7759bc23da26285861bd6990ddd56e4a5f47de0f76a54262422bdd7e4ad118fe5b46cc36432e8da8ec4cd6
2022-08-14 01:14:53 +08:00

8 lines
344 B
Text

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);
}