source:
frontend/node_modules/underscore/modules/isFinite.js
| Last change on this file was 9af201e, checked in by , 11 days ago | |
|---|---|
|
|
| File size: 230 bytes | |
| Line | |
|---|---|
| 1 | import { _isFinite } from './_setup.js'; |
| 2 | import isSymbol from './isSymbol.js'; |
| 3 | |
| 4 | // Is a given object a finite number? |
| 5 | export default function isFinite(obj) { |
| 6 | return !isSymbol(obj) && _isFinite(obj) && !isNaN(parseFloat(obj)); |
| 7 | } |
Note:
See TracBrowser
for help on using the repository browser.
