0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/client/utils/isNumber.js

11 lines
269 B
JavaScript
Raw Normal View History

// 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;