2 ms·
my personal favorite is: function f(p1, p2, p3){ p2 || ( p2 = "default); } and i have a buddy that likes to do "poor man's unless": if(something && other_t
by aaronblohowiak 16y ago
my personal favorite is:
function f(p1, p2, p3){
p2 || ( p2 = "default);
}
and i have a buddy that likes to do "poor man's unless":
if(something && other_thing || third_thing); else{
}
which helps you from having to figure out the logical inversion or have the ! to track down, but is a little weird