UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.

22 lines (19 loc) 433 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; const mergeRefs = refs => { return value => { refs.forEach(ref => { if (typeof ref === "function") { ref(value); } else if (ref != null) { // eslint-disable-next-line no-param-reassign ref.current = value; } }); }; }; var _default = mergeRefs; exports.default = _default;