Check for "inverseRels" keys when iterating over localStorage. This means we won't accidentally end up with inverse relationship data as part of the records we return from a call to findRecords() without a type argument. This was causing normalization errors when trying to restore all records from a localStorage backup.
Also switches from for...in to for...of as this allows polyfills to control iteration via the Symbol.iterator property on the localStorage object.
Check for "inverseRels" keys when iterating over localStorage. This means we won't accidentally end up with inverse relationship data as part of the records we return from a call to
findRecords()
without a type argument. This was causing normalization errors when trying to restore all records from a localStorage backup.Also switches from
for...in
tofor...of
as this allows polyfills to control iteration via theSymbol.iterator
property on the localStorage object.