astro-ghostcms/.pnpm-store/v3/files/3a/0b79edb5987f40752a3b150e778...

9 lines
262 B
Plaintext

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