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 isMapAdministration = deps_1.createPredicateForProperty('ObservableMapAdministration');
function isObservableMap(x) {
if (isObj_1.isObj(x) === false) {
return false;
}
else if (isMapAdministration(x)) {
const $mobx = deps_1.toMobxSymbol(x);
return x[$mobx] === true;
}
else {
return false;
}
}
exports.isObservableMap = isObservableMap;
//# sourceMappingURL=isObservableMap.js.map