Test name | Executions per second |
---|---|
Object.assign | 1391501.6 Ops/sec |
spread operator | 2704358.8 Ops/sec |
var params = { a: [1,2,3], b: { c: { d: [1,2,3]}}}
var other = Object.assign({}, params);
var params = { a: [1,2,3], b: { c: { d: [1,2,3]}}}
var other = { params };