@regionorebrolan/extensions
Version:
Library with JavaScript additions and extensions.
27 lines • 839 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
require("core-js/features/symbol");
var Enumerable = /** @class */ (function () {
// Constructors
function Enumerable(items) {
this._items = items || [];
}
Object.defineProperty(Enumerable.prototype, "items", {
// Properties
get: function () {
return this._items;
},
enumerable: false,
configurable: true
});
// Methods
Enumerable.prototype[Symbol.iterator] = function () {
return this.items[Symbol.iterator]();
};
Enumerable.prototype.forEach = function (callbackfn, thisArg) {
this.items.forEach(callbackfn, thisArg);
};
return Enumerable;
}());
exports.default = Enumerable;
//# sourceMappingURL=Enumerable.js.map