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