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:
lumosmind 2019-10-28 17:21:26 +03:00 committed by GitHub
parent 4159a65ea2
commit 07a21c814f
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