Test name | Executions per second |
---|---|
spread operator | 6212028.0 Ops/sec |
jQuery merge | 6224541.0 Ops/sec |
var a = [ "hello" ]
var b = [ "hello", "hello", "hello", "hello", "hello", "hello", "hello", "hello", "hello", "hello" ]
var other = a.concat(b)
var a = [ "hello" ];
var b = [ "hello", "hello", "hello", "hello", "hello", "hello", "hello", "hello", "hello", "hello" ]
var other = b.splice(0, 0, a[0]);