Skip to content

isNotEmpty

isNotEmpty(value) → boolean · Type

Checks if a value is not empty (inverse of isEmpty). Returns true for non-null, non-empty values.

  • value (required): value to test
utlx
isNotEmpty("hello")                      // true
isNotEmpty("")                           // false
isNotEmpty(null)                         // false
isNotEmpty([1, 2])                       // true
{
  hasName: isNotEmpty($input.name),
  hasItems: isNotEmpty($input.items)
}

Released under AGPL-3.0.