News for hackers. Stuff that matters.
Re:One liner NPM package “is-windows” has 2.5M dependants, w... by knd775 on Wednesday June 19, 2019 @10:04AM (#20223438)
Even better is 'is-even'. It depends on 'is-odd' and this is the entire thing:

  var isOdd = require('is-odd');
  
  module.exports = function isEven(i) {
    return !isOdd(i);
  };
Re:One liner NPM package “is-windows” has 2.5M dependants, w... by dingaling on Wednesday June 19, 2019 @10:24AM (#20223620)
What does it return for zero?
Re:One liner NPM package “is-windows” has 2.5M dependants, w... by rys on Wednesday June 19, 2019 @10:44AM (#20223823)
(Thankfully?) it gets that right
Re:One liner NPM package “is-windows” has 2.5M dependants, w... by tlrobinson on Wednesday June 19, 2019 @10:34AM (#20223705)
Zero is even.