LogoRobo.js
Framework

computePatches()

Function: computePatches()

function computePatches(before, after): JSONPatch[]

Compute JSON Patch (RFC 6902) between two objects.

Parameters

ParameterTypeDescription
beforeRecord<string, unknown>Original object
afterRecord<string, unknown>Modified object

Returns

JSONPatch[]

Array of JSON Patch operations

On this page