React Typescript Array Methods In Angular