@stdlib/esm
Version:
ES module distribution for Stdlib, a standard library for JavaScript and Node.js.
3 lines • 504 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"./../../assert/is-function.js";var n=r;function t(r,t,u,e){if(!n(r))throw new TypeError("invalid argument. First argument must be a function. Value: `"+r+"`.");if(!n(e))throw new TypeError("invalid argument. Last argument must be a function. Value: `"+e+"`.");r((function(r,n){if(r)return e(r);if(n)return e(null,t);e(null,u)}))}var u=t;export default u;
//# sourceMappingURL=if-else.js.map