We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb671cf commit ad821aeCopy full SHA for ad821ae
src/lib/src/shared/jsonpointer.functions.ts
@@ -392,7 +392,10 @@ export class JsonPointer {
392
console.error(`forEachDeep error: Iterator is not a function:`, fn);
393
return;
394
}
395
+ const firstPointerPart = pointer.split('/')[1];
396
+ if (firstPointerPart && rootObject.hasOwnProperty(firstPointerPart)) {
397
if (!bottomUp) { fn(object, pointer, rootObject); }
398
+ }
399
if (isObject(object) || isArray(object)) {
400
for (let key of Object.keys(object)) {
401
const newPointer = pointer + '/' + this.escape(key);
0 commit comments