"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../Class/Functional");
const _ids_1 = require("../../../_ids");
class EndsWith extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['str', 'search', 'position'],
            o: ['test'],
        }, {}, system, _ids_1.ID_ENDS_WITH);
    }
    f({ str, search, position }, done) {
        const test = str.endsWith(search, str.length - position);
        done({ test });
    }
}
exports.default = EndsWith;
//# sourceMappingURL=index.js.map