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