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

This commit is contained in:
Brandon Smith 2017-10-17 11:36:10 -04:00 committed by Sindre Sorhus
parent 00974a2fe9
commit 615932d6c2
3 changed files with 32 additions and 0 deletions

View file

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