MCPcopy Index your code
hub / github.com/codrops/RainEffect / wrap

Function wrap

demo/js/index.js:3406–3417  ·  view source on GitHub ↗
(tag)

Source from the content-addressed store, hash-verified

3404} : setDesc;
3405
3406var wrap = function(tag){
3407 var sym = AllSymbols[tag] = _create($Symbol.prototype);
3408 sym._k = tag;
3409 SUPPORT_DESC && setter && setSymbolDesc(ObjectProto, tag, {
3410 configurable: true,
3411 set: function(value){
3412 if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;
3413 setSymbolDesc(this, tag, createDesc(1, value));
3414 }
3415 });
3416 return sym;
3417};
3418
3419var isSymbol = function(it){
3420 return typeof it == 'symbol';

Callers 1

index.jsFile · 0.70

Calls 2

_createFunction · 0.85
setFunction · 0.70

Tested by

no test coverage detected