num-is-even-or-odd
Return "even" or "odd" when given a number.
Install
Install with npm:
$ npm install even-or-odd-faster
Important
Currently supports only positive numbers, smaller than 69000 !
Usage
Works with numbers.
You need to pass number to function "IsEvenOrOdd", if given something other than number it will return 'false'
const even = require('even-or-odd-faster')
// Whitout any return type parameter
console.log(IsEvenOrOdd(1)) //=> "odd"
console.log(IsEvenOrOdd(2)) //=> "even"
Author
lasgra