40b42cfa13f9901636bae1d1326305e62dce0c72d4309a4684504d8f750926317d0d9bf573717e4dbf80032994a27b496ab11d5e9000776cc1e4063074f47f 483 B

1234567891011121314151617
  1. var baseIsNative = require('./_baseIsNative'),
  2. getValue = require('./_getValue');
  3. /**
  4. * Gets the native function at `key` of `object`.
  5. *
  6. * @private
  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`.
  10. */
  11. function getNative(object, key) {
  12. var value = getValue(object, key);
  13. return baseIsNative(value) ? value : undefined;
  14. }
  15. module.exports = getNative;