1
0
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:
ruanyf 2023-07-20 14:38:25 +08:00
parent afa1b0dbee
commit 49351992ce

View File

@ -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] }
``` ```