for(var i=0; i<this.values.length; i++){ var v = this.values[i]; if(v && v.key == inKey){return i;} } return -1;