Typescript Find Item In Array Javascript Iteration