Typescript Map Array To Dictionary