UNPKG

@stdlib/esm

Version:

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

3 lines 364 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 t=r;function n(r,n){if(!t(r))throw new TypeError("invalid argument. First argument must be a function. Value: `"+r+"`.");try{return r()}catch(r){return n}}var e=n;export default e; //# sourceMappingURL=try-catch.js.map