0
0
mirror of https://github.com/Doodle3D/Doodle3D-API synced 2024-12-23 22:13:48 +01:00
Doodle3D-API/jspm_packages/npm/core-js@0.9.18/modules/$.cof.js

18 lines
488 B
JavaScript
Raw Normal View History

2015-07-15 15:06:18 +02:00
/* */
var $ = require("./$"),
TAG = require("./$.wks")('toStringTag'),
toString = {}.toString;
function cof(it) {
return toString.call(it).slice(8, -1);
}
cof.classof = function(it) {
var O,
T;
return it == undefined ? it === undefined ? 'Undefined' : 'Null' : typeof(T = (O = Object(it))[TAG]) == 'string' ? T : cof(O);
};
cof.set = function(it, tag, stat) {
if (it && !$.has(it = stat ? it : it.prototype, TAG))
$.hide(it, TAG, tag);
};
module.exports = cof;