Typescript Map Array To Object