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