Add is.even() and is.odd()

This commit is contained in:
Brandon Smith 2017-10-17 07:39:00 -04:00
parent dc3b6ff86b
commit 5d5555b809
3 changed files with 32 additions and 0 deletions

View file

@ -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.