Add is.even() and is.odd() (#23)
This commit is contained in:
parent
00974a2fe9
commit
615932d6c2
3 changed files with 32 additions and 0 deletions
|
|
@ -170,6 +170,14 @@ Returns `true` if `value` is a DOM Element.
|
|||
|
||||
Check if `value` is `Infinity` or `-Infinity`.
|
||||
|
||||
##### .even(value)
|
||||
|
||||
Returns `true` if `value` is an even integer.
|
||||
|
||||
##### .odd(value)
|
||||
|
||||
Returns `true` if `value` is an odd integer.
|
||||
|
||||
##### .empty(value)
|
||||
|
||||
Returns `true` if `value` is falsy or an empty string, array, object, map, or set.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue