number-oddoreven
v1.0.5
Published
A package that returns true if the given number is odd or even. Blazingly fast performance along with an extensive API.
Downloads
17
Maintainers
Readme
number - odd or even
At least 99.9% of the time, any number can be odd or even. This uncertainty can be eliminated with number-oddoreven
. As it sports an incredibly fast, open-ended API, you can solve all even or odd related problems with only 1 line.
List of features
- [x] See if a number is odd or even
- [x] See if a number is odd or even
- [ ] See if a number is odd or even
Download & Installation
$ npm i number-oddoreven
Code Demo
Importing (ready for production)
var isoddOrEven = require("number-oddoreven");
Importing (development version)
var isoddOrEven = require("number-oddoreven");
Example usage
var isoddOrEven = require("number-oddoreven");
if (isoddOrEven(3)) {
console.log("The number is odd or even!");
}
Authors or Acknowledgments
- Arnar Freyr Ástvaldsson
- Anders Nyby Christensen
- Frederik Hammer
License
This project is licensed under the MIT License