Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
pichalsi
· 11y ago · 0 comments
OT: anyone can teach what this construct is useful for? ['.bin'].indexOf(x) === -1
Same as '.bin' === x?
Comments
[–]
jlongster
11y ago
Good point, I probably should just use that here, but in my project the array actually has a few more elements. I do this because there are a few modules I don't want to ignore for various reasons.
[–]
pichalsi
OP
11y ago
oh right... I thought I will learn something new :)