i-voted-for-trump/is-even
View on GitHub ↗ ★ 265 JavaScript archived
I created this in 2014, when I was learning how to program.
12 mentions on Hacker News by 12 people: 0 stories, 12 comments · first 2019-07-30 · latest 2026-08-31
20082026
-
As another commenter said, it's "is-even": https://github.com/i-voted-for-trump/is-even From that page: > I created this in 2014, when I was learning how to program. I've nothing against Jon Schlinkert, it's not his fault the way we build…
comment by eterm · 2026-08-31 · in Breaking Claude Code Opus 5 Auto Mode -
…(370k+) and is the only dependency of is-even [2]. [1]: https://www.npmjs.com/package/is-odd [2]: https://github.com/i-voted-for-trump/is-even/blob/585f8002bb...
comment by tgdn · 2024-05-13 · in NPM package is-even has over 140k weekly downloads -
…following “don’t repeat yourself” in its purest form, is-even depends on is-odd: /*! * is-even <https://github.com/jonschlinkert/is-even> * * Copyright (c) 2015, 2017, Jon Schlinkert. * Released under the MIT License. */ 'use strict'; var…
comment by divbzero · 2023-12-28 · in 4B If Statements -
The actual implementation of this package is even better. https://github.com/i-voted-for-trump/is-even/blob/master/ind...
comment by vegardlarsen · 2023-12-28 · in 4B If Statements -
…strict'; var isOdd = require('is-odd'); module.exports = function isEven(i) { return !isOdd(i); }; https://github.com/i-voted-for-trump/is-even/blob/master/ind...
comment by thunderbong · 2021-11-16 · in NPM – "is-even", 160k weekly downloads -
It throws an error on empty or non-integer values: https://github.com/i-voted-for-trump/is-even/blob/master/tes...
comment by Farow · 2021-11-16 · in NPM – "is-even", 160k weekly downloads -
…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...
comment by smt88 · 2021-11-16 · in NPM – "is-even", 160k weekly downloads -
https://github.com/jonschlinkert/is-even redirects to https://github.com/i-voted-for-trump/is-even
comment by Nicksil · 2021-11-16 · in NPM – "is-even", 160k weekly downloads -
…depends on is-odd, and just negates the return value of is-odd... Edit: it actually does! Hah! https://github.com/i-voted-for-trump/is-even/blob/master/ind...
comment by bellyfullofbac · 2021-07-15 · in Installed electron / react, it has 1861 dependencies. This is a problem -
…He abandoned the projects, but: * https://github.com/jonschlinkert/is-odd * https://github.com/jonschlinkert/is-even Of course that doesn't stop them from getting ~500k downloads/week.
comment by oauea · 2021-07-08 · in Npm Audit: broken by design? -
…[2] https://www.npmjs.com/package/is-odd EDIT: my favourite part, is-even depends on is-odd. https://github.com/jonschlinkert/is-even/blob/master/index.j...
comment by jonny383 · 2020-06-14 · in JavaScript Growing Pains: From 0 to 13,000 Dependencies -
…like x % 2 === 1? I'm a JS fan but had to admit I chuckled at the implementation of is-even: https://github.com/jonschlinkert/is-even/blob/master/index.j...
comment by tomduncalf · 2019-07-30 · in What’s New in ES2019