npm.io
1.0.4 • Published 5 years agoCLI

check-odd

Licence
ISC
Version
1.0.4
Deps
0
Size
1 kB
Vulns
0
Weekly
0
Stars
2

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

Keywords