Global.Array.prototype.lastIndexOf (val)
return the last 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:
85:   Array.prototype.lastIndexOf = function(val) {
86:      var i = 1;
87:      while (this.length - i++ >= 0) {
88:         if (this[i] == val)
89:            return i;
90:      }
91:      return -1;
92:   }