3.0.4 • Published 2 years ago

even-check v3.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago