mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
Update array.md
Array.prototyp.slice 改为 Array.prototype.slice
This commit is contained in:
+1
-1
@@ -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 = (() =>
|
||||
|
||||
Reference in New Issue
Block a user