Skip to content

Commit 07a21c8

Browse files
authored
add attribute defination to arr.find()
For consistency with definition of "arr.filter(fn)" , we need to add 'fn' parameter to definition of arr.find().
1 parent 4159a65 commit 07a21c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/05-data-types/05-array-methods/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ alert( arr.includes(NaN) );// true (correct)
268268

269269
Imagine we have an array of objects. How do we find an object with the specific condition?
270270

271-
Here the [arr.find](mdn:js/Array/find) method comes in handy.
271+
Here the [arr.find(fn)](mdn:js/Array/find) method comes in handy.
272272

273273
The syntax is:
274274
```js

0 commit comments

Comments
 (0)