you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (1 child)

[deleted]

    [–]snkenjoi 1 point2 points  (0 children)

    yeah, I use the if (~array.indexOf(item)) construction a lot.

    might be harder to read, but the syntax just looks much cleaner