【发布时间】:2022-12-02 09:05:14
【问题描述】:
I can't seem to figure out why I can't get the information out of the array
const usedPlatformLog: Date[] = []
users.forEach(el => {
usedPlatformLog.push(el.lastUsed)
})
console.log(usedPlatformLog) // shows array with indexes 0 and 1
console.log(usedPlatformLog[0]) // log response undefined
【问题讨论】:
-
"shows array with indexes 0 and 1"- What data does the first
console.logshow for those indexes?
标签: typescript