D09r
D09r

Reputation: 1411

Get all Keys:Values from Chrome Storage

I got all keys from Chrome Storage by passing null as object.

For example,

chrome.storage.local.get(null, callbackFunction); //list of Object property

Is there any way similarly to get all property:propertyValues pairs from Chrome Storage?

Upvotes: 8

Views: 3990

Answers (1)

D09r
D09r

Reputation: 1411

chrome.storage.local.get(null, function(items) {
   for (key in items) {
       //do stuffs here
   }
});

I achieved through for loop

Upvotes: 8

Related Questions