Skip to content

Commit 611c6f7

Browse files
authored
Update pointer.ts
1 parent 2e7266a commit 611c6f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pointer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class Pointer {
7272
if (['__proto__', 'constructor', 'prototype'].includes(key))
7373
continue;
7474
// not sure if this the best way to handle non-existant paths...
75-
value = (parent || {})[key]
75+
value = parent?.[key]
7676
}
7777
return {parent, key, value}
7878
}

0 commit comments

Comments
 (0)