toFinite

Lang
since 4.12.0

Arguments

  • * The value to convert.

Returns

number the converted number.

Converts value to a finite number.

Example of Lodash _.toFinite

_.toFinite(3.2);
// => 3.2

_.toFinite(Number.MIN_VALUE);
// => 5e-324

_.toFinite(Infinity);
// => 1.7976931348623157e+308

_.toFinite('3.2');
// => 3.2