is-falsey-x
Test if a given value is falsey.
module.exports(value)
⇒ boolean
⏏
This method tests if a given value is falsey.
Kind: Exported function
Returns: boolean
- true
if the value is falsey: otherwise false
.
Param | Type | Description |
---|---|---|
value | * |
The value to test. |
Example
import isFalsey from 'is-falsey-x';
console.log(isFalsey()); // true
console.log(isFalsey(0)); // true
console.log(isFalsey('')); // true
console.log(isFalsey(false)); // true
console.log(isFalsey(null)); // true
console.log(isFalsey(true)); // false
console.log(isFalsey([])); // false
console.log(isFalsey(1)); // false
console.log(isFalsey(function() {})); // false