Skip to content

isBlank

isBlank(value) → boolean · Type

Returns true if the value is null, empty string, or whitespace-only.

  • value (required): the value to test
utlx
isBlank(null)                            // true
isBlank("")                              // true
isBlank("  ")                            // true (whitespace-only)
isBlank("hello")                         // false

Released under AGPL-3.0.