Typescript Get Index Of Object Javascript Definition W3schools