* 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)
| 11964 | * @returns {string} Returns the string. |
| 11965 | */ |
| 11966 | function baseToString(value) { |
| 11967 | // Exit early for strings to avoid a performance hit in some environments. |
| 11968 | if (typeof value == 'string') { |
| 11969 | return value; |
| 11970 | } |
| 11971 | if (isArray(value)) { |
| 11972 | // Recursively convert values (susceptible to call stack limits). |
| 11973 | return arrayMap(value, baseToString) + ''; |
| 11974 | } |
| 11975 | if (isSymbol(value)) { |
| 11976 | return symbolToString ? symbolToString.call(value) : ''; |
| 11977 | } |
| 11978 | var result = (value + ''); |
| 11979 | return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; |
| 11980 | } |
| 11981 | |
| 11982 | /** |
| 11983 | * The base implementation of `_.uniqBy` without support for iteratee shorthands. |
no test coverage detected