MCPcopy Create free account
hub / github.com/Lemoncode/fonk / getNative

Function getNative

src/helpers/set.js:599–602  ·  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

597 * @returns {*} Returns the function if it's native, else `undefined`.
598 */
599function getNative(object, key) {
600 var value = getValue(object, key);
601 return baseIsNative(value) ? value : undefined;
602}
603
604/**
605 * Checks if `value` is a valid array-like index.

Callers 1

set.jsFile · 0.70

Calls 2

getValueFunction · 0.70
baseIsNativeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…