is it possible to store array in chrome storage sync and retrieve them ?
var uarray = [abc,def,ghi];
Is it possible to update the stored ar
You can read the existing values, append the new value and store back.
Following sample code should allow you to add newArrEntry into existing array stored in chrome.storage.sync
chrome.storage.sync.get(["storagekey"], function(result) {
var array = result[storagekey]?result[storagekey]:[];
array.unshift(newArrEntry);
var jsonObj = {};
jsonObj[storagekey] = array;
chrome.storage.sync.set(jsonObj, function() {
console.log("Saved a new array item");
});
});