MCPcopy
hub / github.com/amark/gun / Gun

Function Gun

gun.js:654–658  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

652 ;USE(function(module){
653
654 function Gun(o){
655 if(o instanceof Gun){ return (this._ = {gun: this, $: this}).$ }
656 if(!(this instanceof Gun)){ return new Gun(o) }
657 return Gun.create(this._ = {gun: this, $: this, opt: o});
658 }
659
660 Gun.is = function($){ return ($ instanceof Gun) || ($ && $._ && ($ === $._.$)) || false }
661

Callers 15

list.jsFile · 0.50
tmp.test.sql.jsFile · 0.50
common.jsFile · 0.50
gFunction · 0.50
tmp.jsFile · 0.50
all.jsFile · 0.50
performance.jsFile · 0.50
set.jsFile · 0.50
spam.jsFile · 0.50
memdisk.jsFile · 0.50
perf.jsFile · 0.50
sea.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected