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/mapValues.mjs
T

13 lines
361 B
JavaScript

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