score:1

Accepted answer

you would have to iterate over that array. if that list accepts map then something like this should work, i guess:

case types.some_type: {
  const lst = state.outputlist.map((el) => {
    return update(el, { propertyiwanttochange: {$set: action.value}}
  });

  return update(state, { outputlist: {$set: lst}})
}

Related Query

More Query from same tag