Double negation

Double negation casts a string or a number to a boolean:

var bool = !!num;

Comments

Popular posts from this blog

ReactJS

AngularJS - Experiencing new era

Unit Testing in Javascript