SOURCE

function judgeDataType (data){
    if(typeof data ==='object'){
        if(data===null) return 'null'
        if(data instanceof Array) return 'array'
        if(data instanceof Object) return 'object'
    }else{
        return typeof data
    }
}
console 命令行工具 X clear

                    
>
console