Morten Broesby-Olsen
@mortenbroesby
export function flattenObject(object) { const result = {} Object.values(object).forEach((nestedObject) => { Object.assign(result, nestedObject) }) return result }