return-3.js (220B)
1 // return exits the innermost enclosing arrow (not an enclosing arrow) 2 3 load(libdir + "asserts.js"); 4 5 function f() { 6 var g = a => [0, 1].map(x => { return x + a; }); 7 return g(13); 8 } 9 10 assertDeepEq(f(), [13, 14]);
tor-browserThe Tor Browser | |
| git clone https://git.dasho.dev/tor-browser.git | |
| Log | Files | Refs | README | LICENSE |