Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeswr committed Sep 21, 2024
1 parent f5a37b2 commit 2337610
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/N3Store.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ function difference(s1, s2, depth = 4) {
let target = false;

for (const key in s1) {
// When the key is not in the index, then none of the triples defined by s1[key] are
// in s2 and so we want to copy them over to the resultant store.
if (!(key in s2)) {
target = target || Object.create(null);
target[key] = depth === 0 ? null : merge({}, s1[key], depth - 1);
Expand Down

0 comments on commit 2337610

Please sign in to comment.