0

i think i undersatnd what's the issue is the 'Keys' dont just carry the value

if anyone can help with the syntax?

value [];
chrome.storage.local.get(null, function(items) {
      var Keys = Object.keys(items);

      console.log(Keys);
      i= Keys.length;

console.log(items.tile); // value with tile as key = 10456 working
var str = String(Keys[6]);
console.log(str); // tile
console.log(items.str);//why this one is not working
    // console.log(test);
     while ( i-- ) {
 
          values.push(items.Keys[i]) ;
      console.log(values);
  
    }
    
    )
Weee
  • 15
  • 5

0 Answers0