Skip to content

Commit

Permalink
fixing the oopsie
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitjhaTP authored and dfahlander committed Sep 30, 2024
1 parent 7ade98f commit d016f0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/classes/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@ export class Table implements ITable<any, IndexableType> {
// and filter the rest.
const { idxByName } = this.schema;
const idb = this.db._deps.indexedDB;
function equals (a, b) {
return cmp(a, b); // Works with all indexable types including binary keys.

function equals(a, b) {
return cmp(a, b) === 0; // Works with all indexable types including binary keys.
}

const [idx, filterFunction] = keyPaths.reduce(([prevIndex, prevFilterFn], keyPath) => {
Expand Down

0 comments on commit d016f0d

Please sign in to comment.