even-or-odd-faster

1.3.0 • Public • Published

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


Readme

Keywords

Package Sidebar

Install

npm i even-or-odd-faster

Weekly Downloads

0

Version

1.3.0

License

ISC

Unpacked Size

3.13 MB

Total Files

3

Last publish

Collaborators

  • lasgra