Skip to content

Commit

Permalink
[ESNext] Add Map.prototype.mapKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Mar 28, 2018
1 parent 18d7150 commit cfa69c4
Show file tree
Hide file tree
Showing 2 changed files with 199 additions and 109 deletions.
12 changes: 12 additions & 0 deletions data-esnext.js
Original file line number Diff line number Diff line change
Expand Up @@ -3589,6 +3589,18 @@ exports.tests = [
res: {
}
},
{
name: 'Map.prototype.mapKeys',
exec: function () {/*
var map = new Map([[1, 4], [2, 5], [3, 6]]).mapKeys((value, key) => key * key);
return map.size === 3
&& map.get(1) === 4
&& map.get(4) === 5
&& map.get(9) === 6;
*/},
res: {
}
},
{
name: 'Set.prototype.addAll',
exec: function () {/*
Expand Down
Loading

0 comments on commit cfa69c4

Please sign in to comment.