You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: forEach.js
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
-
/**
1
+
/**
2
2
*
3
-
forEach() calls a provided callback function once for each element in an array in ascending order.
4
-
It is not invoked for index properties that have been deleted or are uninitialized
3
+
forEach() calls a provided callback function once for each element in an array in ascending order.
4
+
It is not invoked for index properties that have been deleted or are uninitialized
5
5
(i.e. on sparse arrays, see example below).
6
6
7
7
Callback is invoked with three arguments:
@@ -11,14 +11,14 @@
11
11
- the Array object being traversed
12
12
13
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
-
16
-
*
14
+
There is no way to stop or break a forEach() loop other than by throwing an exception.
15
+
If you need such behavior, the forEach() method is the wrong tool.
0 commit comments