TS-Scribe - v0.6.2
    Preparing search index...

    Function isEmptyObject

    • Checks if a given value is an empty object (i.e., an object with no properties).

      Parameters

      • object: unknown

        The value to check.

      Returns boolean

      true if the value is an object and has no properties, otherwise false. Returns false for null, undefined, or non-object values, as well as arrays.

      isEmptyObject({});               // true
      isEmptyObject({ key: 'value' }); // false
      isEmptyObject([]); // false
      isEmptyObject(null); // false
      isEmptyObject(undefined); // false
      isEmptyObject('string'); // false