Skip to content

Commit

Permalink
[ESNext] Add Map.groupBy
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Mar 28, 2018
1 parent ebbdbb8 commit 96b9d6a
Show file tree
Hide file tree
Showing 2 changed files with 205 additions and 113 deletions.
13 changes: 13 additions & 0 deletions data-esnext.js
Original file line number Diff line number Diff line change
Expand Up @@ -3578,6 +3578,19 @@ exports.tests = [
category: STAGE1,
significance: 'medium',
subtests: [
{
name: 'Map.groupBy',
exec: function () {/*
var map = Map.groupBy([1, 2, 3, 4], it => it % 2)
return map.size === 2
&& map.get(0)[0] === 2
&& map.get(0)[1] === 4
&& map.get(1)[0] === 1
&& map.get(1)[1] === 3;
*/},
res: {
}
},
{
name: 'Map.prototype.filter',
exec: function () {/*
Expand Down
Loading

0 comments on commit 96b9d6a

Please sign in to comment.