Some JS

Json code posted by Jake
created at 25 Apr 23:10, updated at 28 Apr 17:41

Edit | Back
1
2
3
4
5
if (typeof Array.prototype.contains !== 'function') {
  Array.prototype.contains = function(item, from) {
    return this.indexOf(item, from) != -1;
  };
}
159 Bytes in 2 ms with coderay