Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 947 Bytes

README.md

File metadata and controls

34 lines (21 loc) · 947 Bytes

is-odd-and-even NPM version NPM monthly downloads NPM total downloads

Determines if a given number is odd and even


Installation

Install it with npm:

$ npm i is-odd-and-even

Usage

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

License

Copyright © 2022, fabrisdev. Released under the MIT License.