Create a new dictionary as a clone of the original with the specified item added or replaced. Useful when manipulating immutable objects e.g. in the redux store.
The source dictionary.
The key of the item to add or replace.
The value to add or replace.
A new dictionary with the changed item.
Generated using TypeDoc
Create a new dictionary as a clone of the original with the specified item added or replaced. Useful when manipulating immutable objects e.g. in the redux store.