Typescript Loop Through Array With Division 1