Hacker News new | ask | show | jobs
by clnhlzmn 196 days ago
> I've come to see this ubiquitous string of symbols, ?? "", as the JS equivalent to .unwrap() in Rust

Isn't this more like `unwrap_or`?

2 comments

Author here. It is. I did a poor job explaining what I meant by this. I tried to elaborate https://news.ycombinator.com/item?id=46089466. I'll also update the article to reflect this:) Thanks for pointing it out:)
It's sloppy writing but they do make the distinction over the rest of the paragraph.