0
0
mirror of https://github.com/Doodle3D/Doodle3D-API synced 2024-12-23 14:13:47 +01:00
Doodle3D-API/jspm_packages/npm/core-js@0.9.18/modules/$.cof.js
2015-07-15 15:06:18 +02:00

18 lines
488 B
JavaScript

/* */
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;