News for hackers. Stuff that matters.
Re:Why I Like Using Maps (and WeakMaps) for Handling DOM Nodes by beebeepka on Saturday May 06, 2023 @03:45AM (#35839139)
Several things such as standard way for adding, removing and checking for keys, built-in size property, extensibility.

You think "key in object" is better than "maaaaap.has(key)"? I don't because it's unpredictable and prone to exceptions.

Give them a try. It's not a complete replacement for regular old objects

There are no comments on this comment yet.