In this post I will share 12 extremely useful hacks for JavaScript. These hacks reduce the code and will help you to run optimized code. So let’s start hacking! Sometimes we need to check if some variable exists or if it has a valid value, to consider them as true value.
Full article