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().
This commit is contained in:
parent
4159a65ea2
commit
07a21c814f
1 changed files with 1 additions and 1 deletions
|
@ -268,7 +268,7 @@ alert( arr.includes(NaN) );// true (correct)
|
|||
|
||||
Imagine we have an array of objects. How do we find an object with the specific condition?
|
||||
|
||||
Here the [arr.find](mdn:js/Array/find) method comes in handy.
|
||||
Here the [arr.find(fn)](mdn:js/Array/find) method comes in handy.
|
||||
|
||||
The syntax is:
|
||||
```js
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue