> In another case, I saw an NPM package that detects if the number is odd or even. Writing n%2 == 0 is that hard thing?<p>Repository in question:<p>'use strict';<p>var isOdd = require('is-odd');<p>module.exports = function isEven(i) {
return !isOdd(i);
};