Typescript Get Item From Array Javascript Duplicates