• Returns whether something is a plain object A plain object is an object that either has no prototype at all (no inherited methods) or only inherits from Object.prototype

    Parameters

    • value: unknown

      The value to compare.

    Returns value is AnyRecord

    Example

    isPlainObject({ a: 1 }); // true
    isPlainObject(pojo()); // true
    isPlainObject(new Date()); // false

Methods

Methods