UNPKG

abbott-methods

Version:

abbott,methods,method,functions,function

11 lines (9 loc) 304 B
import { typeNumber } from './typeNumber' /** * @description 是否string类型 * @param {*} typeValue * @returns {Boolean} */ export const typeString = (typeValue: any): boolean => Object.prototype.toString.call(typeValue).toLowerCase() === '[object string]' || typeNumber(typeValue)