codetrix - v1.5.0
    Preparing search index...

    Function isEmpty

    • Checks if a value is considered empty. Supports strings, arrays, objects, maps, and sets.

      Parameters

      • value: any

        The value to check.

      Returns boolean

      true if the value is empty, false otherwise.

      isEmpty(''); // true
      isEmpty([]); // true
      isEmpty({}); // true
      isEmpty([1]); // false