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