Typescript Loop Through Array Of Objects And Change Values On Axis