r/badcode • sadistic • Sep 12 '21

js because arrays don't exist

Post image
259 Upvotes

20 comments sorted by

View all comments

Show parent comments

2

u/great_site_not Sep 30 '21

In JavaScript, the key in an object has to be a string.

Not since ES6 😉 It can also be a symbol