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

Function toSource

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

720 * @returns {string} Returns the source code.
721 */
722function toSource(func) {
723 if (func != null) {
724 try {
725 return funcToString.call(func);
726 } catch (e) {}
727 try {
728 return func + '';
729 } catch (e) {}
730 }
731 return '';
732}
733
734/**
735 * Creates a function that memoizes the result of `func`. If `resolver` is

Callers 1

baseIsNativeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…