Function isNotEmpty

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

    Parameters

    • value: undefined | null | ArrayLike<unknown>

      The value to check.

    Returns boolean

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

    See

    isEmpty for the inverse of this.

    Example

    Basic usage

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

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

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

Generated using TypeDoc