1 var isNative = require('./isNative');
4 * Gets the native function at `key` of `object`.
7 * @param {Object} object The object to query.
8 * @param {string} key The key of the method to get.
9 * @returns {*} Returns the function if it's native, else `undefined`.
11 function getNative(object, key) {
12 var value = object == null ? undefined : object[key];
13 return isNative(value) ? value : undefined;
16 module.exports = getNative;