* 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)
| 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. |
no outgoing calls
no test coverage detected