UNPKG

rambda

Version:

Lightweight and faster alternative to Ramda with included TS definitions

11 lines (9 loc) 203 B
export function mapObjectAsync(fn) { return async obj => { const willReturn = {} for (const prop in obj) { willReturn[prop] = await fn(obj[prop], prop) } return willReturn } }