Convert Array To Object Typescript