Sha256: dafae5138c895bb7ff413e3a7d98dd72814775a353d29c20c2899bb0d9d7b66d
Contents?: true
Size: 565 Bytes
Versions: 40
Compression:
Stored size: 565 Bytes
Contents
// 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; };
Version data entries
40 entries across 18 versions & 7 rubygems