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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.4
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.4
    0
  • 3.0.3
    0
  • 3.0.2
    0
  • 3.0.1
    0

Package Sidebar

Install

npm i even-check

Weekly Downloads

0

Version

3.0.4

License

MIT

Unpacked Size

2.77 kB

Total Files

4

Last publish

Collaborators

  • theendofitall