mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 00:27:50 +00:00
Bump to v4.13.0.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import isNative from './isNative';
|
||||
import baseIsNative from './_baseIsNative.js';
|
||||
import getValue from './_getValue.js';
|
||||
|
||||
/**
|
||||
* Gets the native function at `key` of `object`.
|
||||
@@ -9,8 +10,8 @@ import isNative from './isNative';
|
||||
* @returns {*} Returns the function if it's native, else `undefined`.
|
||||
*/
|
||||
function getNative(object, key) {
|
||||
var value = object[key];
|
||||
return isNative(value) ? value : undefined;
|
||||
var value = getValue(object, key);
|
||||
return baseIsNative(value) ? value : undefined;
|
||||
}
|
||||
|
||||
export default getNative;
|
||||
|
||||
Reference in New Issue
Block a user