Remove core-js guard.

This commit is contained in:
John-David Dalton
2017-01-09 18:07:23 -08:00
parent 44950212a0
commit bc4262f901
7 changed files with 35 additions and 120 deletions

View File

@@ -1,5 +1,4 @@
import baseIsNative from './_baseIsNative.js';
import getValue from './_getValue.js';
import isNative from './isNative.js';
/**
* Gets the native function at `key` of `object`.
@@ -10,8 +9,8 @@ import getValue from './_getValue.js';
* @returns {*} Returns the function if it's native, else `undefined`.
*/
function getNative(object, key) {
const value = getValue(object, key);
return baseIsNative(value) ? value : undefined;
const value = object == null ? undefined : object[key];
return isNative(value) ? value : undefined;
}
export default getNative;