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.

14 lines (13 loc) 329 B
var mergeRefs = function mergeRefs(refs) { return function (value) { refs.forEach(function (ref) { if (typeof ref === "function") { ref(value); } else if (ref != null) { // eslint-disable-next-line no-param-reassign ref.current = value; } }); }; }; export default mergeRefs;