1.0.0 β’ Published 9 months ago
fast-odd-even v1.0.0
β‘πͺ 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.
1.0.0
9 months ago