"use strict";
Array.prototype.findSafe = function (predicate) {
    var val = this.find(predicate);
    if (val === undefined) {
        throw new Error("Cannot find element with predicate: " + predicate);
    }
    return val;
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmluZC1zYWZlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGlvdGl6ZS90YXAvdGVzdGluZy8iLCJzb3VyY2VzIjpbInV0aWwvZmluZC1zYWZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFLQSxLQUFLLENBQUMsU0FBUyxDQUFDLFFBQVEsR0FBRyxVQUFVLFNBQTZEO0lBQzlGLElBQU0sR0FBRyxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUE7SUFDaEMsSUFBSSxHQUFHLEtBQUssU0FBUyxFQUFDO1FBQ2xCLE1BQU0sSUFBSSxLQUFLLENBQUMseUNBQXVDLFNBQVcsQ0FBQyxDQUFDO0tBQ3ZFO0lBQ0QsT0FBTyxHQUFHLENBQUM7QUFDZixDQUFDLENBQUEifQ==