Remove isFunction use.

This commit is contained in:
John-David Dalton
2017-02-24 23:34:08 -08:00
parent 37f168d466
commit ffcb38f74d
4 changed files with 6 additions and 8 deletions

View File

@@ -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
}