@stdlib/esm
Version:
ES module distribution for Stdlib, a standard library for JavaScript and Node.js.
3 lines • 850 B
JavaScript
// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0
import r from"./../define-nonenumerable-read-only-property.js";import n from"./../../assert/is-function-array.js";import t from"./../../assert/is-function.js";var e=n,a=t;function o(r,n,t){if(!e(r))throw new TypeError("invalid argument. First argument must be a function array. Value: `"+r+"`.");if(!a(n))throw new TypeError("invalid argument. Second argument must be a function. Value: `"+n+"`.");return function(){var e=-1;!function a(){var o,i,u;if(arguments[0])return n(arguments[0]);if((e+=1)>=r.length)return n();for(i=arguments.length,o=new Array(i),u=0;u<i-1;u++)o[u]=arguments[u+1];o[u]=a,r[e].apply(t,o)}()}}var i=o;function u(r,n,t){i(r,n,t)()}var f=r,m=u,s=o;f(m,"factory",s);export default m;
//# sourceMappingURL=series-waterfall.js.map