even-check
v3.0.4
Published
Returns true if the given number is even, and is an integer that does not exceed the JavaScript MAXIMUM_SAFE_INTEGER.
Downloads
3
Maintainers
Readme
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