Closed kav2k closed 7 years ago
I found that to be a valid way of checking for keys in Javascript objects as mentioned here: https://stackoverflow.com/questions/1098040/checking-if-a-key-exists-in-a-javascript-object
But your method is a bit faster as suggested by the second answer on that post.
Huh. TIL.
X in Y
is a pythonism; can't be used like that