MCPcopy
hub / github.com/benjamine/jsondiffpatch / diff

Function diff

packages/jsondiffpatch/src/index.ts:20–25  ·  view source on GitHub ↗
(left: unknown, right: unknown)

Source from the content-addressed store, hash-verified

18let defaultInstance: DiffPatcher;
19
20export function diff(left: unknown, right: unknown) {
21 if (!defaultInstance) {
22 defaultInstance = new DiffPatcher();
23 }
24 return defaultInstance.diff(left, right);
25}
26
27export function patch(left: unknown, delta: Delta) {
28 if (!defaultInstance) {

Callers 1

diffFilterFunction · 0.50

Calls 1

diffMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…