moyen propre de gérer les indéfinis dans le stockage chromé local obtenir

// by passing an object you can define default values e.g.: [] IMPORTANT!
chrome.storage.local.get({userKeyIds: []}, function (result) {

    var userKeyIds = result.userKeyIds;

});
Old-fashioned Ocelot