UNPKG

@adapty/capacitor

Version:
11 lines 406 B
/** * Maps over values of an object, transforming each value using the provided function. * * @param obj - The object to map over * @param fn - Function to transform each value * @returns New object with transformed values */ export function mapValues(obj, fn) { return Object.fromEntries(Object.entries(obj).map(([key, value]) => [key, fn(value, key)])); } //# sourceMappingURL=map-values.js.map