(document, pointer)
| 84 | * @return The retrieved value |
| 85 | */ |
| 86 | export 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. |
no test coverage detected
searching dependent graphs…