fast-odd-even
Version:
Is this odd or even, but it is *blazingly* fast β‘
34 lines (20 loc) β’ 1.04 kB
Markdown
# β‘πͺ fast-odd-even πͺβ‘
Are you tired of having to use separate packages like [is-odd](https://www.npmjs.com/package/is-odd) or [is-even](https://www.npmjs.com/package/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** π€©
```bash
npm install fast-odd-even
```
## Usage/Examples
π **Getting started** π is easy!
```javascript
const { isOdd, isEven } = require("fast-odd-even");
isOdd(5);
// true
isEven(5);
// false
```
## License
This project is π **licensed** π under the π€ **[MIT](https://choosealicense.com/licenses/mit/)** π€ license.