moltres-utils
Version:
Utils for Moltres apps
19 lines (15 loc) • 377 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _ramda = require("ramda");
const applyIfHas = (0, _ramda.curry)((prop, fn, value) => {
if ((0, _ramda.has)(prop, value)) {
return fn(value);
}
return value;
});
var _default = applyIfHas;
exports.default = _default;
//# sourceMappingURL=applyIfHas.js.map
;