Skip to content

Commit

Permalink
Merge branch 'dev' into dist
Browse files Browse the repository at this point in the history
  • Loading branch information
massimocandela committed Jan 7, 2025
2 parents d77711a + 5441a39 commit b356a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class Path {
if (i >= 0) {
const [left = null, current = null, right = null] = path.slice(i - 1, i + 2);

return [left, current, right];
return [left ?? null, current, right ?? null];
}

return [null, null, null];
Expand Down

0 comments on commit b356a08

Please sign in to comment.