Passed
Push — master ( 54ded3...bad67d )
by Evgeny
01:19
created

translingual.min.js ➔ u   B

Complexity

Conditions 8

Size

Total Lines 1
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 1
rs 7.3333
c 0
b 0
f 0
cc 8
1
!function(e,i){"object"==typeof exports&&"object"==typeof module?module.exports=i():"function"==typeof define&&define.amd?define("Trans",[],i):"object"==typeof exports?exports.Trans=i():e.Trans=i()}(window,function(){return function(e){var i={};function u(o){if(i[o])return i[o].exports;var a=i[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,u),a.l=!0,a.exports}return u.m=e,u.c=i,u.d=function(e,i,o){u.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:o})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,i){if(1&i&&(e=u(e)),8&i)return e;if(4&i&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(u.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&i&&"string"!=typeof e)for(var a in e)u.d(o,a,function(i){return e[i]}.bind(null,a));return o},u.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(i,"a",i),i},u.o=function(e,i){return Object.prototype.hasOwnProperty.call(e,i)},u.p="",u(u.s=0)}([function(e,i,u){var o=u(1);e.exports=new function(){var e=this;this.maps=o,this.tWord1=function(e,i,u){for(var a in o.map[i][u])o.map[i][u].hasOwnProperty(a)&&(e=e.replace(new RegExp(a,"g"),o.map[i][u][a]));return e},this.tWordN=function(i,u,a,r){if(!i)return"";r=r||0;for(var t,$,n=Object.keys(o.map[u][a]);r<n.length;++r)if(t=i.match(new RegExp(n[r],"ig"))){try{t[0]=t[0].replace(/([\()\[\]])/g,"\\$1"),$=i.split(new RegExp("("+t[0]+")")).filter(function(e){return e});for(var y=0;y<$.length;++y)$[y]===t[0]?$[y]=$[y].replace(new RegExp(n[r],"ig"),o.map[u][a][n[r]]):$[y]=e.tWordN($[y],u,a,r+1);i=$.join("")}catch(e){console.error("Failed transliting:",n[r],e,r,t,i,u,a)}break}return i},this.find_bridge=function(i,u,a){for(var r=!1,t=0;t<o.languages.length&&!1===r;++t)r=!!o.map[o.languages[t]][a]&&o.languages[t];return r?e.lingualate_helper(e.lingualate_helper(i,u,r),r,a):""},this.tsplit=function(e){return e.split(/[\s\-]/).filter(function(e){return void 0!==e&&e.length})},this.lingualate_helper=function(i,u,a){if(!i||!o.map[u])return i||"";if(!o.map[u][a])return e.find_bridge(i,u,a);for(var r=e.tsplit(i),t=-1!==["ru","uk","sr","el","trans"].indexOf(u)?e.tWord1:e.tWordN,$=0;$<r.length;++$)r[$]=t(r[$],u,a);return r.join(" ")},this.up=function(i){return e.tsplit(i).map(function(e){return e.substr(0,1).toUpperCase()+e.substr(1)}).join(" ")},this.lingualate=function(i,u,o){return e.up(e.lingualate_helper(i.toLowerCase(),u,o))}}},function(e,i){var u={trans:{he:{"ˌ":"","\\.":'"',"ˈ":"","ʔ":"","˜":"","ʎ":"יה","ɦ":"ה",je:"י","oʊ":"ו","juː?":"יו","aɪ":"י","ɔɪ":"ו","eɪ":"י","œ":"וי",y:"ו","ə":"","о":"ו","а":"","^ə":"א",e:"","ɛ":"","æ":"","ɔː?":"ו","iː?":"י","ɪː?":"י","uː":"ו","ɑː?$":"ה","ɑː":"א","ɑ":"","ᵿ":"ו","ᵻ":"י","ʌ":"א","ɜː?":"",u:"יו","ʊ":"ו","ɪ":"א",a:"א","ɒ":"ו","ʏ":"ו",g:"ג",c:"ק",o:"או","ɲ":"ני","ɾ":"ר",b:"ב","β":"ב",d:"ד","ð":"ד'","dʒ":"ז'",f$:"ף",f:"פ","ɡ":"ג","ɣ":"ג",hw:"וו","^h":"ח",h$:"ך",h:"ח","ç$":"ך","ç":"כ",j:"י",k:"ק",l:"ל",m$:"ם",m:"מ",n$:"ן",n:"נ","ŋ":"נג","θ":"ת'",p:"פ",r:"ר","ɹ":"ר","ʁ":"ר",s:"ס",dz$:"ץ",dz:"צ",ts$:"ץ",ts:"צ","tʃ$":"ץ'","tʃ":"צ'","ʃ":"ש",t:"ט",v:"ו",w:"וו",z:"ז","ʒ":"ש","ʂ":"ש","ɕː":"ש","ʐ":"ג'",x:"ח","ː":"","([^אהיו])+":"$1","([אהיו])+":"$1$1"},ru:{"ˌ":"ь","ˈ":"ъ","ʔ":"","˜":"","œ":"ой",y:"у",je:"e",ja:"я","aʊ":"oу","oʊ":"oу",ju:"ю","aɪ":"я","ɔɪ":"ё","eɪ":"е","^ə":"a",e:"е","ə":"е","ɛ":"э","æ":"е","ɔː":"о","ɔ":"оу",i:"и","ɪ":"и",u:"у","ɑː?":"а","ᵿ":"ю","ᵻ":"ы","ʌ":"а","ɜː?":"е","ʊ":"у","ɒː?":"о","ʏ":"у","ɲ":"нь","ɾ":"рь","ʎ":"я","ɦ":"г",b:"б","β":"в",d:"д","dʒ":"дж","ð":"д",f:"ф","ɡ":"г","ɣ":"Г",hw:"ю",h:"х","ç":"х",j:"и",k:"к",l:"л",m:"м",n:"н","ŋ":"нг","θ":"ф",p:"п",r:"р","ɹ":"р","ʁ":"р",ts:"ц",dz:"ц",s:"с","tʃ":"ч","ʃ":"ш",t:"т",v:"в",w:"в",z:"з","ʒ":"ш","ʂ":"ш","ɕː":"щ","ʐ":"ж",x:"х","([чщ])я":"$1а","([чщ])ё":"$1о","([чщ])ю":"$1у","([жш])ы":"$1и","([ао])([рл])([ао])":"о$2о","ː":""},es:{"ʔ":"","˜":"","ˌ":"","ˈ":"",y:"u",je:"e",ja:"ia","aʊ":"o","oʊ":"o",ju:"iu","aɪ":"i","ɔɪ":"o","eɪ":"e","œ":"oi","ɔː":"o","^ə":"a",e:"е","ə":"е","ɛ":"е","æ":"е","ɔ":"ou","iː":"иe","ɪ":"i","ɑː?":"a","ᵿ":"u","ᵻ":"i","ʌ":"a","ɜː?":"e","ʊ":"u","ɒː?":"o","ʏ":"y","ɲ":"ñ","ɾ":"r","ʎ":"ll","ɦ":"gh",b:"v","β":"b","dʒ":"d","ð":"d","ɣ":"g",hw:"u",h:"j","ç":"j",ks:"x","θ":"s",r:"rr","ɹ":"r",dz:"ts",s:"z","tʃ":"ch","ʃ":"sh",v:"v",z:"s","ʒ":"z","ʂ":"sh","ɕː":"sh","ʐ":"g",x:"j","j([aeoiuy])":"hi$1",j:"i","w([aeiouy])":"hu$1","ŋ([^aeoiuy])":"n$1","ŋ":"ng","(^|n)ɡw?([ao])":"$1gu$2","(^|n)ɡw([ei])":"$1gü$2","ɡ":"g",w:"","ʁ":"r","s([ei])":"c$1","ː":""},de:{"ʔ":"","˜":"","ˌ":"","ˈ":"","œ":"oi","iː":"ie","yː":"üh",ye:"ü",y:"ü",je:"e",ia:"ja","aʊ":"au","oʊ":"ou",ju:"u","aɪ":"ei","ɔɪ":"eu","ɔʏ":"eu","eɪ":"eh","jɪ":"gi","ɔː":"o","оː":"оh","аː":"аh","eː":"ä","^ə":"a","ə":"е","ɛ":"ä","æ":"ö","ɔ":"o","ɪ":"i","u:":"uh","ɑː?":"a","ᵿ":"u","ᵻ":"i","ʌ":"a","ɜː?":"e","ʊ":"u","ɒ:?":"o","ʏ":"u","ɲk":"nk","ɲ":"ng","ɾ":"r","ʎ":"l","ɦ":"gh",ss:"ß",sz:"β","β":"b","dʒ":"dsch","ð":"d","ɡ":"g","ɣ":"g","([aou])h":"$1ch","iç$":"ig","ç(..?n)$":"chen","k(äei)":"c$1","^k":"k","θ":"t","ɹ":"r","ts(äei)":"c$1",s:"s","ʃ":"sch",v:"w","ʒ":"dz","ʂ":"sch","ɕː":"sch","ʐ":"g",x:"h","([aäeioöuüy])p":"$1b","([aäeioöuüy])z($|[aäeioöuüy])":"$1s$2",z:"ts","ʁ":"r","h([aäeioöuüy])":"h$1","ː":""}},en:{trans:{"xc([ei])":"ks$1",xh:"ɡz","[ts]ion":"ʃən",wr:"r","rh([^aeiouy])":"$2","([^aeiouy])rr?h([^aeiouy])":"$1$2","rr?h?e?$":"","rr?h?":"r",sh:"ʃ",sch:"sk","sc([eiy])":"s$1",tch:"tʃ",th:"θ",who:"h",wh:"w","^ya":"ia","g([eiy]|(ae)|(or)|(oe))":"dʒ$1","c([eiy]|(ae)|(or)|(oe))":"s$1","cc([eiy])":"ks$1",oar:"ɔːr",oa:"oʊ",oe:"iː",oeu:"uː",oir:"wɑːr",oi:"ɔɪ","oo([dk])":"ʊ$1",oor:"ɔər",oo:"uː",our:"ɔːr",ou:"aʊ",owr:"aʊər",ow:"aʊ",oy:"ɔɪ","wa(r($|[^aeiouy]))":"wɔː$1","wa([^xkg(ngw)(nn?k)(nn?g)])":"wɑː$1","st((en)|(le))":"s$1","y([^aeiouy]((le)|(r[aeiouy])))":"aɪ$1","u([^aeiouy]((le)|(r[aeiouy])))":"juː$1","o([^aeiouy]((le)|(r[aeiouy])))":"oʊ$1","i([^aeiouy]((le)|(r[aeiouy])))":"aɪ$1","i([^aeiouy][ei][aeiouy])":"ɪ$1",ier:"ɪə","^(.+)ie(.+)$":"$1iː$2","^a":"ə",a$:"ɑː","a(r($|[^aeiouy]))":"ɑː$1","a(r[aeiouy])":"ɛ","a([^aeiouy]{2,})":"æ$1","a([^aeiouy]+)$":"æ$1","a([^aeiouy][aeiouy][^aeiouy]?[aeiouy])":"æ$1","a((nge)|(ste))$":"eɪ$1","a([^aeiouy][aeiouy])":"eɪ$1","a([^aeiouy]((le)|(r[aeiouy])))":"eɪ$1","a(ge)":"","a[ah]":"ɑː",aer:"ɛər",ae:"ɑːə",air:"ɛər","a[iy]":"eɪ",ao:"aʊ","a[uw]":"ɔː",uu:"juə",uy:"aɪ",gue:"ɡ",ue:"juː",qu:"kw","ie[uw]r":"jʊər","e(r($|[^aeiouy]))":"ɜː$1","e([^aeiouy][aeiouy])":"iː$1","e([^aeiouy]r[aeiouy])":"iː$1","^([^aeiouy]+)e$":"$1iː","e([^aeiouy]{2,})":"ɛ$1","e([^aeiouy]+)$":"ɛ$1","e([^aeiouy][aeiouy][^aeiouy]?[aeiouy])":"ɛ$1","e(r[aeiouy])":"ɪə$1",e$:"",ea:"iː","ea(r[^aeiouy])":"ɜː$1","ea(r($|[aeiouy]))":"ɪə$1",eau:"oʊ",eer:"ɪər",ee:"iː","ce[iy]":"ciː","e[iy]r":"ɛər","e[iy]$":"i","e[iy]":"eɪ","e[uw]e?r":"jʊər","(e[uw]e?)|(ie[uw])":"juː","([jr]|([^aeiouy]l))ui":"$1uː",gui:"ɡwɪ",ui:"ɪ","i(r[aeiouy]($|[aeiouy]))":"aɪə$1","i(r($|[^aeiouy]))":"ɜː$1","i([^aeiouy][aeiouy])":"aɪ$1","i((nd)|(ld)|(gh)|(gn))":"aɪ$1",i$:"aɪ","i([^aeiouy]{2,})":"ɪ$1","i([^aeiouy]*)$":"ɪ$1","i([^aeiouy][aeiouy][^aeiouy]?[aeiouy])":"ɪ$1","i([aeiouy])":"i$1",wor:"wɜːr",or:"ɔːr","o([^aeiouy]{2,})":"ɑː$1","o([^aeiouy]+)$":"ɑː$1","o([^aeiouy][aeiouy][^aeiouy]?[aeiouy])":"ɑː$1","o([^aeiouy][aeiouy])":"oʊ$1",o$:"oʊ","oe([^aeiouy]*)$":"oʊ$1","^o":"oʊ",o:"ə","^u":"jʊ","u(r($|[^aeiouy]))":"ɜː$1","u(r[aeiouy])":"jʊ(ə)$1","(r|([^aeiouy]l))ue":"$1uː","u([^aeiouy]{2,})":"ʌ$1","u([^aeiouy][aeiouy])":"juː$1",u$:"juː","gu([aiouy])":"ɡ$1","u([aeoiy])":"juː$1","u([^aeiouy]*)$":"ʌ$1",u:"ə","y([^aeiouy]{2,})":"ɪ$1","y([^aeiouy][aeiouy][^aeiouy]?[aeiouy])":"ɪ$1","y([^aeiouy][aeiouy])":"aɪ$1",y$:"aɪ","y(r($|[^aeiouy]))":"aɪ$1","y(r[aeiouy])":"aɪə$1",mb$:"","bb?":"b","^c([tn])":"$1",cc:"k",ch:"tʃ",ck:"k",c:"k",dg:"dʒ","d[dh]?":"d","ff?":"f","g([nm])":"$1","^gh":"g",gh:"","g[gɡ]?":"ɡ",h$:"","([r(ex)])h":"$1",j:"dʒ","k[kh]?":"k","^kn":"n","ll?":"l","mnn?$":"m","^mm?n":"n","mm?":"m","n[gɡ](.)":"ŋ$1","nn?[kgɡ]":"ŋ","nn?":"n","^p([nst])":"$1","pp?":"p","q([^u])":"k$1",ss:"s",sw:"sw","t[sz]":"ts",s$:"s","([aeiouy])s([aeiouy])":"$1z$2",s:"s","tt?":"t","vv?":"v",w:"w","^x":"z",x:"ks","zz?":"z",h:"h",y:"j",i:"ɪ, ə",r:"ɹ","ß":"ss","β":"sz","ä":"ɛ","ö":"œ","ü":"ʏ"}},ru:{trans:{"б":"b","в":"v","г":"ɡ","д":"d","е":"je","ё":"jo","ж":"ʐ","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"x","ц":"tʃ","ч":"tɕː","ш":"ʃ","щ":"ɕː","ь":"ˈ","ъ":" ","ы":"ɨ","э":"e","ю":"ju","я":"ja"},el:{"а":"α","б":"μπ","в":"β","г":"γκ","д":"δ","ж":"ζ","е":"γιε","ё":"γιο","з":"ζ","и":"ι","й":"γη","к":"κ","л":"λ","м":"μ","н":"ν","о":"ο","п":"π","р":"ρ","с":"σ","т":"τ","у":"ου","Ф":"φ","х":"χ","ц":"τσ","ч":"τσ","ш":"σ","щ":"σ","ь":"ˌ","ъ":"ˈ","ы":"ι","э":"ε","ю":"γι","я":"για"},sr:{"дь":"đ","ль":"љ","нь":"њ","ть":"ћ","дж":"џ","ь":"","ъ":" ","ы":"i","э":"е","ю":"ju","я":"ja","й":"j","рр":"р"},ru:{"йе":"є","йи":"ї","й":"і","г":"ґ","ъ":"","рр":"р"}},sr:{trans:{"б":"b","в":"v","г":"ɡ","д":"d","đ":"dj","ж":"ʒ","з":"z","и":"i","к":"k","л":"l","љ":"ʎ","м":"m","н":"n","њ":"ɲ","о":"o","п":"p","р":"r","с":"s","т":"t","ћ":"tɕ","у":"u","ф":"f","х":"x","ц":"ts","ч":"tʃ","џ":"dʒ","ш":"ʃ"},ru:{"đ":"дь","љ":"ль","њ":"нь","ћ":"ть","џ":"дж",j:"й","рр":"р"}},de:{trans:{"([aäeioöuüy])b":"$1p","([aou])ch":"$1x","ch(en)$":"ç$1","c([äei])":"ts$1","c[hk]?":"k",d$:"t",dsch:"dʒ","dt?":"d","([aäeioöuüy]i)g$":"$1k",ig$:"iç","h([aäeioöuüy])":"h$1","([aäeioöuüy])h":"$1",ng:"ŋ",nk:"ŋk","^pf":"f",ph:"f",qu:"kv","([aäeioöuüy])s($|[aäeioöuüy])":"$1z$2",s$:"s","s([^aäeioöuüy])":"s$1","^s([pt])":"ʃ$1","s([^aäeioöuüy]*($|[aäeioöuüy]))":"ʃ$1",sch:"ʃ","ss?":"s","ß":"ss","β":"sz","ti((on)|(är)|(al)|(ell))":"tsɪ̯$1","((tsch)|(zsch))":"tʃ",tz:"ts","th?":"t",v:"f",w:"v",x:"ks",z:"ts","[ae][iy]":"aɪ",au:"aʊ","a[ah]?":"a:","(eu)|(äu)":"ɔʏ","äh?":"e:","ä":"ɛ","e[eh]":"e:",e:"ɛ","ie?h?":"i:",i:"ɪ","o[oh]":"o:",o:"ɔ","öh":"","ö":"œ",uh:"u:",u:"ʊ","üh":"y:","ü":"ʏ",y:"ʏ"}},fr:{trans:{x$:"","[bcgpt]s$":"","(œu)[df]s$":"$1","bb?":"b","ç":"s",sc:"sk","xc([eiy])":"ks",xc:"ksk","([ãɛõœ])ct":"",ct:"kt",ch:"ʃ","cc([eiy])":"ks$1","c([eiy])":"s$1","cc?":"k","dd?$":"","dd?":"d","ff?":"f",gn:"ɲ","gg([eiy])":"ɡʒ",g$:"","g([eiy])":"ʒ","gg?":"ɡ",h:"",j:"ʒ",k:"k","ll?":"l","mm?":"m",ng:"ŋ","nn?":"n",pt:"pt",ph:"f","pp?$":"","pp?":"p",ss:"","sc([eiy])":"s$1","([^s])s$":"$1","^s([^s])":"s$1","([^aàâeéêëiîïoôœuûy])s([^aàâeéêëiîïoôœuûy])":"$1s$2","([ãɛõœ])s":"$1s",th:"t","tt?$":"","tt?":"t",v:"v",w:"w","^x":"ks","([aàâeéêëiîïoôœuûy])x([aàâeéêëiîïoôœuûy])":"$1ɡz$2",z$:"",z:"z",oue:"u",eau:"o",aie:"ɛ","([cg])ue":"$1œ",ue$:"y",ue:"ɥɛ","œu":"œ","oie?":"wa",oe:"oe","ou([aàâeéêëiîïoôœuûy])":"w$1","o[uû]":"u","oï":"oi","oê":"wa","oë":"ɔɛ",oy:"waj",oz:"oz","ao[uû]":"au","aï":"ai","aî":"ɛ",ay$:"ɛ",ay:"ɛj",au:"o",ai:"e","e([^aàâeéêëiîïoôœuûy]+)":"ɛ$1","e[iî]":"ɛ","eû":"","eu(z?)$":"$1",eu:"œ","i([aàâeéêëiîïoôœuûy])":"j$1","^ï":"j","([aàâeéêëiîïoôœuûy])ï([aàâeéêëiîïoôœuûy])":"$1j$2","u([aàâeéêëiîïoôœuûy]+)":"ɥ","^y([aàâeéêëiîïoôœuûy])":"j$1","â":"ɑ","a|à":"a","ie?":"i",e$:"",e:"ə","ée?":"e","ê|è":"ɛ","[îï]":"i",o:"ɔ","ô":"o","œ":"o",y:"i","[uû]":"y","rr?":"ʁ"}},es:{trans:{"([mn])[bv]":"$1b","^[bv]":"b","[bv]":"β","c([ei])":"s$1",ch:"tʃ",c:"k","^d":"d","d([ln])":"d",d:"ð","(^|n)gu([ao])":"$1ɡw$2","gu([ao])":"ɣw$2","(^|n)gu([ei])?":"$1ɡ$2","gu([ei])":"ɣ$1","(^|n)gü([ei])?":"$1ɡw$2","gü([ei])":"ɣw$1","g([ei])":"x$1","(^|n)g([^ei])?":"$1ɡ$2","g([^ei])?":"ɣ$1",sh:"ʃ","hu([aeoiuy])":"w$1","hi([aeoiuy])":"j$1",h:"",j:"x",ll:"ʎ",m$:"n","n([^aeoiuy])":"ŋ$1","ñ":"ɲ","qu([ei])":"k$1","([aeoiuy])rr([aeoiuy])":"$1r$2","^r":"r","r([lns])":"r$1",rr:"r",r:"ɾ","s([^aeoiuy])":"z","t[xz]":"tʃ","([aeoiuy])x([aeoiuy])":"$1ks$2","([^aeoiuy])x([^aeoiuy])":"$1s$2",x:"ks",y:"i",z:"s"}},el:{en:{"αυ":"av","ει":"i","οι":"i","ου":"u","αι":"e","ντ":"d","μπ":"b","γγ":"g","γκ":"g","τσ":"ts","τζ":"j","αϊ":"y","ευ":"ev","α":"a","β":"v","γ":"g","δ":"d","ε":"e","ζ":"z","η":"i","θ":"th","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"x","ο":"o","π":"p","ρ":"r","σ":"s","τ":"t","υ":"i","φ":"f","χ":"h","ψ":"ps","ω":"o","ς":"s"},ru:{"αυ":"ав","ει":"и","οι":"и","ου":"у","αι":"е","ντ":"д","μπ":"б","γγ":"г","γκ":"г","τσ":"ц","τζ":"ж","αϊ":"ай","ευ":"ев","α":"а","β":"в","γ":"г","δ":"д","ε":"е","ζ":"з","η":"и","θ":"ф","ι":"и","κ":"к","λ":"л","μ":"м","ν":"н","ξ":"кс","ο":"о","π":"п","ρ":"р","σ":"с","τ":"т","υ":"и","φ":"ф","χ":"х","ψ":"пс","ω":"о","ς":"с"}},uk:{trans:{"а":"a","б":"b","в":"v","г":"ɦ","ґ":"ɡ","д":"d","е":"ɛ","є":"jɛ","ж":"ʐ","з":"z","и":"ɪ","і":"i","ї":"ji","к":"k","л":"l","м":"m","н":"n","о":"ɔ","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"x","ц":"ts","ч":"tʃ","ш":"ʃ","щ":"ɕː","ь":"ˌ","ю":"ju","я":"ja"},ru:{"ґ":"г","є":"йе","і":"й","ї":"йи"}}};e.exports={languages:Object.keys(u),map:u}}])});
0 ignored issues
show
Bug introduced by
The variable Symbol seems to be never declared. If this is a global, consider adding a /** global: Symbol */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
Complexity introduced by
A for in loop automatically includes the property of any prototype object, consider checking the key using hasOwnProperty.

When iterating over the keys of an object, this includes not only the keys of the object, but also keys contained in the prototype of that object. It is generally a best practice to check for these keys specifically:

var someObject;
for (var key in someObject) {
    if ( ! someObject.hasOwnProperty(key)) {
        continue; // Skip keys from the prototype.
    }

    doSomethingWith(key);
}
Loading history...
unused-code introduced by
The call to bind does not seem necessary since the function does not use this. Consider calling it directly.
Loading history...
Coding Style introduced by
Consider using undefined instead of void(0). It is equivalent and more straightforward to read.
Loading history...
Coding Style Best Practice introduced by
Curly braces around statements make for more readable code and help prevent bugs when you add further statements.

Consider adding curly braces around all statements when they are executed conditionally. This is optional if there is only one statement, but leaving them out can lead to unexpected behaviour if another statement is added later.

Consider:

if (a > 0)
    b = 42;

If you or someone else later decides to put another statement in, only the first statement will be executed.

if (a > 0)
    console.log("a > 0");
    b = 42;

In this case the statement b = 42 will always be executed, while the logging statement will be executed conditionally.

if (a > 0) {
    console.log("a > 0");
    b = 42;
}

ensures that the proper code will be executed conditionally no matter how many statements are added or removed.

Loading history...
Comprehensibility introduced by
Usage of the sequence operator is discouraged, since it may lead to obfuscated code.

The sequence or comma operator allows the inclusion of multiple expressions where only is permitted. The result of the sequence is the value of the last expression.

This operator is most often used in for statements.

Used in another places it can make code hard to read, especially when people do not realize it even exists as a seperate operator.

This check looks for usage of the sequence operator in locations where it is not necessary and could be replaced by a series of expressions or statements.

var a,b,c;

a = 1, b = 1,  c= 3;

could just as well be written as:

var a,b,c;

a = 1;
b = 1;
c = 3;

To learn more about the sequence operator, please refer to the MDN.

Loading history...
Bug introduced by
The variable define seems to be never declared. If this is a global, consider adding a /** global: define */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
introduced by
You have used a bitwise operator & in a condition. Did you maybe want to use the logical operator &&
Loading history...