ES6—20:some和forEach的区别

区别:forEach中的return不会终止循环,但是some中的return会终止循环


猜你喜欢

转载自blog.csdn.net/sinat_41696687/article/details/113878337
今日推荐