Test name | Executions per second |
---|---|
lodash get | 33100988.0 Ops/sec |
deconstruct | 32975524.0 Ops/sec |
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
var req = {
body: {
test: 'testing'
}
}
const body = (req, ['body'], {})
const {body} = req