* 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)
| 4271 | * @returns {number} Returns the number. |
| 4272 | */ |
| 4273 | function baseToNumber(value) { |
| 4274 | if (typeof value == 'number') { |
| 4275 | return value; |
| 4276 | } |
| 4277 | if (isSymbol(value)) { |
| 4278 | return NAN; |
| 4279 | } |
| 4280 | return +value; |
| 4281 | } |
| 4282 | |
| 4283 | /** |
| 4284 | * The base implementation of `_.toString` which doesn't convert nullish |
no test coverage detected