1.0.0 β€’ Published 9 months ago

fast-odd-even v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

⚑πŸ’ͺ 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.