IndexedDB is not a key-value store in the same way that Local Storage is . Local storage just stores strings, so to put an object in local storage the usual approach is to JSON.
IndexedDB is not a key-value store in the same way that Local Storage is . Local storage just stores strings, so to put an object in local storage the usual approach is to JSON.