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

9 lines
117 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
function withRest(...rest) {
rest.push(1);
return rest;
}
for(var i = 0; i < 1e6; i++) {
withRest(1,2,3,4);
}