mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Bump to v4.13.0.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
var isNative = require('./isNative');
|
||||
var baseIsNative = require('./_baseIsNative'),
|
||||
getValue = require('./_getValue');
|
||||
|
||||
/**
|
||||
* Gets the native function at `key` of `object`.
|
||||
@@ -9,8 +10,8 @@ var isNative = require('./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;
|
||||
}
|
||||
|
||||
module.exports = getNative;
|
||||
|
||||
Reference in New Issue
Block a user