source: node_modules/es-toolkit/dist/compat/object/mapValues.js

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

Added visualizations

  • Property mode set to 100644
File size: 474 bytes
Line 
1'use strict';
2
3Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
5const identity = require('../../function/identity.js');
6const mapValues$1 = require('../../object/mapValues.js');
7const iteratee = require('../util/iteratee.js');
8
9function mapValues(object, getNewValue = identity.identity) {
10 if (object == null) {
11 return {};
12 }
13 return mapValues$1.mapValues(object, iteratee.iteratee(getNewValue));
14}
15
16exports.mapValues = mapValues;
Note: See TracBrowser for help on using the repository browser.