UNPKG

@stdlib/esm

Version:

ES module distribution for Stdlib, a standard library for JavaScript and Node.js.

3 lines 832 B
// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 import r from"./../../assert/is-function.js";var n=r;function t(r,t,e,u){if(!n(r))throw new TypeError("invalid argument. First argument must be a function. Value: `"+r+"`.");if(!n(t))throw new TypeError("invalid argument. Second argument must be a function. Value: `"+t+"`.");if(!n(e))throw new TypeError("invalid argument. Third argument must be a function. Value: `"+e+"`.");if(!n(u))throw new TypeError("invalid argument. Last argument must be a function. Value: `"+u+"`.");function a(r){var n,t,e;if(r)return u(r);for(n=arguments.length,(t=new Array(n))[0]=null,e=1;e<n;e++)t[e]=arguments[e];u.apply(null,t)}r((function(r,n){if(r)return u(r);if(n)return t(a);e(a)}))}var e=t;export default e; //# sourceMappingURL=if-then.js.map