Description
This is a lib to know if a number is even. (is a joke with the brazilian band: Grafith)
Usage
const is = ; ;
Result:
Você chupa
If you need a customizable result:
const is = ; ; { console;} { console;}
API
is(value, odd, even)
Parameter | Type | Value |
---|---|---|
value | number | any number |
odd | function | a custom function if the number is odd |
even | function | a custom function if the number is even |