code: function getPlace() {
        var place = 0;
        while (takenPlaces.indexOf(place) !== -1) {
          place++;
        }
        takenPlaces.push(place);
        return place;
      }
docs: find lowest place not taken