@thisisagile/easy
Version:
Straightforward library for building domain-driven microservice architectures
15 lines (13 loc) • 348 B
JavaScript
import {
isFunc
} from "./chunk-PIRWVOO2.mjs";
// src/types/Get.ts
var ofGet = (g, ...args) => isFunc(g) ? g(...args) : g;
var ifGet = (pred, valid, invalid) => ofGet(pred) ? ofGet(valid) : ofGet(invalid);
var ofProperty = (t, p) => isFunc(p) ? p(t) : t[p];
export {
ofGet,
ifGet,
ofProperty
};
//# sourceMappingURL=chunk-SJGQU3OG.mjs.map