Or POJO... const someMap = {}; and then someMap[someKey] 
-
-
-
Yeah, I've actually been using POJO for a most of my js adventure! It's plain (well, duh) and simple. Map has it's benefits down the road though (imo nicer way to get to keys and values iterators) + is more powerful, so I admit I'm using this scenario a gateway drug to Maps ;)
- Još 2 druga odgovora
Novi razgovor -
-
-
Love this pattern! Makes code so much more readable!
-
Right? And so succinct it almost disappears among the less elegant examples here

- Još 2 druga odgovora
Novi razgovor -
-
-
Noice!
Also glad to see my Shades of Purple theme out there 
-
Thanks! And for the theme as well! :D It definitely has this "something" to it. I really like this one

- Još 2 druga odgovora
Novi razgovor -
-
-
use json object key : size value : dimension const dimensions = { sm : '10x10', . . };
-
That is definitely a sensible alternative :) We've discussed it a little bit herehttps://twitter.com/tomastrajan/status/1156200392738385921?s=21 …
Kraj razgovora
Novi razgovor -
-
-
No breaks in you're switch cases?

-
The code sample was long enough already
Kraj razgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.
· writes about