Double negation

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

var bool = !!num;

Comments

Popular posts from this blog

Interesting Facts about MVC framework`

AngularJS - Experiencing new era

ReactJS