update with condition

To update an item object in an array of objects, you can write the value key of the object you want to update.

dispatch(update('DESTINATION',CONDITION-VALUE,CONDITION-KEY))

Example: Update Users with id=2

dispatch(update('Users', { name: "Crawfish Lover" }, 2, 'id'))

Last updated