export function objectMap( input: Input, mapper: (value: any, key: string) => any ): Output { const output: any = {} for (const [key, value] of Object.entries(input)) output[key] = mapper(value, key) return output }