10 lines
166 B
JavaScript

function foo() {
return bar([].concat(Array.prototype.slice.call(arguments)));
}
function bar(one, two, three) {
return [one, two, three];
}
foo("foo", "bar");