📜  返回在 forEach javascript 代码示例中不起作用

📅  最后修改于: 2022-03-11 15:01:54.443000             🧑  作者: Mango

代码示例1
//return does not work inside forEach and map, and it keeps iterating
// Use a normal for loop and your return would work