* The base implementation of `_.toNumber` which doesn't ensure correct * conversions of binary, hexadecimal, or octal string values. * * @private * @param {*} value The value to process. * @returns {number} Returns the number.
(value)
| 14835 | * @returns {number} Returns the number. |
| 14836 | */ |
| 14837 | function baseToNumber(value) { |
| 14838 | if (typeof value == 'number') { |
| 14839 | return value; |
| 14840 | } |
| 14841 | if (isSymbol(value)) { |
| 14842 | return NAN; |
| 14843 | } |
| 14844 | return +value; |
| 14845 | } |
| 14846 | |
| 14847 | /** |
| 14848 | * The base implementation of `_.toString` which doesn't convert nullish |
no test coverage detected