mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Remove isFunction use.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import castPath from './.internal/castPath.js'
|
||||
import isFunction from './isFunction.js'
|
||||
import toKey from './.internal/toKey.js'
|
||||
|
||||
/**
|
||||
@@ -46,7 +45,7 @@ function result(object, path, defaultValue) {
|
||||
index = length
|
||||
value = defaultValue
|
||||
}
|
||||
object = isFunction(value) ? value.call(object) : value
|
||||
object = typeof value == 'function' ? value.call(object) : value
|
||||
}
|
||||
return object
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user