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