Repository URL to install this package:
|
Version:
2.0.5 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const isObj_1 = require("../../types/obj/check/isObj");
const deps_1 = require("../deps");
const isComputedAdministration = deps_1.createPredicateForProperty('Computed');
function isComputed(x) {
if (isObj_1.isObj(x) === false) {
return false;
}
else if (isComputedAdministration(x)) {
const $mobx = deps_1.toMobxSymbol(x);
return x[$mobx] === true;
}
else {
return false;
}
}
exports.isComputed = isComputed;
//# sourceMappingURL=isComputed.js.map