javascript - meaning of this syntax: "if (!test(v))" -


is

if (!test(v)) 

the same as

if (test !== v) 

?

if not, i'm wondering if (!test(v)) means?

test function, v parameter passed function. you're testing result of function:

if (!test(v)) 

is same as:

if (!!test(v) == false) 

the !! coerce result boolean.


Comments