uft
    Preparing search index...

    Function isNotEmpty

    • Checks if an array-like value is not empty.

      Parameters

      • value: ArrayLike<unknown> | null | undefined

        The value to check.

      Returns boolean

      true if the value is neither nullish nor empty, false otherwise.

      isEmpty for the inverse of this.

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

      isNotEmpty('') // false
      isNotEmpty('foo') // true

      isNotEmpty(null) // false
      isNotEmpty(undefined) // false