IS_EMPTY

Returns whether a value is empty

Description

Returns true or false based on if the given value is empty.

Returns true if the parameter is one of the following values:

  • an empty string

  • an empty array

  • an object without properties

  • null

  • undefined

  • NaN

For any other value, returns false.

Function signature

IS_EMPTY(value: Number|String|Array|Object) => Boolean

Parameter

Description

Value

Value to check

Examples

Formula

Return value

IS_EMPTY("")

true

IS_EMPTY("a")

false

IS_EMPTY([])

true

IS_EMPTY({})

true

IS_EMPTY(0)

false