Typescript Array Indexof Objective Data