1234567891011121314151617181920212223242526272829303132333435 |
- import apply from './_apply.js';
- import baseRest from './_baseRest.js';
- import isError from './isError.js';
- var attempt = baseRest(function(func, args) {
- try {
- return apply(func, undefined, args);
- } catch (e) {
- return isError(e) ? e : new Error(e);
- }
- });
- export default attempt;
|