is-value-odd
v1.0.0
Published
Function checks if given value is Odd or not
Downloads
5
Readme
is-value-odd
Performs checking if passed value is odd or not.
Returns true
if value is odd, otherwise false
.
Floors float numbers, throws error if value is not a number.
Arrays are considered to be not valid numbers.
Installation
Using npm:
$ npm i -g is-value-odd
$ npm i --save is-value-odd
Usage
Using module:
const isValueOdd = require('is-value-odd');
const result = isValueOdd(value);
Using shell:
$ isvalueodd value