Repository URL to install this package:
Version:
2.0.1 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const isObj_1 = require("../../types/obj/check/isObj");
function createPredicateForProperty(propName) {
return function (x) {
return isObj_1.isObj(x) && x[propName] === true;
};
}
exports.createPredicateForProperty = createPredicateForProperty;
function createInstanceofPredicate(name, clazz) {
const propName = 'isMobX' + name;
clazz.prototype[propName] = true;
return function (x) {
return isObj_1.isObj(x) && x[propName] === true;
};
}
exports.createInstanceofPredicate = createInstanceofPredicate;
//# sourceMappingURL=createInstanceofPredicate.js.map