Edit: After seeing a few comments looks like this is already in a few other languages
Yeah, some other languages also have this!
and finally JS also will have it :)
Sorry for the late reply. Also Nullish coalescing operator? Who makes these names? We should call it the elvis operator
Nullish coalescing operator
Usually, they come from Math people 🤣🤣🤣
Kotlin is heavily inspired by C#. Which also influences TypeScript. I think the lesson is, C# does a lot right! I just wish there was a 1-to-1 implementation of LINQ in TypeScript 🥳
You can always create a C#/Node project and call it from JS :D
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.