Add is.domElement() (#11)

This commit is contained in:
Melvin 2017-10-07 09:19:11 -07:00 committed by Sindre Sorhus
parent 6268253ec6
commit 75ac3cd574
4 changed files with 42 additions and 1 deletions

View file

@ -145,11 +145,14 @@ Check if `value` (number) is in the range of `0` to `upperBound`.
is.inRange(3, 10);
```
##### .domElement(value)
Returns `true` if `value` is a DOM Element.
##### .infinite(value)
Check if `value` is `Infinity` or `-Infinity`.
##### .empty(value)
Returns `true` if `value` is falsy or an empty string, array, object, map, or set.