最好的方法应该是
function checkType(obj){ return Object.prototype.toString.call(obj) }
返回结果是[object Function], [object Number], [object String]等信息。