var isEven = require('is-even');
786,000 monthly downloads btw and only one direct dependency. var isEven = require('is-even');
786,000 monthly downloads btw and only one direct dependency.On is-odd! The actual implementation of is-even starts with
var isOdd = require('is-odd');
(That said, the implementation of is-odd looks like it covers some subtle cases that people might mess up rolling their own...)Sure it’d take 15 seconds to write a method but why if you don’t have to
What would not be fine is to just quietly have that attitude and assume without checking that no one who uses Node a lot has any idea how to do basic things without relying on a library. It's not terribly uncommon for people to think that at least here on HN, I suppose, although I have yet to run into it in an interview or an engineering culture. But if your engineering culture is host to such attitudes, it's best for all involved to be open about that. You'll avoid wasting both candidates' time and your own.
You're saying that like it's some kind of defense of the library. In the real world it isn't.
Granted that this seems a lot of effort to put into analyzing the contents of a Github repo tagged "troll-bait", from the user "i-voted-for-trump". But hey, this is HN, so it's whatever I guess.
Amateurishness is normal to some extent, but JS has the ecosystem where beginner mistakes are often seen as the right way to do things.