Converts value to a number.
value
The value to process.
Returns the number.
_.toNumber(3);// => 3_.toNumber(Number.MIN_VALUE);// => 5e-324_.toNumber(Infinity);// => Infinity_.toNumber('3');// => 3 Copy
_.toNumber(3);// => 3_.toNumber(Number.MIN_VALUE);// => 5e-324_.toNumber(Infinity);// => Infinity_.toNumber('3');// => 3
Converts
value
to a number.