Typescript Array Get Element By Attribute Javascript Map