You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's kind of awkward to do if !("element" in map) { } when checking to see if a key exists in a map. I think it would feel a bit more natural to have not for maps, at least (so you could do if not "element" in map or if "element" not in map, whichever works better).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It's kind of awkward to do
if !("element" in map) { }
when checking to see if a key exists in a map. I think it would feel a bit more natural to havenot
for maps, at least (so you could doif not "element" in map
orif "element" not in map
, whichever works better).Beta Was this translation helpful? Give feedback.
All reactions