even-check

3.0.4 • Public • Published

even-check

Returns true if the given number is even, and is an integer that does not exceed the JavaScript MAXIMUM_SAFE_INTEGER.

Based on the is-odd package by Jon Schlinkert.

Install

Install with npm:

$ npm install even-check

Usage

Works with strings or numbers.

const isEven = require('even-check');

console.log(isEven('1')); //=> true
console.log(isEven('3')); //=> true

console.log(isEven(0)); //=> false
console.log(isEven(2)); //=> false

Author

theendofitall

Email

Package Sidebar

Install

npm i even-check

Weekly Downloads

1

Version

3.0.4

License

MIT

Unpacked Size

2.77 kB

Total Files

4

Last publish

Collaborators

  • theendofitall