Test name | Executions per second |
---|---|
Array.prototype.concat | 9277723.0 Ops/sec |
spread operator | 11369876.0 Ops/sec |
Push | 14895505.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);