source: node_modules/es-toolkit/dist/map/mapValues.mjs

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 247 bytes
RevLine 
[a762898]1function mapValues(map, getNewValue) {
2 const result = new Map();
3 for (const [key, value] of map) {
4 const newValue = getNewValue(value, key, map);
5 result.set(key, newValue);
6 }
7 return result;
8}
9
10export { mapValues };
Note: See TracBrowser for help on using the repository browser.