Test name | Executions per second |
---|---|
Array.prototype.slice | 107526488.0 Ops/sec |
spread operator | 59105820.0 Ops/sec |
concat | 71339184.0 Ops/sec |
var params = [ "hello", true, 7 ];
var other = params.slice();
var params = [ "hello", true, 7 ]
var other = [ params ]
var params = [ "hello", true, 7 ]
var other = params.concat()