is-odd
return the boolean value of Number X is odd or not.
Install
npm i --save @steven-y/is-odd
Usage
const { isOdd } = require("is-odd");
console.log(isOdd(1024));
// -> true
Caution
DO NOT SUPPORT number larger than 9007199254740991
一个恶搞JS的项目
return the boolean value of Number X is odd or not.
npm i --save @steven-y/is-odd
const { isOdd } = require("is-odd");
console.log(isOdd(1024));
// -> true
DO NOT SUPPORT number larger than 9007199254740991
一个恶搞JS的项目
MIT License