6 lines
188 B
JavaScript
6 lines
188 B
JavaScript
export const val = t => typeof t === "function" ? t() : t;
|
|
|
|
export const joinClass = (t, l) => typeof l === "function"
|
|
? () => `${t} ${l() || ""}`.trim()
|
|
: `${t} ${l || ""}`.trim();
|