In 1js, the return value of the reference type typeOf is object;
var b =[]
function getObjType(obj){
return typeof(obj)!=="function"?
undefined:
obj.name||/function (.+?)\(/.exec(obj+"")[1]
//if(obj.name){
// return obj.name //ie8 not supported
//}else{
//var str=(""+b.constructor).replace(/\s/g,"").replace("function","");
//return (str.match(/\w+\(/)+"").replace('(',"")
//return /function (.+?)\(/.exec(obj+"")[1]
}
}
var s=getObjType(b.constructor)
console.log(s)