Framework
applyPatches()
Function: applyPatches()
function applyPatches<T>(obj, patches): TApply JSON Patch operations to an object.
Type Parameters
| Type Parameter |
|---|
T extends Record<string, unknown> |
Parameters
| Parameter | Type | Description |
|---|---|---|
obj | T | Object to patch (not mutated) |
patches | JSONPatch[] | Array of patch operations |
Returns
T
New patched object
