@frontify/fondue
Version:
Design system of Frontify
13 lines (12 loc) • 318 B
JavaScript
const r = (t) => t.filter(Boolean).join(" "), i = (...t) => {
const n = t.filter(Boolean);
return n.length <= 1 ? n[0] ?? null : function(f) {
for (const e of n)
typeof e == "function" ? e(f) : e && (e.current = f);
};
};
export {
r as merge,
i as mergeRefs
};
//# sourceMappingURL=merge.es.js.map