Javascript !something && function()
- by cpf
Hi Stackoverflow,
I have been looking at the source code of raphael (http://raphaeljs.com/index.html) and I see a lot of stuff like !variable && function() (e.g.: !svg.bottom && (svg.bottom = this); )
What does that exactly do? Does it check first and execute only if not true?
Thanks.