MCPcopy Index your code
hub / github.com/Starcounter-Jack/JSON-Patch / getValueByPointer

Function getValueByPointer

module/core.mjs:86–93  ·  view source on GitHub ↗
(document, pointer)

Source from the content-addressed store, hash-verified

84 * @return The retrieved value
85 */
86export function getValueByPointer(document, pointer) {
87 if (pointer == '') {
88 return document;
89 }
90 var getOriginalDestination = { op: "_get", path: pointer };
91 applyOperation(document, getOriginalDestination);
92 return getOriginalDestination.value;
93}
94/**
95 * Apply a single JSON Patch Operation on a JSON document.
96 * Returns the {newDocument, result} of the operation.

Callers 2

core.mjsFile · 0.70
applyOperationFunction · 0.70

Calls 1

applyOperationFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…