Hi all. I am looking to calculate the value of a wallets tokens [in an array] but naturally some tokens do not have value. How do I then skip the tokens that do not have value with reference to my code below?
if (notAppT?.length > 0) {
for (let i = 0; i < notAppT?.length; i++) {
console.log(notAppT[i]?.token?.contractAddress)
var tik = await tok({ address: notAppT[i]?.token?.contractAddress })
}
console.log(tik)
}