1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-29 05:42:20 +00:00

Update array.md

把两处的 a 修改为 value
This commit is contained in:
kelerliao 2014-05-22 19:16:40 +08:00
parent 6caf729db1
commit e3214a6c99

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