News for hackers. Stuff that matters.
Re:HTML5 Deck of Cards by pkstn on Thursday September 03, 2015 @05:40PM (#10167686)
Actually only 52 :D

But yeah, I agree about googling part: I remember having Googled "tilde javascript" and "pipe javascript".. :)

Tilde is useful with indexOf:

if (~array.indexOf(item)) {}

..equals to:

if (array.indexOf(item) > -1) {}

Re:HTML5 Deck of Cards by yellowapple on Thursday September 03, 2015 @08:47PM (#10168289)
This is the sort of thing that makes Perl readable in comparison to Javascript :)