Urara-Blog/node_modules/.pnpm-store/v3/files/f4/b7104a6b60fae1891c401c9d1200a0bb996cb5fdbb204429578262e76627092cc6bcd3c0c7d80eddf0cb0e9cc8f187b971850167b78788941e0e7880ac5fb5
2022-08-14 01:14:53 +08:00

8 lines
251 B
Text

export default function isPlainObject(value) {
if (Object.prototype.toString.call(value) !== '[object Object]') {
return false
}
const prototype = Object.getPrototypeOf(value)
return prototype === null || prototype === Object.prototype
}