MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / setToStringTag

Function setToStringTag

lib/web/polyfill.js:88–90  ·  view source on GitHub ↗
(it, tag, stat)

Source from the content-addressed store, hash-verified

86// http://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring
87var toString = ObjectProto[TO_STRING];
88function setToStringTag(it, tag, stat){
89 if(it && !has(it = stat ? it : it[PROTOTYPE], SYMBOL_TAG))hidden(it, SYMBOL_TAG, tag);
90}
91function cof(it){
92 return toString.call(it).slice(8, -1);
93}

Callers 4

createIteratorFunction · 0.85
defineIteratorFunction · 0.85
polyfill.jsFile · 0.85
getCollectionFunction · 0.85

Calls 1

hasFunction · 0.70

Tested by

no test coverage detected