Global.Array.prototype.contains (val)
check if an array passed as argument contains a specific value (start from end of 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:
101:   Array.prototype.contains = function(val) {
102:      if (this.indexOf(val) > -1)
103:         return true;
104:      return false;
105:   }