Function isEmpty

  • Checks if value is empty. A value is considered empty unless it’s an arguments object, array, string, or jQuery-like collection with a length greater than 0 or an object with own enumerable properties.

    Type Parameters

    • T extends {
          __trapAny: any;
      }

    Parameters

    • Optional value: T

      The value to inspect.

    Returns boolean

    Returns true if value is empty, else false.

  • Parameters

    • value: string

    Returns value is ""

  • Parameters

    • value: undefined | null | Map<any, any> | Set<any> | List<any>

    Returns boolean

  • Parameters

    • value: object

    Returns boolean

  • Type Parameters

    • T extends object

    Parameters

    • value: undefined | null | T

    Returns value is undefined | null | EmptyObjectOf<T>

  • Parameters

    • Optional value: any

    Returns boolean

Generated using TypeDoc