Manipulate data out of storage



Here is a list of all the files that I have.

Here is an example of what I would like to do

  var dataSave:any;'currentUser').then((data) => {
    dataSave = data;

  console.log('MyData => '+dataSave)

The console displays [ MyData => undefined ]

How can I do ?

thank you



The only place you can rely on data is inside the then block.


No solution to “export” them?


No. That’s the entire point of how asynchronous JavaScript works.


OK thank you for the information