MCPcopy
hub / github.com/dunky11/react-saas-template / toSource

Function toSource

src/shared/functions/toArray.js:584–594  ·  view source on GitHub ↗

* Converts `func` to its source code. * * @private * @param {Function} func The function to process. * @returns {string} Returns the source code.

(func)

Source from the content-addressed store, hash-verified

582 * @returns {string} Returns the source code.
583 */
584function toSource(func) {
585 if (func !== null) {
586 try {
587 return funcToString.call(func);
588 } catch (e) {}
589 try {
590 return `${func}`;
591 } catch (e) {}
592 }
593 return "";
594}
595
596/**
597 * Checks if `value` is likely an `arguments` object.

Callers 2

toArray.jsFile · 0.85
baseIsNativeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected