Source code

Revision control

Copy as Markdown

Other Tools

// || binds tighter than =>.
var f;
f = a => a || 'nothing'; // f = ((a => a) || 'nothing');
assertEq(f.length, 1);
assertEq(f(0), 'nothing');
assertEq(f(1), 1);