.without() for nested data structure
richieyi opened this issue · 1 comments
richieyi commented
newState = {
OFFER_CAMPAIGNS: {
data: {
offers: {
100: {},
200: {}
}
}
}
}
I'm trying to remove the property '100', but the ".without()" method doesn't show how to access a prop inside a nested data structure. Is this possible?
eseQ commented
newState.updateIn(['OFFER_CAMPAING', 'data', offers], offers => offers.without('100'));