mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 19:52:01 +03:00
a3456b7e1c
* 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;
|