Front End Developer at Booking.com, Previously at Namshi.com
the in operator returns true if the…
Years ago, a friend of mine (Luciano Colosio) once taught me this, found out that lots of my friends didn’t knew this neat trick.
its a nice and easy way to ruin git history :) isn’t it?
Last months we have been busy @ Namshi, re-writing our new mobile site with a hybrid approach of Preact and Server Rendered Nodejs pages.(more on that on our blog soon, tech.namshi.com)
I stumbled on new thing while I was reviewing one of my colleagues PR, when I saw him trying to filter an array, simply he wanted to get rid of all falsy values.
/* Example: array which has values that considered falsy in JS */