Preview: isPlainObject.js
Size: 392 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/redux/src/utils/isPlainObject.js
/**
* @param {any} obj The object to inspect.
* @returns {boolean} True if the argument appears to be a plain object.
*/
export default function isPlainObject(obj) {
if (typeof obj !== 'object' || obj === null) return false
let proto = obj
while (Object.getPrototypeOf(proto) !== null) {
proto = Object.getPrototypeOf(proto)
}
return Object.getPrototypeOf(obj) === proto
}
Directory Contents
Dirs: 0 × Files: 6