mirror of
https://github.com/hanzoai/agency.git
synced 2026-11-02 19:13:28 +00:00
9 lines
262 B
Plaintext
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
|
|
}
|