MCPcopy Index your code
hub / github.com/deployd/deployd / baseToString

Function baseToString

test-app/public/sinon.js:14855–14869  ·  view source on GitHub ↗

* The base implementation of `_.toString` which doesn't convert nullish * values to empty strings. * * @private * @param {*} value The value to process. * @returns {string} Returns the string.

(value)

Source from the content-addressed store, hash-verified

14853 * @returns {string} Returns the string.
14854 */
14855 function baseToString(value) {
14856 // Exit early for strings to avoid a performance hit in some environments.
14857 if (typeof value == 'string') {
14858 return value;
14859 }
14860 if (isArray(value)) {
14861 // Recursively convert values (susceptible to call stack limits).
14862 return arrayMap(value, baseToString) + '';
14863 }
14864 if (isSymbol(value)) {
14865 return symbolToString ? symbolToString.call(value) : '';
14866 }
14867 var result = (value + '');
14868 return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
14869 }
14870
14871 /**
14872 * The base implementation of `_.uniqBy` without support for iteratee shorthands.

Callers 10

createMathOperationFunction · 0.85
createPaddingFunction · 0.85
toStringFunction · 0.85
endsWithFunction · 0.85
splitFunction · 0.85
startsWithFunction · 0.85
trimFunction · 0.85
trimEndFunction · 0.85
trimStartFunction · 0.85
truncateFunction · 0.85

Calls 3

arrayMapFunction · 0.85
isArrayFunction · 0.70
isSymbolFunction · 0.70

Tested by

no test coverage detected