Ghost/core/client/app/utils/isNumber.js
2015-03-11 12:37:41 -06:00

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;