MCPcopy
hub / github.com/lodash/lodash / toSource

Function toSource

lodash.js:6863–6873  ·  view source on GitHub ↗

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

(func)

Source from the content-addressed store, hash-verified

6861 * @returns {string} Returns the source code.
6862 */
6863 function toSource(func) {
6864 if (func != null) {
6865 try {
6866 return funcToString.call(func);
6867 } catch (e) {}
6868 try {
6869 return (func + '');
6870 } catch (e) {}
6871 }
6872 return '';
6873 }
6874
6875 /**
6876 * Updates wrapper `details` based on `bitmask` flags.

Callers 2

lodash.jsFile · 0.85
baseIsNativeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected