Test name | Executions per second |
---|---|
Array.prototype.concat | 9054719.0 Ops/sec |
spread operator | 13300706.0 Ops/sec |
var array = new Array(10).fill(1)
var toConcat = new Array(10).fill(2)
var other = array.concat(toConcat);
var other = [ array, toConcat ]