Global.Array.prototype.indexOf (val)
return the first index position of a value contained in an array

  • Parameter Object:
    Array to use for checking
  • Parameter String|Object:
    the String or Object to check
Sourcecode in /home/hannes/helma/modules/core/Array.js:
69:   Array.prototype.indexOf = function(val) {
70:      var i = -1;
71:      while (i++ < this.length -1) {
72:         if (this[i] == val)
73:            return i;
74:      }
75:      return -1;
76:   }