Merge pull request #1530 from lumosmind/patch-5
add parameter definition to arr.find()
This commit is contained in:
commit
601d9583f7
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