isFinite

最后更新于:2022-04-02 00:02:28

## isFinite + [link](./isFinite "Link to this entry.") + [source](https://github.com/lodash/lodash/blob/4.5.0正式版/lodash.src.js#L9815 "View in source.") + [npm](https://www.npmjs.com/package/lodash.isfinite "See the npm package.") ``` _.isFinite(value) ``` 检查 `value` 是否是原始 finite number。 **注意:** 这个方法基于 [`Number.isFinite`](https://mdn.io/Number/isFinite). ### 参数 1. value (\*) 要检查的值 ### 返回值 (boolean) 如果是 finite number 返回 `true`,否则返回 `false` ### 示例 ``` _.isFinite(3); // => true _.isFinite(Number.MAX_VALUE); // => true _.isFinite(3.14); // => true _.isFinite(Infinity); // => false ```
';