Skip to content

Commit 1659ae1

Browse files
committed
update: more about forEach()
1 parent 10e4821 commit 1659ae1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

forEach.js

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
- the value of the element
1010
- the index of the element
1111
- the Array object being traversed
12+
13+
** Imp
14+
There is no way to stop or break a forEach() loop other than by throwing an exception. If you need such behavior, the forEach() method is the wrong tool.
15+
1216
*
1317
*/
1418

0 commit comments

Comments
 (0)