mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 19:02:29 +03:00
936acdb693
* Adds `bind`, `isFinite`, and `isNumber` utility functions from lodash. * Use new util funtions instead of lodash throughout the codebase. * Remove lodash from vendor builds.
10 lines
182 B
JavaScript
10 lines
182 B
JavaScript
/* globals window */
|
|
|
|
// isFinite function from lodash
|
|
|
|
function isFinite(value) {
|
|
return window.isFinite(value) && !window.isNaN(parseFloat(value));
|
|
}
|
|
|
|
export default isFinite;
|