MCPcopy Index your code
hub / github.com/dunky11/react-saas-template / getNative

Function getNative

src/shared/functions/toArray.js:484–487  ·  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

482 * @returns {*} Returns the function if it's native, else `undefined`.
483 */
484function getNative(object, key) {
485 const value = getValue(object, key);
486 return baseIsNative(value) ? value : undefined;
487}
488
489/**
490 * Gets the `toStringTag` of `value`.

Callers 1

toArray.jsFile · 0.85

Calls 2

getValueFunction · 0.85
baseIsNativeFunction · 0.85

Tested by

no test coverage detected