2 ms·
The 'make this work' examples are kinda silly, no? var add = function (x, y) { return ( y !== undefined ? x + y : functio
by shawndumas 12y ago
The 'make this work' examples are kinda silly, no?
var add = function (x, y) {
return (
y !== undefined ?
x + y :
function (z) { return x + z; }
);
};
var duplicate = function (a) {
return a.concat(a);
};