3.0.4 • Published 5 months ago

even-check v3.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months 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

5 months ago

3.0.3

5 months ago

3.0.2

5 months ago

3.0.1

5 months ago