3 ms·
The argument of the post was kind of appropriately null. Yet, I did not realize there was a ?? operator in javascript that lets you filter specifically for nul
by araes 3y ago
The argument of the post was kind of appropriately null. Yet, I did not realize there was a ?? operator in javascript that lets you filter specifically for nulls and undefined. That was worth reading the linked article.
- paulddraper 3y agoIt was introduced in Ecmascript 2020, but many have probably already seen it in PHP (2015) or C# (since, like forever). Or Kotlin or Objective C, though they use "?:"