1.0.5 • Published 12 months ago

@nutandevjoshi/is-even-or-odd-as-a-string v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

is-even-or-odd-as-a-string NPM version NPM monthly downloads NPM total downloads

Returns string 'even' if the given number is even else returns 'odd'.

Please consider following this project's author, Pratik Joshi, and consider starring the project to show your :heart: and support.

Install

Install with npm:

$ npm i @nutandevjoshi/is-even-or-odd-as-a-string

Usage

Works with strings or numbers.

const isEvenOrOdd = require('@nutandevjoshi/is-even-or-odd-as-a-string');

console.log(isEvenOrOdd('1')); //=> odd
console.log(isEvenOrOdd('3')); //=> odd

console.log(isEvenOrOdd(0)); //=> even
console.log(isEvenOrOdd(2)); //=> even

Contributors

CommitsContributor
1nutandevjoshi

Author

Pratik Joshi

License

Copyright © 2023, Pratik Joshi. Released under the MIT License.


This file was generated by verb-generate-readme, v0.6.0, on May 31, 2018.

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago