@lab-code/is-odd

1.0.1 • Public • Published

is-odd

As you can guess it's fun package that allows you to do next:

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

Install

npm install --save @lab-code/is-odd

Usage

Works with strings and numbers.

const isOdd = require('@lab-code/is-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 @lab-code/is-odd

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

5.23 kB

Total Files

11

Last publish

Collaborators

  • nikitasmiththeone