mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-16 12:16:09 +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.
11 lines
269 B
JavaScript
11 lines
269 B
JavaScript
// isNumber function from lodash
|
|
|
|
var toString = Object.prototype.toString;
|
|
|
|
function isNumber(value) {
|
|
return typeof value === 'number' ||
|
|
value && typeof value === 'object' && toString.call(value) === '[object Number]' || false;
|
|
}
|
|
|
|
export default isNumber;
|