React Typescript Find Object In Array Javascript Methods