Skip to content

isEmpty

isEmpty(value) → boolean · Type

Returns true if the value is null, empty string, or empty array.

  • value (required): the value to test
utlx
isEmpty(null)                            // true
isEmpty("")                              // true
isEmpty([])                              // true (empty array)
isEmpty("hello")                         // false
isEmpty([1])                             // false

Released under AGPL-3.0.