GT2/GT2-iOS/node_modules/very-fast-args/bench/simple-with-rest.js

9 lines
117 B
JavaScript

function withRest(...rest) {
rest.push(1);
return rest;
}
for(var i = 0; i < 1e6; i++) {
withRest(1,2,3,4);
}