Add is.even() and is.odd()
This commit is contained in:
parent
dc3b6ff86b
commit
5d5555b809
3 changed files with 32 additions and 0 deletions
|
|
@ -165,6 +165,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