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