fast-odd-even
v1.0.0
Published
Is this odd or even, but it is *blazingly* fast ⚡
Downloads
8
Maintainers
Readme
⚡💪 fast-odd-even 💪⚡
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!
⚙️ Installation ⚙️
You can install this 💫 amazing 💫 tool using our favourite package manager 🤩 npm 🤩
npm install fast-odd-even
Usage/Examples
🏃 Getting started 🏃 is easy!
const { isOdd, isEven } = require("fast-odd-even");
isOdd(5);
// true
isEven(5);
// false
License
This project is 📜 licensed 📜 under the 🤓 MIT 🤓 license.