Checks if an array-like value is not empty.
The value to check.
true if the value is neither nullish nor empty, false otherwise.
true
false
isEmpty for the inverse of this.
isNotEmpty([]) // falseisNotEmpty([1, 2]) // trueisNotEmpty('') // falseisNotEmpty('foo') // trueisNotEmpty(null) // falseisNotEmpty(undefined) // false Copy
isNotEmpty([]) // falseisNotEmpty([1, 2]) // trueisNotEmpty('') // falseisNotEmpty('foo') // trueisNotEmpty(null) // falseisNotEmpty(undefined) // false
Checks if an array-like value is not empty.