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.js
T

17 lines
474 B
JavaScript

'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const identity = require('../../function/identity.js');
const mapValues$1 = require('../../object/mapValues.js');
const iteratee = require('../util/iteratee.js');
function mapValues(object, getNewValue = identity.identity) {
if (object == null) {
return {};
}
return mapValues$1.mapValues(object, iteratee.iteratee(getNewValue));
}
exports.mapValues = mapValues;