Create Array From Array Of Objects Typescript