typeof/instanceof等太麻烦。直接一点:

Object.prototype.toString.call(value);