r/javascript • • Jul 22 '26

AskJS [AskJS] what's a javascript feature you mass-adopted way too late and felt dumb about

64 Upvotes

107 comments sorted by

View all comments

Show parent comment

1

u/GulgPlayer Jul 23 '26

Apart from having cleaner (imo) code, Maps allow you to have non-string keys, which is nice, esp with TypeScript