UNPKG

abbott-methods

Version:

abbott,methods,method,functions,function

8 lines (7 loc) 239 B
/** * @description 是否number类型 * @param {*} typeValue * @returns {Boolean} */ export const typeNumber = (typeValue: any): boolean => typeof typeValue === 'number' || (!isNaN(typeValue) && typeof typeValue === 'string')