Test name | Executions per second |
---|---|
Array.prototype.concat | 7841866.0 Ops/sec |
spread operator | 31746126.0 Ops/sec |
Push | 37769820.0 Ops/sec |
var params = [ "hello", true, 7 ];
var other = [ 1, 2 ].concat(params);
var params = [ "hello", true, 7 ]
var other = [ 1, 2, params ]
var params = [ "hello", true, 7 ];
var other = [ 1, 2 ].push(params);