Are you tired of having to use separate packages like is-odd or is-even to check, if a number is odd or even? Are you tired of these 🐌 slow-performing 🐌 dependencies?
Look no further!
This package provides you with separate functions‚ isOdd()
and isEven()
, which do exactly what they say! And it does these things ⚡ blazingly fast ⚡, by utilizing a 👽 special technique 👽 called bitwise operations!
You can install this 💫 amazing 💫 tool using our favourite package manager 🤩 npm 🤩
npm install fast-odd-even
🏃 Getting started 🏃 is easy!
const { isOdd, isEven } = require("fast-odd-even");
isOdd(5);
// true
isEven(5);
// false
This project is 📜 licensed 📜 under the 🤓 MIT 🤓 license.