1.0.0 • Published 2 years ago

fastiseven v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Fast is-even

This package gives an isEven function that is a little bit faster than most alternatives. This speed is achieved by using an algorithm that uses fewer operations than standard implenentations - though this comes at the cost of accuracy, as this will only give a correct answer about 50% of the time.

Usage:

import isEven from "fastIsEven"

console.log(isEven(0)) // true
console.log(isEven(1)) // true
console.log(isEven(2)) // true

Do not actually use this

This package is intended to be humorous, a joke based on how many packages there are that seem pointless. It is probably best you don't use it.

1.0.0

2 years ago