package.modules.isFinite.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of underscore Show documentation
Show all versions of underscore Show documentation
JavaScript's functional programming helper library.
The newest version!
import { _isFinite } from './_setup.js';
import isSymbol from './isSymbol.js';
// Is a given object a finite number?
export default function isFinite(obj) {
return !isSymbol(obj) && _isFinite(obj) && !isNaN(parseFloat(obj));
}