|
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 |
|
|---|
| 3 | Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|---|
| 4 |
|
|---|
| 5 | const identity = require('../../function/identity.js');
|
|---|
| 6 | const mapValues$1 = require('../../object/mapValues.js');
|
|---|
| 7 | const iteratee = require('../util/iteratee.js');
|
|---|
| 8 |
|
|---|
| 9 | function mapValues(object, getNewValue = identity.identity) {
|
|---|
| 10 | if (object == null) {
|
|---|
| 11 | return {};
|
|---|
| 12 | }
|
|---|
| 13 | return mapValues$1.mapValues(object, iteratee.iteratee(getNewValue));
|
|---|
| 14 | }
|
|---|
| 15 |
|
|---|
| 16 | exports.mapValues = mapValues;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.