0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/client/app/utils/isNumber.js

9 lines
245 B
JavaScript
Raw Normal View History

// isNumber function from lodash
const {toString} = Object.prototype;
export default function (value) {
return typeof value === 'number' ||
value && typeof value === 'object' && toString.call(value) === '[object Number]' || false;
}