1 // getting tag from 19.1.3.6 Object.prototype.toString()
2 var cof = require('./_cof')
3 , TAG = require('./_wks')('toStringTag')
5 , ARG = cof(function(){ return arguments; }()) == 'Arguments';
7 // fallback for IE11 Script Access Denied error
8 var tryGet = function(it, key){
11 } catch(e){ /* empty */ }
14 module.exports = function(it){
16 return it === undefined ? 'Undefined' : it === null ? 'Null'
18 : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
21 // ES3 arguments fallback
22 : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;