export default function createChainedFunction() {
  for (var _len = arguments.length, functions = new Array(_len), _key = 0; _key < _len; _key++) {
    functions[_key] = arguments[_key];
  }
  return functions.reduce((acc, func) => {
    if (func === null) {
      return acc;
    }
    return function chainedFunction() {
      for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
        args[_key2] = arguments[_key2];
      }
      acc && acc.apply(this, args);
      func && func.apply(this, args);
    };
  },
  // eslint-disable-next-line @typescript-eslint/no-empty-function
  () => {});
}
//# sourceMappingURL=createChainedFunction.js.map