Test name | Executions per second |
---|---|
Object assign | 4088552.0 Ops/sec |
Object spread | 49143572.0 Ops/sec |
const logging = {
maskLogging: true,
maskAnalytics: false,
disableConversations: true
}
const logging = {
maskLogging: true,
maskAnalytics: false,
disableConversations: true
}
const myCopy = Object.assign({}, logging)
const logging = {
maskLogging: true,
maskAnalytics: false,
disableConversations: true
}
const myCopy = { logging }