is

Methods

(inner) empty(value) → {boolean}

Source:

Check if parameter is empty.

'empty' means

  • an empty string
  • an empty array
  • an empty object (allow new Proxy({}, {}))
  • null
  • undefined
Example
const is = require('is-0')
is.empty('') // true
is.empty(1) // false
Parameters:
Name Type Description
value object

parameter

Returns:
Type
boolean