Updates / Adds an entry in a given object on a given index.
Any errors thrown on a transformation function are bubbled up.
Remember to take in to account that storage may not contain the data we expect it to, so always validate the type of the value passed on to the transformation function.
The object to update
The index of the entry to update
A transformation function to apply to the currently persisted value.
Optional
An updated copy of the object.
Generated using TypeDoc
Updates / Adds an entry in a given object on a given index.
Important
Any errors thrown on a transformation function are bubbled up.
Remember to take in to account that storage may not contain the data we expect it to, so always validate the type of the value passed on to the transformation function.