Files
vercel_dashboard_example/.pnpm-store/v11/files/00/e3a872b802e7148657d562a5ab135ae0025bfba63ec9302c891bcfcb09be5b4360df7abe2d19c80b576a23bd20639b7487624867eb92127eeb2a404338d9df
T
2026-05-12 14:53:15 +00:00

16 lines
565 B
Plaintext

// getting tag from 19.1.3.6 Object.prototype.toString()
var cof = require('./$.cof')
, TAG = require('./$.wks')('toStringTag')
// ES3 wrong here
, ARG = cof(function(){ return arguments; }()) == 'Arguments';
module.exports = function(it){
var O, T, B;
return it === undefined ? 'Undefined' : it === null ? 'Null'
// @@toStringTag case
: typeof (T = (O = Object(it))[TAG]) == 'string' ? T
// builtinTag case
: ARG ? cof(O)
// ES3 arguments fallback
: (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
};