Skip to content

Fabrisdev/is-odd-and-even

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.


About

Determines if a given number is odd and even

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published