3 ms·
Of all the new features I think `class` is the one I've seen least adoption of. Not that I've read a huge amount of JS. There are some cases where it can be n
by biorach 5y ago
Of all the new features I think `class` is the one I've seen least adoption of.
Not that I've read a huge amount of JS.
There are some cases where it can be nice, but often it feels like a somewhat unnatural bolt-on to the language. I guess OO isn't that widely used in JS anyway.
Stuff like nullish coalescing and spread operators however... those things are great - they can save a lot of code.