"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
if (!Array.prototype.first) {
    Array.prototype.first = function () {
        if (this.length === 0) {
            throw new Error('Index out of range, array is empty!');
        }
        return this[0];
    };
}
if (!Array.prototype.last) {
    Array.prototype.last = function () {
        if (this.length === 0) {
            throw new Error('Index out of range, array is empty!');
        }
        return this[this.length - 1];
    };
}
//# sourceMappingURL=array.extensions.js.map