mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
10 lines
269 B
JavaScript
10 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;
|