Modulous-Two
Useless module with poorly written tests. isEven. JavaScript
Getting Started
npm install --save modulous-two
Motivation
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-two
Or via Yarn:
yarn add modulous-two
Then in your JavaScript file, require the factory like so:
// Require the factory to select module to useconst modTwo = require('modulous-two') const isEven = modTwo('simple') console.log(isEven(2)) // trueconsole.log(isEven(3)) // false
Contributing
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