UNPKG

web-utils-super

Version:

前端函数库

11 lines (9 loc) 264 B
/** * @desc: 判断数据类型 * @param {any} para * @return {String} 'number' | 'string' 等 */ function isType(para) { return Object.prototype.toString.call(para).replace(/\[|\]/g,'').split(' ')[1].toLocaleLowerCase() } module.exports = isType