Files
InventoryTracker/InventoryTraker.Web/js/utility/ArrayExtensions.js
T
2016-08-08 14:47:35 -04:00

14 lines
264 B
JavaScript

(function() {
'use strict';
Object.defineProperty(Array.prototype, 'count', {
get: function () { return this.length; }
});
if (Array.prototype.addRange) return;
Array.prototype.addRange = function (target) {
this.push.apply(this, target);
};
})();