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