This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
StasisWarden-Legacy/node_modules/es-toolkit/dist/compat/object/mapKeys.mjs
T

13 lines
345 B
JavaScript

import { identity } from '../../function/identity.mjs';
import { mapKeys as mapKeys$1 } from '../../object/mapKeys.mjs';
import { iteratee } from '../util/iteratee.mjs';
function mapKeys(object, getNewKey = identity) {
if (object == null) {
return {};
}
return mapKeys$1(object, iteratee(getNewKey));
}
export { mapKeys };