Sha256: 2ea13fe839eec3856e5453462782b1e52f5e1d8d4aa375995ec24190fed92c72

Contents?: true

Size: 168 Bytes

Versions: 3

Compression:

Stored size: 168 Bytes

Contents

Array.prototype.contains = function (element) {
  for (var i = 0; i < this.length; i++) {
    if (this[i] == element) {
      return true;
    }
  }
  return false;
};

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jextend-0.1.4 vendor/assets/javascripts/jextend/array.js
jextend-0.1.3 vendor/assets/javascripts/jextend/array.js
jextend-0.1.2 vendor/assets/javascripts/jextend/array.js