UNPKG

@fremtind/jkl-core

Version:
14 lines (13 loc) 306 B
function mergeRefs(...possibleRefs) { return (instance) => possibleRefs.forEach((ref) => { if (typeof ref === "function") { ref(instance); } else if (ref !== null && ref !== void 0) { ref.current = instance; } }); } export { mergeRefs }; //# sourceMappingURL=mergeRefs.js.map