_.toFinite(value)
Converts value
to a finite number.
Since
4.12.0
Arguments
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
当前内容版权归 lodash.com 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 lodash.com .