Typescript Array Find First Repeating