Typescript Array Indexof Object Property