14 lines
264 B
JavaScript
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);
|
|
};
|
|
|
|
})(); |