Closed ersimont closed 2 years ago
import { transform } from '@s-libs/micro-dash'; export function mapKeys<E>( obj: Record<string, E>, iteratee: (value: E, key: string) => string, ): any { return transform(obj, (accumulator, value, key) => { accumulator[iteratee(value, key)] = value; }); }
This is coming in the next release