Skip to content

Commit fa7f5c1

Browse files
committed
Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages
2 parents b6dc8eb + 3e843a7 commit fa7f5c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/array.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ console.log(entries.next().value); // [2, 'c']
292292

293293
## 数组实例的includes()
294294

295-
`Array.protypeto.includes`方法返回一个布尔值,表示某个数组是否包含给定的值,与字符串的`includes`方法类似。该方法属于ES7,但Babel转码器已经支持。
295+
`Array.prototype.includes`方法返回一个布尔值,表示某个数组是否包含给定的值,与字符串的`includes`方法类似。该方法属于ES7,但Babel转码器已经支持。
296296

297297
```javascript
298298
[1, 2, 3].includes(2); // true

0 commit comments

Comments
 (0)