Typescript Get Item From Array Javascript Methods For Objects