/** @license MIT | @cube-dev/ui-kit v0.123.0 | Cube Dev Team */
//#region src/utils/react/chain.ts
/**
* Calls all functions in the order they were chained with the same arguments.
*/
function chain(...callbacks) {
	return (...args) => {
		for (let callback of callbacks) if (typeof callback === "function") callback(...args);
	};
}

//#endregion
export { chain };
//# sourceMappingURL=chain.js.map