Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sjfkai committed Aug 3, 2016
1 parent f28a203 commit 4a0091b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Array.apply(null, {length: N}).map(Function.call, Number);

### 方法2 (需要 ES6)

这里用到了`Array.from` [https://developer.mozilla.org/zh_CN/docs/Web/JavaScript/Reference/Global_Objects/Array/from](https://developer.mozilla.org/zh_CN/docs/Web/JavaScript/Reference/Global_Objects/Array/from)
这里用到了`Array.from` [https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/from](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/from)

```js
Array.from(new Array(N),(val,index)=>index);
Expand Down

0 comments on commit 4a0091b

Please sign in to comment.