Merge pull request #1530 from lumosmind/patch-5

add parameter definition to arr.find()
This commit is contained in:
Ilya Kantor 2019-10-29 23:43:23 +03:00 committed by GitHub
commit 601d9583f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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