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: 1-js/05-data-types/05-array-methods/article.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -274,7 +274,7 @@ alert(user.name); // John
274
274
275
275
In real life arrays of objects is a common thing, so the `find` method is very useful.
276
276
277
-
Note that in the example we provide to `find`a single-argument function `item => item.id == 1`. Other parameters of `find` are rarely used.
277
+
Note that in the example we provide to `find`the function `item => item.id == 1` with one argument. Other arguments of this function are rarely used.
278
278
279
279
The [arr.findIndex](mdn:js/Array/findIndex) method is essentially the same, but it returns the index where the element was found instead of the element itself.
0 commit comments