ImmortalDB icon indicating copy to clipboard operation
ImmortalDB copied to clipboard

Make get function work with undefined values properly

Open Sajma27 opened this issue 5 years ago • 2 comments

Make get function return the second value if the most common value is undefined

Sajma27 avatar May 27 '20 15:05 Sajma27

@Sajma27 Did you mean to close this PR?

gruns avatar May 27 '20 16:05 gruns

You can open it back. I wanted to use your library, but there is a problem with empty storage, I think it should not be considered or chosen if there is a majority of it. For example, if user delete cookies and local storage, you are not able to retrieve data only from indexedDB using your library, my small change solved the problem.

Sajma27 avatar May 27 '20 20:05 Sajma27