Skip to content

Commit

Permalink
Missing function added for latest dexie-cloud-common fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dfahlander committed Apr 27, 2022
1 parent 9c94e45 commit 1c5576e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libs/dexie-cloud-common/src/utils.ts
Expand Up @@ -4,6 +4,11 @@ export function assert(b: boolean): asserts b is true {
if (!b) throw new Error('Assertion Failed');
}

const _hasOwn = {}.hasOwnProperty;
export function hasOwn(obj, prop) {
return _hasOwn.call(obj, prop);
}

type SetByKeyPathTarget =
| { [keyPath: string]: SetByKeyPathTarget }
| SetByKeyPathTarget[];
Expand Down

0 comments on commit 1c5576e

Please sign in to comment.