JavaScript and TypeScript features of the last 3 years
hmm... I've been using JS/TS for almost as long as they've existed. A lot of these are nice. Some less so. Some quick thoughts:- Tagged template strings. This just feels dirty to me. Probably won't use, but when I see it in a code base I won't be so confused at least- matchAll. I've never needed this. I've used match with g a bunch, but I never need the capture group.- Promise.allSettled. THIS is useful. I've implemented this (under a different name) in almost every code base I've worked on, and got bit HARD by not understanding this behavior long ago (huge production outage that took hours and many engineers to discover)- globalThis. EW. Don't think I have to elaborate- replaceAll. It's always annoyed me needing to use RegEx for simple replace all. so Yay!- ??=, &&=, ||= These seem really useful, but also potentially hard to read, but I think if I get used to their existence they'd become second nature- # private... not sure why they didn't just use the "private" keyword, but I don't care. I almost always use TypeScript anyways- static ... YAY! finally. Again, if they could do this i don't see why not "private"For the TypeScript stuff I'll just say the type system has kinda jumped the shark, but I don't hate it. It's SO robust and of all the new stuff being added I'll maybe use 1/10 of it, but it's good to know I can describe literally anything* with it if needed.* EXCEPT IF I WANT TO USE AN ENUM/TYPE AS A KEY IN AN DICT WHICH I REALLY WANT TO DO!!