chrome.storage.local.set({ 'obj': { 'k1': 'one', 'k2': 'two', 'k10': 'ten' }});
chrome.storage.local.get('obj', function(items) { for (var i in items['obj']) { console.log(i); }});
items = {
'obj': {
'k1': 'one',
'k2': 'two',
'k10': 'ten'
}
};
// The code below outputs:
// k1
// k2
// k10
for (var i in items['obj']) {
console.log(i);
}
--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-extensions@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/3683bdd8-e5c1-4bdf-ac46-446fd63d6da8%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.