"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../Class/Functional");
const _ids_1 = require("../../../_ids");
class Get extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['obj', 'key'],
            o: ['value'],
        }, {}, system, _ids_1.ID_GET);
    }
    f({ obj, key }, done) {
        if (obj.hasOwnProperty(key)) {
            done({ value: obj[key] });
        }
        else {
            done(undefined, 'key not found');
        }
    }
}
exports.default = Get;
//# sourceMappingURL=index.js.map