This package certainly seems like satire. It has no actual implementation in it. Instead it depends on another npm package: `is-odd`.
https://github.com/i-voted-for-trump/is-even/blob/master/pac...
https://github.com/i-voted-for-trump/is-even/blob/master/pac...
2.7.3 :003 > 1.odd?
=> true
2.7.3 :004 > 2.odd?
=> false
2.7.3 :005 > 1.even?
=> false
2.7.3 :006 > 2.even?
=> true
2.7.3 :007 >EDIT: Confirmed, it was added in 1.8.7 according to Ruby Docs [1] [2]
[1] https://ruby-doc.org/core-1.8.7/Integer.html (present)
[2] https://ruby-doc.org/core-1.8.6/Integer.html (not present)
isEven(0);
//=> true
isEven('1');
//=> false
isEven(2);
//=> true
isEven('3');
//=> falseI don't think such packages should be on NPM either way.
This is what it says there:
> This is a joke. You'll only see this org if you are attempting to troll me about repositories I created when I was learning to program.
https://mobile.twitter.com/jonschlinkert
He definitely voted for trump.