check-odd

1.0.4 • Public • Published

check-odd

Returns true if the given number is odd, and is an integer that does not exceed the JavaScript MAXIMUM_SAFE_INTEGER.

Usage

sample:

const isOdd = require('check-odd');

console.log(isOdd('1')); //=> true
console.log(isOdd('3')); //=> true

console.log(isOdd(0)); //=> false
console.log(isOdd(2)); //=> false

Package Sidebar

Install

npm i check-odd

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

1.22 kB

Total Files

3

Last publish

Collaborators

  • hadibavili