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