1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-25 19:22:21 +00:00

Merge pull request #11 from kelerliao/patch-1

Update array.md
This commit is contained in:
ruanyf 2014-05-23 22:42:55 +08:00
commit 4880c25772

View File

@ -56,7 +56,7 @@ Array(3,11,8) // [3, 11, 8]
```javascript
[1, 5, 10, 15].find(function(value, index, arr) {
return a > 9;
return value > 9;
}) // 10
```
@ -68,7 +68,7 @@ Array(3,11,8) // [3, 11, 8]
```javascript
[1, 5, 10, 15].findIndex(function(value, index, arr) {
return a > 9;
return value > 9;
}) // 2
```