source: node_modules/es-toolkit/dist/compat/object/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: 361 bytes
Line 
1import { identity } from '../../function/identity.mjs';
2import { mapValues as mapValues$1 } from '../../object/mapValues.mjs';
3import { iteratee } from '../util/iteratee.mjs';
4
5function mapValues(object, getNewValue = identity) {
6 if (object == null) {
7 return {};
8 }
9 return mapValues$1(object, iteratee(getNewValue));
10}
11
12export { mapValues };
Note: See TracBrowser for help on using the repository browser.