All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.src.util.isPlainObject.js Maven / Gradle / Ivy

There is a newer version: 3.4.15
Show newest version
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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy