MCPcopy Create free account
hub / github.com/RubyLouvre/anu / getNative

Function getNative

test/babel.js:3800–3803  ·  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

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

Callers 1

babel.jsFile · 0.85

Calls 2

getValueFunction · 0.85
baseIsNativeFunction · 0.85

Tested by

no test coverage detected