uft
    Preparing search index...

    Function isEmpty

    • Checks if an array-like value is empty.

      Parameters

      • value: ArrayLike<unknown> | null | undefined

        The value to check.

      Returns boolean

      true if the value is nullish or empty, false otherwise.

      isNotEmpty for the inverse of this.

      isEmpty([]) // true
      isEmpty([1, 2]) // false

      isEmpty('') // true
      isEmpty('foo') // false

      isEmpty(null) // true
      isEmpty(undefined) // true