isPlainObject.d.ts 444 B

1234567891011
  1. /**
  2. * Returns true if the passed value is "plain" object, i.e. an object whose
  3. * prototype is the root `Object.prototype`. This includes objects created
  4. * using object literals, but not for instance for class instances.
  5. *
  6. * @param {any} value The value to inspect.
  7. * @returns {boolean} True if the argument appears to be a plain object.
  8. *
  9. * @public
  10. */
  11. export default function isPlainObject(value: unknown): value is object;