Determines if a given number is odd and even
Install it with npm:
$ npm i is-odd-and-even
It can work both with strings and numbers
import isOddAndEven from 'is-odd-and-even'
console.log(isOddAndEven('1')) // false
console.log(isOddAndEven('2')) // false
console.log(isOddAndEven(3)) // false
console.log(isOddAndEven(4)) // false
Copyright © 2022, fabrisdev. Released under the MIT License.