mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Remove apply.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import apply from './.internal/apply.js'
|
||||
import isError from './isError.js'
|
||||
|
||||
/**
|
||||
@@ -22,7 +21,7 @@ import isError from './isError.js'
|
||||
*/
|
||||
function attempt(func, ...args) {
|
||||
try {
|
||||
return apply(func, undefined, args)
|
||||
return func.apply(undefined, args)
|
||||
} catch (e) {
|
||||
return isError(e) ? e : new Error(e)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user