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