Edit this page

up.util up.util.isBlank(value)
JavaScript function

Return whether the given argument is considered to be blank.

By default, this function returns true for:

  • undefined
  • null
  • Empty strings
  • Empty arrays
  • A plain object without own enumerable properties

All other arguments return false.

To check implement blank-ness checks for user-defined classes, see up.util.isBlank.key.


Parameters

value

The value is to check.

Return value

boolean

Whether the value is blank.