Your IP : 216.73.216.86


Current Path : /home/emeraadmin/www/node_modules/redux/src/utils/
Upload File :
Current File : /home/emeraadmin/www/node_modules/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
}