summaryrefslogtreecommitdiff
path: root/web-ui/app/js/monkey_patching/array.js
blob: cf0e71ed9257bddd2696ca8db30fc04eaafcea97 (plain)
1
2
3
4
5
6
7
8
9
10
11
(function () {
  'use strict';

  // Array Remove - By John Resig (MIT Licensed)
  Array.prototype.remove = function (from, to) {
    var rest = this.slice((to || from) + 1 || this.length);
    this.length = from < 0 ? this.length + from : from;
    return this.push.apply(this, rest);
  };

}());