一、返回数据类型
/**
*
* @returns {string}返回obja的数据类型
* @param obja
*/
exports.typeJudge = function (obja){
let type = Object.prototype.toString.call(obja).match(/\S+.(?=])/)[0] ;
return type;
}
一、返回数据类型
/**
*
* @returns {string}返回obja的数据类型
* @param obja
*/
exports.typeJudge = function (obja){
let type = Object.prototype.toString.call(obja).match(/\S+.(?=])/)[0] ;
return type;
}