UNPKG

lingo3d

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

18 lines 573 B
import { forceGetInstance } from "@lincode/utils"; const functionElChecker = new WeakMap(); export default (...inputRefs) => (el) => { for (const inputRef of inputRefs) { if (typeof inputRef === "function") { if (!el) return; const checker = forceGetInstance(functionElChecker, inputRef, WeakSet); if (checker.has(el)) continue; checker.add(el); inputRef(el); continue; } inputRef.current = el; } }; //# sourceMappingURL=mergeRefs.js.map