mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 10:22:23 +00:00
docs(array): fix .group() #1161
This commit is contained in:
parent
afa1b0dbee
commit
49351992ce
@ -941,7 +941,7 @@ array.group((num, index, array) => {
|
|||||||
下面是另一个例子。
|
下面是另一个例子。
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
[6.1, 4.2, 6.3].groupBy(Math.floor)
|
[6.1, 4.2, 6.3].group(Math.floor)
|
||||||
// { '4': [4.2], '6': [6.1, 6.3] }
|
// { '4': [4.2], '6': [6.1, 6.3] }
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user