Test name | Executions per second |
---|---|
omit | 1259580.4 Ops/sec |
destructure | 16043452.0 Ops/sec |
<!--your preparation HTML code goes here-->
import _ from "lodash";
let data = {
asdasd: 'template123',
someOtherField: 'value1',
anotherField: 'value2'
};
data = _.omit(data, 'asdasd')
let data = {
asdasd: 'template123',
someOtherField: 'value1',
anotherField: 'value2'
};
const { asdasd: _, dataRest } = data
data = dataRest