napsternxg / ReadLater

This is a google chrome extension for saving links for later reading.
https://chrome.google.com/webstore/detail/read-later/nplngmgdacdfncdkpdomipkehfnbinfa
GNU General Public License v2.0
103 stars 36 forks source link

Emergency fix for 4.0.1 #23

Closed kav2k closed 7 years ago

kav2k commented 7 years ago

X in Y is a pythonism; can't be used like that

napsternxg commented 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.

kav2k commented 7 years ago

Huh. TIL.