Add is.empty() (#16)
This commit is contained in:
parent
ee8f5d16f8
commit
46e886d10b
3 changed files with 40 additions and 0 deletions
|
|
@ -150,6 +150,11 @@ is.inRange(3, 10);
|
|||
Check if `value` is `Infinity` or `-Infinity`.
|
||||
|
||||
|
||||
##### .empty(value)
|
||||
|
||||
Returns `true` if `value` is falsy or an empty string, array, object, map, or set.
|
||||
|
||||
|
||||
## FAQ
|
||||
|
||||
### Why yet another type checking module?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue