i have the following code:
array.forEach(function(x){
console.log("inside foreach")
const getData = async () => {
try {
const jsonValue = await AsyncStorage.getItem("item")
if(jsonValue != null){
console.log("not null")
}else{
console.log("null")
}
}
getData()
})
it doesn't work properly, the output retrieves first all the "inside foreach" and then the rest. How can I fix it? Thank you!