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

Function getNative

src/helpers/get.js:553–556  ·  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

551 * @returns {*} Returns the function if it's native, else `undefined`.
552 */
553function getNative(object, key) {
554 const value = getValue(object, key);
555 return baseIsNative(value) ? value : undefined;
556}
557
558/**
559 * Checks if `value` is a property name and not a property path.

Callers 1

get.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…