"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../Class/Functional");
const object_1 = require("../../../../util/object");
const _ids_1 = require("../../../_ids");
class DeepHasKey extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['obj', 'path', 'key'],
            o: ['has'],
        }, {}, system, _ids_1.ID_HAS_KEY);
    }
    f({ obj, path, key }, done) {
        const has = (0, object_1.deepGetOrDefault)(obj, [...path, key], undefined) !== undefined;
        done({ has });
    }
}
exports.default = DeepHasKey;
//# sourceMappingURL=index.js.map