Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
benchmark('immutadot', () => {
return set(baseState, 'nested1.arr1[0].nested2.arr2[0].nested3.arr3[0].nested4.arr4[0].nested5.arr5[0].nested6.arr6[0].prop', 'bar')
})
})
benchmark('immutadot-curried', () => {
return set('nested1.arr1[0].nested2.arr2[0].nested3.arr3[0].nested4.arr4[0].nested5.arr5[0].nested6.arr6[0].prop')('bar')(baseState)
})
})
benchmark('immutadot-curried', () => {
return set('nested.prop')('bar')(baseState)
})
})
benchmark('immutadot', () => {
const [start, end] = randomBounds()
return set(baseState, `[${start}:${end}].done`, true)
})
})
benchmark('immutadot', () => {
return set(baseState, 'nested.prop', 'bar')
})
})