UNPKG
is-even
Version:
latest (1.0.0)
1.0.0
0.1.2
0.1.1
0.1.0
Return true if the given number is even.
github.com/jonschlinkert/is-even
jonschlinkert/is-even
is-even
/
index.js
15 lines
(11 loc)
•
254 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*! * is-even <https://github.com/jonschlinkert/is-even> * * Copyright (c) 2015, 2017, Jon Schlinkert. * Released under the MIT License. */
'use strict'
;
var
isOdd =
require
(
'is-odd'
);
module
.
exports
=
function
isEven
(
i
) {
return
!
isOdd
(i); };