diff --git a/src/core/utils.js b/src/core/utils.js new file mode 100644 index 0000000..02aca9c --- /dev/null +++ b/src/core/utils.js @@ -0,0 +1,5 @@ +export const val = t => typeof t === "function" ? t() : t; + +export const joinClass = (t, l) => typeof l === "function" + ? () => `${t} ${l() || ""}`.trim() + : `${t} ${l || ""}`.trim();