Re:New JavaScript Set Methods
by kevincox on Monday June 24, 2024 @04:15PM
(#40780189)
Yup. I always use Set and Map over objects. They just contain way fewer surprises and the APIs actually work as you would expect. I only use Objects for "struct" like objects with a known set of keys that are used by name. It is also nice because it conveys more intent to the reader.
[ Parent
| on HN ]
There are no comments on this comment yet.