MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / baseToString

Function baseToString

lib/web/jshint.js:1863–1868  ·  view source on GitHub ↗

* Converts `value` to a string if it is not one. An empty string is returned * for `null` or `undefined` values. * * @private * @param {*} value The value to process. * @returns {string} Returns the string.

(value)

Source from the content-addressed store, hash-verified

1861 * @returns {string} Returns the string.
1862 */
1863 function baseToString(value) {
1864 if (typeof value == 'string') {
1865 return value;
1866 }
1867 return value == null ? '' : (value + '');
1868 }
1869
1870 /**
1871 * Used by `_.max` and `_.min` as the default callback for string values.

Callers 15

createPadDirFunction · 0.85
toPathFunction · 0.85
capitalizeFunction · 0.85
deburrFunction · 0.85
endsWithFunction · 0.85
escapeFunction · 0.85
escapeRegExpFunction · 0.85
padFunction · 0.85
repeatFunction · 0.85
startsWithFunction · 0.85
templateFunction · 0.85
trimFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected