So I am playing around with the d3 examples from a course on safari (Rapid D3) and there is this code in there to build up a map for a option element:
  if (teams.indexOf(row.TeamID) < 0) {
    teams.push(row.TeamID);
    teams[row.TeamID] = row.Team;
  }
And row.TeamID is a string.
When this runs over a few teams I see the following in the debugger:

What am I seeing here? I thought there were no associative arrays in javascript?
 
    