1.0.2 • Published 8 years ago
modulous-two v1.0.2
Getting Started
npm install --save modulous-twoMotivation
I got motivation to do this quick project because of all of the solutions that r/ProgrammerHumor had for determining is a number is even or odd. So I came up with as many solutions as I could to try to find the fastest possible solution to this problem in JavaScript. Test results are posted below for those interested in the numbers behind each test and which modules performed best.
Prerequisites
- NodeJS
Installing
Here are the steps to get you started in exploring this useless module:
Start by installing it via Npm:
npm install --save modulous-twoOr via Yarn:
yarn add modulous-twoThen in your JavaScript file, require the factory like so:
// Require the factory to select module to use
const modTwo = require('modulous-two')
const isEven = modTwo('simple')
console.log(isEven(2)) // true
console.log(isEven(3)) // falseContributing
TODO
Please read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) for details on our code of conduct, and the process for submitting pull requests to us.Authors
- Mitchell Stack
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Acknowledgments
- Hat tip to anyone who's code was used
- Inspiration
- etc