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

Update array.md

Array.prototyp.slice 改为 Array.prototype.slice
This commit is contained in:
Feng Hao 2015-08-28 11:06:16 +08:00
parent f80ff36bc0
commit fe58145322

View File

@ -31,7 +31,7 @@ Array.from({ 0: "a", 1: "b", 2: "c", length: 3 });
// [ "a", "b" , "c" ]
```
对于还没有部署该方法的浏览器可以用Array.prototyp.slice方法替代。
对于还没有部署该方法的浏览器可以用Array.prototype.slice方法替代。
```javascript
const toArray = (() =>