Hacker News new | ask | show | jobs
by _ar7 3240 days ago
Although it wouldn't work if you were using objects and wanted to do a deep comparison e.g.

    [...new Set([{x: 1}, {x: 1}])]
2 comments

Yeah, I recently did a project in Javascript (as a longtime C++ programmer) and was bitten by this exact problem.

Javascript is great but sometimes I miss the predicability of the STL.

... an important observation, for sure.