DEV Community

Discussion on: 10 useless NPM Package with millions of downloads

Collapse
 
totally_chase profile image
Phantz

yeah we should probably have a package for every single prototype method since, as you said, we can't use methods in higher order functions.

Oh wait, arrow functions exist! Phew, what a relief.

Although I suppose arrow functions could be considered too much effort, so we may as well have a package for every single method anyway. Let's do that!

/s

Collapse
 
mcmath profile image
mcmath • Edited

But see my comment above about inline arrow functions being recreated every time they're evaluated. Maybe this doesn't matter in 99% of cases, but if it matters 1% of the time, then it's not useless in my book.