📅  最后修改于: 2022-03-11 14:48:20.801000             🧑  作者: Mango
// This solution is for when you want to use
// `break`, `return` which forEach doesn't support
for (const key in tempData) {
if (tempData.hasOwnProperty(key)) {
// your logic here
}
}