MCPcopy
hub / github.com/lodash/lodash / getNative

Function getNative

lodash.js:6067–6070  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

6065 * @returns {*} Returns the function if it's native, else `undefined`.
6066 */
6067 function getNative(object, key) {
6068 var value = getValue(object, key);
6069 return baseIsNative(value) ? value : undefined;
6070 }
6071
6072 /**
6073 * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.

Callers 1

lodash.jsFile · 0.85

Calls 2

getValueFunction · 0.85
baseIsNativeFunction · 0.85

Tested by

no test coverage detected