_.toFinite

_.toFinite(value)

Converts value to a finite number.

Since

4.12.0

Arguments

  1. value (*): The value to convert.

Returns

(number): Returns the converted number.

Example

_.toFinite(3.2);
// => 3.2
 
_.toFinite(Number.MIN_VALUE);
// => 5e-324
 
_.toFinite(Infinity);
// => 1.7976931348623157e+308
 
_.toFinite('3.2');
// => 3.2
doc_Lodash
2016-11-27 16:41:12
Comments
Leave a Comment

Please login to continue.