source: node_modules/es-toolkit/dist/compat/object/mapKeys.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: 456 bytes
Line 
1'use strict';
2
3Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
5const identity = require('../../function/identity.js');
6const mapKeys$1 = require('../../object/mapKeys.js');
7const iteratee = require('../util/iteratee.js');
8
9function mapKeys(object, getNewKey = identity.identity) {
10 if (object == null) {
11 return {};
12 }
13 return mapKeys$1.mapKeys(object, iteratee.iteratee(getNewKey));
14}
15
16exports.mapKeys = mapKeys;
Note: See TracBrowser for help on using the repository browser.