* Gets the native function at `key` of `object`. * * @private * @param {Object} object The object to query. * @param {string} key The key of the method to get. * @returns {*} Returns the function if it's native, else `undefined`.
(object, key)
| 3798 | * @returns {*} Returns the function if it's native, else `undefined`. |
| 3799 | */ |
| 3800 | function getNative(object, key) { |
| 3801 | var value = getValue(object, key); |
| 3802 | return baseIsNative(value) ? value : undefined; |
| 3803 | } |
| 3804 | |
| 3805 | module.exports = getNative; |
| 3806 |
no test coverage detected