2 ms·
I'm all for libraries that do one thing and do it well. But again, that's not what I was complaining about. Consider: https://www.npmjs.com/package/isarray htt
by angersock 12y ago
I'm all for libraries that do one thing and do it well. But again, that's not what I was complaining about. Consider:
https://www.npmjs.com/package/isarray https://www.npmjs.com/package/isarray
Compare with:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
And again, for browser stuff, sure--but this is a controlled runtime on the server. This shouldn't even be a question.
What I've also noticed is the tendency to use lodash and underscore in places where there are completely reasonable standard language features, like _.forEach().
Again, the Javascript language is a bit weird, and lacking perhaps in a lot of functionality that a default Ruby installation (say) might get you, but this is just silly.