* 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)
| 11875 | * @returns {string} Returns the string. |
| 11876 | */ |
| 11877 | function baseToString(value) { |
| 11878 | // Exit early for strings to avoid a performance hit in some environments. |
| 11879 | if (typeof value == 'string') { |
| 11880 | return value; |
| 11881 | } |
| 11882 | if (isArray(value)) { |
| 11883 | // Recursively convert values (susceptible to call stack limits). |
| 11884 | return arrayMap(value, baseToString) + ''; |
| 11885 | } |
| 11886 | if (isSymbol(value)) { |
| 11887 | return symbolToString ? symbolToString.call(value) : ''; |
| 11888 | } |
| 11889 | var result = (value + ''); |
| 11890 | return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; |
| 11891 | } |
| 11892 | |
| 11893 | /** |
| 11894 | * The base implementation of `_.uniqBy` without support for iteratee shorthands. |
no test coverage detected