Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
exotic / dist / mobx / is / isAtom.js
Size: Mime:
"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