@jossmac/lil-libs
    Preparing search index...

    Function isPlainObject

    • Checks whether a value is a plain object (including Object.create(null)).

      • value: unknown

        Unknown value to test.

      true for objects whose prototype is Object.prototype or null (including Object.create(null)); false for arrays, class instances, and non-objects.

      isPlainObject({}); // true
      isPlainObject(Object.create(null)); // true
      isPlainObject([]); // false
      isPlainObject(new Date()); // false