_.toNumber(value)
Converts value
to a number.
Since
4.0.0
Arguments
-
value
(*): The value to process.
Returns
(number): Returns the number.
Example
_.toNumber(3.2); // => 3.2 _.toNumber(Number.MIN_VALUE); // => 5e-324 _.toNumber(Infinity); // => Infinity _.toNumber('3.2'); // => 3.2
Please login to continue.