diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e2ac661 --- /dev/null +++ b/.nojekyll @@ -0,0 +1 @@ +TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false. \ No newline at end of file diff --git a/assets/hierarchy.js b/assets/hierarchy.js new file mode 100644 index 0000000..fb85f0a --- /dev/null +++ b/assets/hierarchy.js @@ -0,0 +1 @@ +window.hierarchyData = "eJyrVirKzy8pVrKKjtVRKkpNy0lNLsnMzytWsqqurQUAmx4Kpg==" \ No newline at end of file diff --git a/assets/highlight.css b/assets/highlight.css new file mode 100644 index 0000000..310b83c --- /dev/null +++ b/assets/highlight.css @@ -0,0 +1,148 @@ +:root { + --light-hl-0: #008000; + --dark-hl-0: #6A9955; + --light-hl-1: #795E26; + --dark-hl-1: #DCDCAA; + --light-hl-2: #000000; + --dark-hl-2: #D4D4D4; + --light-hl-3: #A31515; + --dark-hl-3: #CE9178; + --light-hl-4: #0000FF; + --dark-hl-4: #569CD6; + --light-hl-5: #AF00DB; + --dark-hl-5: #C586C0; + --light-hl-6: #001080; + --dark-hl-6: #9CDCFE; + --light-hl-7: #0070C1; + --dark-hl-7: #4FC1FF; + --light-hl-8: #800000; + --dark-hl-8: #808080; + --light-hl-9: #800000; + --dark-hl-9: #569CD6; + --light-hl-10: #000000FF; + --dark-hl-10: #D4D4D4; + --light-hl-11: #E50000; + --dark-hl-11: #9CDCFE; + --light-hl-12: #0000FF; + --dark-hl-12: #CE9178; + --light-hl-13: #267F99; + --dark-hl-13: #4EC9B0; + --light-hl-14: #098658; + --dark-hl-14: #B5CEA8; + --light-hl-15: #811F3F; + --dark-hl-15: #D16969; + --light-hl-16: #000000; + --dark-hl-16: #D7BA7D; + --light-hl-17: #EE0000; + --dark-hl-17: #D7BA7D; + --light-code-background: #FFFFFF; + --dark-code-background: #1E1E1E; +} + +@media (prefers-color-scheme: light) { :root { + --hl-0: var(--light-hl-0); + --hl-1: var(--light-hl-1); + --hl-2: var(--light-hl-2); + --hl-3: var(--light-hl-3); + --hl-4: var(--light-hl-4); + --hl-5: var(--light-hl-5); + --hl-6: var(--light-hl-6); + --hl-7: var(--light-hl-7); + --hl-8: var(--light-hl-8); + --hl-9: var(--light-hl-9); + --hl-10: var(--light-hl-10); + --hl-11: var(--light-hl-11); + --hl-12: var(--light-hl-12); + --hl-13: var(--light-hl-13); + --hl-14: var(--light-hl-14); + --hl-15: var(--light-hl-15); + --hl-16: var(--light-hl-16); + --hl-17: var(--light-hl-17); + --code-background: var(--light-code-background); +} } + +@media (prefers-color-scheme: dark) { :root { + --hl-0: var(--dark-hl-0); + --hl-1: var(--dark-hl-1); + --hl-2: var(--dark-hl-2); + --hl-3: var(--dark-hl-3); + --hl-4: var(--dark-hl-4); + --hl-5: var(--dark-hl-5); + --hl-6: var(--dark-hl-6); + --hl-7: var(--dark-hl-7); + --hl-8: var(--dark-hl-8); + --hl-9: var(--dark-hl-9); + --hl-10: var(--dark-hl-10); + --hl-11: var(--dark-hl-11); + --hl-12: var(--dark-hl-12); + --hl-13: var(--dark-hl-13); + --hl-14: var(--dark-hl-14); + --hl-15: var(--dark-hl-15); + --hl-16: var(--dark-hl-16); + --hl-17: var(--dark-hl-17); + --code-background: var(--dark-code-background); +} } + +:root[data-theme='light'] { + --hl-0: var(--light-hl-0); + --hl-1: var(--light-hl-1); + --hl-2: var(--light-hl-2); + --hl-3: var(--light-hl-3); + --hl-4: var(--light-hl-4); + --hl-5: var(--light-hl-5); + --hl-6: var(--light-hl-6); + --hl-7: var(--light-hl-7); + --hl-8: var(--light-hl-8); + --hl-9: var(--light-hl-9); + --hl-10: var(--light-hl-10); + --hl-11: var(--light-hl-11); + --hl-12: var(--light-hl-12); + --hl-13: var(--light-hl-13); + --hl-14: var(--light-hl-14); + --hl-15: var(--light-hl-15); + --hl-16: var(--light-hl-16); + --hl-17: var(--light-hl-17); + --code-background: var(--light-code-background); +} + +:root[data-theme='dark'] { + --hl-0: var(--dark-hl-0); + --hl-1: var(--dark-hl-1); + --hl-2: var(--dark-hl-2); + --hl-3: var(--dark-hl-3); + --hl-4: var(--dark-hl-4); + --hl-5: var(--dark-hl-5); + --hl-6: var(--dark-hl-6); + --hl-7: var(--dark-hl-7); + --hl-8: var(--dark-hl-8); + --hl-9: var(--dark-hl-9); + --hl-10: var(--dark-hl-10); + --hl-11: var(--dark-hl-11); + --hl-12: var(--dark-hl-12); + --hl-13: var(--dark-hl-13); + --hl-14: var(--dark-hl-14); + --hl-15: var(--dark-hl-15); + --hl-16: var(--dark-hl-16); + --hl-17: var(--dark-hl-17); + --code-background: var(--dark-code-background); +} + +.hl-0 { color: var(--hl-0); } +.hl-1 { color: var(--hl-1); } +.hl-2 { color: var(--hl-2); } +.hl-3 { color: var(--hl-3); } +.hl-4 { color: var(--hl-4); } +.hl-5 { color: var(--hl-5); } +.hl-6 { color: var(--hl-6); } +.hl-7 { color: var(--hl-7); } +.hl-8 { color: var(--hl-8); } +.hl-9 { color: var(--hl-9); } +.hl-10 { color: var(--hl-10); } +.hl-11 { color: var(--hl-11); } +.hl-12 { color: var(--hl-12); } +.hl-13 { color: var(--hl-13); } +.hl-14 { color: var(--hl-14); } +.hl-15 { color: var(--hl-15); } +.hl-16 { color: var(--hl-16); } +.hl-17 { color: var(--hl-17); } +pre, code { background: var(--code-background); } diff --git a/assets/icons.js b/assets/icons.js new file mode 100644 index 0000000..58882d7 --- /dev/null +++ b/assets/icons.js @@ -0,0 +1,18 @@ +(function() { + addIcons(); + function addIcons() { + if (document.readyState === "loading") return document.addEventListener("DOMContentLoaded", addIcons); + const svg = document.body.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "svg")); + svg.innerHTML = `MMNEPVFCICPMFPCPTTAAATR`; + svg.style.display = "none"; + if (location.protocol === "file:") updateUseElements(); + } + + function updateUseElements() { + document.querySelectorAll("use").forEach(el => { + if (el.getAttribute("href").includes("#icon-")) { + el.setAttribute("href", el.getAttribute("href").replace(/.*#/, "#")); + } + }); + } +})() \ No newline at end of file diff --git a/assets/icons.svg b/assets/icons.svg new file mode 100644 index 0000000..50ad579 --- /dev/null +++ b/assets/icons.svg @@ -0,0 +1 @@ +MMNEPVFCICPMFPCPTTAAATR \ No newline at end of file diff --git a/assets/main.js b/assets/main.js new file mode 100644 index 0000000..4f59cd9 --- /dev/null +++ b/assets/main.js @@ -0,0 +1,60 @@ +"use strict"; +window.translations={"copy":"Copy","copied":"Copied!","normally_hidden":"This member is normally hidden due to your filter settings.","hierarchy_expand":"Expand","hierarchy_collapse":"Collapse"}; +"use strict";(()=>{var De=Object.create;var le=Object.defineProperty;var Fe=Object.getOwnPropertyDescriptor;var Ne=Object.getOwnPropertyNames;var Ve=Object.getPrototypeOf,Be=Object.prototype.hasOwnProperty;var qe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var je=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ne(e))!Be.call(t,i)&&i!==n&&le(t,i,{get:()=>e[i],enumerable:!(r=Fe(e,i))||r.enumerable});return t};var $e=(t,e,n)=>(n=t!=null?De(Ve(t)):{},je(e||!t||!t.__esModule?le(n,"default",{value:t,enumerable:!0}):n,t));var pe=qe((de,he)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,c],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. +`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[c+1]*i[d+1],c+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var c=s.node.edges["*"];else{var c=new t.TokenSet;s.node.edges["*"]=c}s.str.length==1&&(c.final=!0),i.push({node:c,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),m=s.str.charAt(1),p;m in s.node.edges?p=s.node.edges[m]:(p=new t.TokenSet,s.node.edges[m]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof de=="object"?he.exports=n():e.lunr=n()}(this,function(){return t})})()});window.translations||={copy:"Copy",copied:"Copied!",normally_hidden:"This member is normally hidden due to your filter settings.",hierarchy_expand:"Expand",hierarchy_collapse:"Collapse"};var ce=[];function G(t,e){ce.push({selector:e,constructor:t})}var J=class{alwaysVisibleMember=null;constructor(){this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}createComponents(e){ce.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(document.body.style.removeProperty("display"),this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}scrollToHash(){if(location.hash){let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!ze(e)){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r,document.querySelector(".col-sidebar").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(!n)return;let r=n.offsetParent==null,i=n;for(;i!==document.body;)i instanceof HTMLDetailsElement&&(i.open=!0),i=i.parentElement;if(n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let s=document.createElement("p");s.classList.add("warning"),s.textContent=window.translations.normally_hidden,n.prepend(s)}r&&e.scrollIntoView()}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent=window.translations.copied,e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent=window.translations.copy},100)},1e3)})})}};function ze(t){let e=t.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(e.bottom<0||e.top-n>=0)}var ue=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var ge=$e(pe(),1);async function H(t){let e=Uint8Array.from(atob(t),s=>s.charCodeAt(0)),r=new Blob([e]).stream().pipeThrough(new DecompressionStream("deflate")),i=await new Response(r).text();return JSON.parse(i)}async function fe(t,e){if(!window.searchData)return;let n=await H(window.searchData);t.data=n,t.index=ge.Index.load(n.index),e.classList.remove("loading"),e.classList.add("ready")}function ve(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:document.documentElement.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{fe(e,t)}),fe(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");i.addEventListener("mouseup",()=>{re(t)}),r.addEventListener("focus",()=>t.classList.add("has-focus")),We(t,i,r,e)}function We(t,e,n,r){n.addEventListener("input",ue(()=>{Ue(t,e,n,r)},200)),n.addEventListener("keydown",i=>{i.key=="Enter"?Je(e,t):i.key=="ArrowUp"?(me(e,n,-1),i.preventDefault()):i.key==="ArrowDown"&&(me(e,n,1),i.preventDefault())}),document.body.addEventListener("keypress",i=>{i.altKey||i.ctrlKey||i.metaKey||!n.matches(":focus")&&i.key==="/"&&(i.preventDefault(),n.focus())}),document.body.addEventListener("keyup",i=>{t.classList.contains("has-focus")&&(i.key==="Escape"||!e.matches(":focus-within")&&!n.matches(":focus"))&&(n.blur(),re(t))})}function re(t){t.classList.remove("has-focus")}function Ue(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=ye(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` + ${ye(l.parent,i)}.${d}`);let m=document.createElement("li");m.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=c+d,m.append(p),p.addEventListener("focus",()=>{e.querySelector(".current")?.classList.remove("current"),m.classList.add("current")}),e.appendChild(m)}}function me(t,e,n){let r=t.querySelector(".current");if(!r)r=t.querySelector(n==1?"li:first-child":"li:last-child"),r&&r.classList.add("current");else{let i=r;if(n===1)do i=i.nextElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);else do i=i.previousElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);i?(r.classList.remove("current"),i.classList.add("current")):n===-1&&(r.classList.remove("current"),e.focus())}}function Je(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),re(e)}}function ye(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(ne(t.substring(s,o)),`${ne(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(ne(t.substring(s))),i.join("")}var Ge={"&":"&","<":"<",">":">","'":"'",'"':"""};function ne(t){return t.replace(/[&<>"'"]/g,e=>Ge[e])}var I=class{el;app;constructor(e){this.el=e.el,this.app=e.app}};var A="mousedown",Ee="mousemove",B="mouseup",X={x:0,y:0},xe=!1,ie=!1,Xe=!1,D=!1,Le=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(Le?"is-mobile":"not-mobile");Le&&"ontouchstart"in document.documentElement&&(Xe=!0,A="touchstart",Ee="touchmove",B="touchend");document.addEventListener(A,t=>{ie=!0,D=!1;let e=A=="touchstart"?t.targetTouches[0]:t;X.y=e.pageY||0,X.x=e.pageX||0});document.addEventListener(Ee,t=>{if(ie&&!D){let e=A=="touchstart"?t.targetTouches[0]:t,n=X.x-(e.pageX||0),r=X.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(B,()=>{ie=!1});document.addEventListener("click",t=>{xe&&(t.preventDefault(),t.stopImmediatePropagation(),xe=!1)});var Y=class extends I{active;className;constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(B,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(A,n=>this.onDocumentPointerDown(n)),document.addEventListener(B,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var se;try{se=localStorage}catch{se={getItem(){return null},setItem(){}}}var C=se;var be=document.head.appendChild(document.createElement("style"));be.dataset.for="filters";var Z=class extends I{key;value;constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),be.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } +`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=C.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){C.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var oe=new Map,ae=class{open;accordions=[];key;constructor(e,n){this.key=e,this.open=n}add(e){this.accordions.push(e),e.open=this.open,e.addEventListener("toggle",()=>{this.toggle(e.open)})}toggle(e){for(let n of this.accordions)n.open=e;C.setItem(this.key,e.toString())}},K=class extends I{constructor(e){super(e);let n=this.el.querySelector("summary"),r=n.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)});let i=`tsd-accordion-${n.dataset.key??n.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`,s;if(oe.has(i))s=oe.get(i);else{let o=C.getItem(i),a=o?o==="true":this.el.open;s=new ae(i,a),oe.set(i,s)}s.add(this.el)}};function Se(t){let e=C.getItem("tsd-theme")||"os";t.value=e,we(e),t.addEventListener("change",()=>{C.setItem("tsd-theme",t.value),we(t.value)})}function we(t){document.documentElement.dataset.theme=t}var ee;function Ce(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",Te),Te())}async function Te(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let e=await H(window.navigationData);ee=document.documentElement.dataset.base,ee.endsWith("/")||(ee+="/"),t.innerHTML="";for(let n of e)Ie(n,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function Ie(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-accordion`:"tsd-accordion";let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.dataset.key=i.join("$"),o.innerHTML='',ke(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let c of t.children)Ie(c,l,i)}else ke(t,r,t.class)}function ke(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=ee+t.path,n&&(r.className=n),location.pathname===r.pathname&&!r.href.includes("#")&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else{let r=e.appendChild(document.createElement("span"));r.innerHTML='',r.appendChild(document.createElement("span")).textContent=t.text}}var te=document.documentElement.dataset.base;te.endsWith("/")||(te+="/");function Pe(){document.querySelector(".tsd-full-hierarchy")?Ye():document.querySelector(".tsd-hierarchy")&&Ze()}function Ye(){document.addEventListener("click",r=>{let i=r.target;for(;i.parentElement&&i.parentElement.tagName!="LI";)i=i.parentElement;i.dataset.dropdown&&(i.dataset.dropdown=String(i.dataset.dropdown!=="true"))});let t=new Map,e=new Set;for(let r of document.querySelectorAll(".tsd-full-hierarchy [data-refl]")){let i=r.querySelector("ul");t.has(r.dataset.refl)?e.add(r.dataset.refl):i&&t.set(r.dataset.refl,i)}for(let r of e)n(r);function n(r){let i=t.get(r).cloneNode(!0);i.querySelectorAll("[id]").forEach(s=>{s.removeAttribute("id")}),i.querySelectorAll("[data-dropdown]").forEach(s=>{s.dataset.dropdown="false"});for(let s of document.querySelectorAll(`[data-refl="${r}"]`)){let o=tt(),a=s.querySelector("ul");s.insertBefore(o,a),o.dataset.dropdown=String(!!a),a||s.appendChild(i.cloneNode(!0))}}}function Ze(){let t=document.getElementById("tsd-hierarchy-script");t&&(t.addEventListener("load",Qe),Qe())}async function Qe(){let t=document.querySelector(".tsd-panel.tsd-hierarchy:has(h4 a)");if(!t||!window.hierarchyData)return;let e=+t.dataset.refl,n=await H(window.hierarchyData),r=t.querySelector("ul"),i=document.createElement("ul");if(i.classList.add("tsd-hierarchy"),Ke(i,n,e),r.querySelectorAll("li").length==i.querySelectorAll("li").length)return;let s=document.createElement("span");s.classList.add("tsd-hierarchy-toggle"),s.textContent=window.translations.hierarchy_expand,t.querySelector("h4 a")?.insertAdjacentElement("afterend",s),s.insertAdjacentText("beforebegin",", "),s.addEventListener("click",()=>{s.textContent===window.translations.hierarchy_expand?(r.insertAdjacentElement("afterend",i),r.remove(),s.textContent=window.translations.hierarchy_collapse):(i.insertAdjacentElement("afterend",r),i.remove(),s.textContent=window.translations.hierarchy_expand)})}function Ke(t,e,n){let r=e.roots.filter(i=>et(e,i,n));for(let i of r)t.appendChild(Oe(e,i,n))}function Oe(t,e,n,r=new Set){if(r.has(e))return;r.add(e);let i=t.reflections[e],s=document.createElement("li");if(s.classList.add("tsd-hierarchy-item"),e===n){let o=s.appendChild(document.createElement("span"));o.textContent=i.name,o.classList.add("tsd-hierarchy-target")}else{for(let a of i.uniqueNameParents||[]){let l=t.reflections[a],c=s.appendChild(document.createElement("a"));c.textContent=l.name,c.href=te+l.url,c.className=l.class+" tsd-signature-type",s.append(document.createTextNode("."))}let o=s.appendChild(document.createElement("a"));o.textContent=t.reflections[e].name,o.href=te+i.url,o.className=i.class+" tsd-signature-type"}if(i.children){let o=s.appendChild(document.createElement("ul"));o.classList.add("tsd-hierarchy");for(let a of i.children){let l=Oe(t,a,n,r);l&&o.appendChild(l)}}return r.delete(e),s}function et(t,e,n){if(e===n)return!0;let r=new Set,i=[t.reflections[e]];for(;i.length;){let s=i.pop();if(!r.has(s)){r.add(s);for(let o of s.children||[]){if(o===n)return!0;i.push(t.reflections[o])}}}return!1}function tt(){let t=document.createElementNS("http://www.w3.org/2000/svg","svg");return t.setAttribute("width","20"),t.setAttribute("height","20"),t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("fill","none"),t.innerHTML='',t}G(Y,"a[data-toggle]");G(K,".tsd-accordion");G(Z,".tsd-filter-item input[type=checkbox]");var _e=document.getElementById("tsd-theme");_e&&Se(_e);var nt=new J;Object.defineProperty(window,"app",{value:nt});ve();Ce();Pe();})(); +/*! Bundled license information: + +lunr/lunr.js: + (** + * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9 + * Copyright (C) 2020 Oliver Nightingale + * @license MIT + *) + (*! + * lunr.utils + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Set + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.tokenizer + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Pipeline + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Vector + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.stemmer + * Copyright (C) 2020 Oliver Nightingale + * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt + *) + (*! + * lunr.stopWordFilter + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.trimmer + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.TokenSet + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Index + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Builder + * Copyright (C) 2020 Oliver Nightingale + *) +*/ diff --git a/assets/navigation.js b/assets/navigation.js new file mode 100644 index 0000000..321da9b --- /dev/null +++ b/assets/navigation.js @@ -0,0 +1 @@ +window.navigationData = "eJylmst22zYQQP+Fa6du3MRtvbNlO3HaRKqluIueLiByJCEGAQYAZSk9/fceiiQIUoMBo259Z66GIN70X/8kFnY2uUrYC+N2oZKzpGB2k1wlq1Kmlitpzhv0w8bmIjlLnrnMkqvLN2dJKpgxyVViTfaKm1ews6AlE8m/Z04rFMvmqtQpYOaOniTPVSntxBhM3bLTxQ/5Oih+yNeniz+EC/7wP+qd271AW7mjJ8kz9SKrF4WpW3aSeDJ/WqhrrdkeU3d0KB8qPsynn4KGChKCCi/UZP6ECRwkBI/vbhbqPeyw/JYR6SzL7rYgLTruGkalC4FmCkElSbTBmaRamhXFE2jDlURzHaUU1cu8KVcr0At1wwxcvkFdx2GjpUIt40qhljFhsEt0lFAsD0U3vbf+WcyFhI2Qhp7R5yM09xyfLHxOaYRaxh9wGBQVhnuFz6OazxodFg4SghutXgzoo77OpQW9YimY835I33Xx9tKvJiDzSupFvHpNVJayHMTFLTMbTNRRSiGAyVtmGWpoYUSgr61FX7eDMcH7GuOCCpICHpguaxJeiTIoNKTMQpb0fEqiA+EAqEJUXjANxLvtR0RUAvLQczlKKqRlXKI7i5aR6QW6JlR/p9JKO3k/n1vNJbpX8jmhyZjZXEyqDozuMRylFJCqDMLTh8+jms929UtYUlFSISYs3aB9qmWRdKWeeTD/AGnBHEyoT3aUVuB7sgMgEkHSb8HnUU3oLXSUUpiUFWgb1oRIvdtZkNlh1epPlXZfgDkf4MH0/+OvP79+e3Fkmy6/QGrDuo6P84VNYxxwiEQb50CIxllxAdQy7XNaIx5m28uA4sDIdLkGXWiOz5geJiW7T2W+xLcuDhKCNdhrclfcC/jehWkN1dz5O8i1RRd8n9NFBqejlkXSg9ORg2ME6NLUUUJxy/WMaZYv9v6I9jZkfgC1HVuDbUMDxbT4hJdVbZj7FfbMLaabKtwhHaQFU0P3R8dPeMKZVgVoi64MHqYL/KMEvadeQRcwVhTqWV4ErZqnWgkxU4bbcMv1g05oPmJV7ihdKNG/4n3rsxZUu7d4nCTU5o4TGi6bE1Tn2DLN2VKAOXewL/jpoif4pDLwr9H8/JoR6RmsWCkslt0gInk7HF5d8hYbWYPCLWgDKbpqOUg1nQnelzWITL5l+vmjytA+1NGIwgbTbSSVr7llAu06Hf3ekcXN3deSoSeHBpFF3e24NfdNSkDih8RlT02HIGRtCCl7sKDDnpaSinrFOBptvqcXQsrqPSpuqRmRPtM855Zvvaepd60OxDat1WXsExPlkcGBmGEmGJfDp/C2ER6ndhHV7w1GoSdxlFJwg9bit2iwmMFbeYT13a7AHTUj0//kMlMveHrNiPScFQvICxGYEjxMSbgs8Q8iFSASJezsg8zwq3cHCQF1xxe4kOu/xupHiO2Wh4kqVAEycF/ZICIZ2e55DxHY7PUfQlE7RgfJm8mCaQPU9qIXQIps9ZkIW1wbNFxcY6tDoaH6PoXPfg5SJWmVcwP3LLVKowtvP4KaA6uUkokFz0E/gi21f1/nT0RIIPUKCz8eLdEPICrUTGYqnyihUI2Ho5LwScbnIzXo/NALoL7QHeLqS8jJhun+JrpeQ7CY2HLi50yLQ03o20TiqJepvfDwY0fvVDXkagvBb4seJiSGrWBWjV1M4WBEUJfKV+jg6QUQojkwnW5+g/0c8MXbD6Ca1xziwiuvz6kHI65VTPxaxVDXKmbEtYqhj+Nm1HHckIdSM+ZQajblaoXvURtEJSttZ1zuOf77jkYU+DRTE6pLFYKnblWiRjAaSXayXgJaXS+CekCriptyGTgHdDSiuB2eefuOW+zc25ds1+Fvzw4SAqsWG1UaJjN0NvcwJdEcbc7q7997cLyW++E0UC8GDsRWgGu5Pz45ev3G41RvORwXphK/22zhGMFHpY9WNp9Fn+fwzw0vKuhpWPSgxdPnR/hacg3Z0OOzmGeacxvy+GxMPTOmLfevCbpyGjSmmoDFQzHLR7ZfwqzeMk71O7C96avWYTExbynDn7xaRgysUgZWgQOgE7+WgV+tCJVaFKDvuTbotNRRSqFFeFZykBKUHP0QVv2dSKv+IzKwP2sQkVyfq+f8G0yXX9BB34ugRv6LC0RLcfSomr//A5JUUZE=" \ No newline at end of file diff --git a/assets/search.js b/assets/search.js new file mode 100644 index 0000000..923cd8c --- /dev/null +++ b/assets/search.js @@ -0,0 +1 @@ +window.searchData = "eJytnVuX27aStv9L+7a/RFU8SPJdDjuz98zsHU/snbnwyspiS+xuxpIok1Tbnqz8928BFCmg8JIqmrqzG0AVSLw41QNQf95V5af67vX7P+8+FIft3euI7+8O2T6/e333kld1UR7u7u9O1c78P6uK7GGX19+eU755bva7u/u7zS6r67y+e31399d9ZyiNe0ObXZEfmt7O4+mwaYryUH/bJoyacepzzJomr1B9zimjhmjBlxplhy9XzLz6/ffmyzFvMzoG7++OWWWepq/PN23OIVeH0/4hr3Te+rxzHNZNVRyedA77vHMcHsu62ZTbXOfSyT3HqfGk8tdmnOWqziv7T52/S+45Th93ZdboPHZZ57jL91mhfKFd1jnu9uVDsVO+0D7vHIeb5+KQ10qPl8xzXDa58oW2Gee4+vhR58nmm9XVs7pWdvM25xxnf9Rw8gHOzjnnOMuqSu/vknmmy0w7DZ2zznFX1PoH7PPO6wCfm6zKM20v6HPPGlmyjXJYsRlnvdBjrHybNuNMV78fq0Lt7px5oktnydZUxR4s2Myf9au+PKu+a5oKLvzOaZOM/b3NC42ZNK2xvN5kxxxYahO0Zk6HQUNdktbUU978y18nXmz1aep3le3zHf+Y1c/oZfWJWnPbrH7mH0wxYO6SqH5rx2Ne/VRUNdoQXBK15qrssC33P5S7Er07J3WawcHWcJO/xmR9xWY9zehbf7EvbbbJoyY5SXubvziFfj5aQ73p4tDk1WO2yetvQTb91muXH56a5ylmX/VF8HiGaj24DMyqd2bfM8m/KdWcS82uwqH8oTw8npy1qKYKh3LTl5pdBbPr2zST/PdFvsY5L9ZLShjK7Idzi/S1sS/6W5RF2zPq59Pj4w4Ny+cUraHH4vCUV8eqgMELJ3XCMP/D39/+t98DvJG+T1YP9idTZnAYcJO1Jov6x+KpaLIdGqsuiXpzf/tcNPVPZxPQppdjguGPpwzNSueUiTX89byoGq5hl0Nv+H+Lw7b8BC22SXpTb3ZZcfj54Y98g9TopY8P+KI3vqmKfdEUL7IL9n9XTx+ohs7g8rUV/M+3P//r12x3khXs/66uoCnxnbfrcqrXJ07oJ1n14Z9u5MvrJ+dEvbmRxlW8NlGzZqhWzYQa/ZI//e3zERpqk/Sm/PfuWpr40v/R5NVgN+0StTHl4vC9CYDDAG2fpjf2r3Kb/yeKkHRJ+sdsl4Oydu6zejm0hj/ZUedt8X/o/V0S1V3qf/siPz/8gbqVl0G/TPxUbPEqMbT3qsuL1yZ+DQfcPefF0zMctYC/PvM0h/5C4Lvj8VcBWLyVwCVd27TZmMVssrmnvPm5Hq1in6w1WY7Y69P+H6nFF9bPaThd7fy1uRvlHzT1ajS8f6nTgBOJ1Yb9XHLqXTlv+6EdGYZfuZ9hwnv/Hlt2nsTPMb8FgL3xZhBVnN4WyOO1Bhl06i7Yy73JP9wqfgZt1zpmVZ3/u9q9yaoMRe68dPVO6rgrNmNW/Qxq/bz1io1EGmBGvZo25UtewVF92PCrvhBuY1z3Iax28MCorgJ9oRtU4FPRPP/PKa9tpn9m1YeJdTHlP3bl9235r6uWK6vsMX9j9IgU1aWpNZo95u3+tnhE60svfcLc92NRDaneSVVLvivgxTqcNnDT9QI/ZniRFFh7dc6J286r3NAKqaxhTwpdnXNOcuW/+/855dWXkbd/SZ/QoJdCKK7hZ5hgdmR0dFK/wuBALfvkKUGnbPOMOluXpO5rw6bqiaa2+W7IVJc04QHf5vXwMvWcOOEhh83Vk81t892wuUvilNYsyw/FUHPatMnGBrR2Tpwij6G61VPrZlQwZKxPUxM/O6V+n9V5GgN7bvI0k/9uHleDBk2i/nFHa+gmTzM5UMNLorp1m/L4/ekBR14uiVPM/Zg/Zqcding5qert73b7txd8zrBL0k+sT6die83Qq3MmPNH11cH0Lt+XL/lQfZ3UKYPgpip3uzdlXQzE2YM8WuOH/HPzj8M2/wyM9mlTjA3vfpxU9dpqZB+q29uKEyR/OCx50NarLh9u/isbz31x0Dk55/sqJ8es2cDloXDS5fs6J1XudJURJ+d8X+Wkynd5hpGpcHPJqXXkbqKNDE/Z7l2xhzFXL12PRdxSv+TNqcKbXZRvyl73dMDYZcjsq64IflOw2kNHvbwXpnLeFZnv3J7/mfjk5yJf5dwVTFXuizr/Kds0ZYV2n34GPXj+PHgApU/TGttnx3f5/rjDRMhJVa98Pjf5Ac2ObcIktvc3W8QSoB+z5nJUsCV8IvUrLLfcbND0JfkrbA9avWrPO9hWHlC72L9PWCtDtmb/PmEF4QUnvHXDlPMXT3nzU7HLh411qeqlYlk1sC+0CVPMvCkOXwq4sesTpxxJPHga8I8kHqbIoM6zavM8CIDdZH2U1Rb6r/zL2xzHQJ30CfPMc7Hb/msgTB+YfGWzj0bqvWoOOP2Qf9G7/JB/+RqHLqc65od/OxdMHErVpqg1Uh5RvzR/1ppoynfP5anODlu0SXdS1fukHXqwbKd+KPfylGPgoH6kE95cmT9rTfzw9td35dCRgkui+pFM5nflD29/RU/WJ06qnTlPMlQ5k6Y1ZvIOVa1P0xr75T++f1f+HW7kuiT1EQXTB+uBAytdmloSB7wdtH9Xr3SKwwl1Evt3fZfdH3f5fuDCYp+oN3dosuKAqtUlTXhHH09oSm0T9IvL3e4fb15SuLZskybM9G+q8phXDeqGTuqECOKIwXq6wWOV78psi3dzXZr67ExWNPiY5Tll0nDz/enxMa/elYMxP5Dr6xzsyoer5nflg9b4g63KeYRtDaDDBWGuqQ4GKu4mTzX5UwHDl26y2uSufLj6EmSeacYHpeEmTzOJlzV92oRBJB+pn5us7vsvT4NN3qepx8pqN2isT5u05/vu8EUsz9stX/939br8u8OX4DC0s6B1kvUmjcJ+PsAFcpemX+Ivrpp5tRhcXfdVGXmV5yz/LCt5ptdNmtY8dpH2qRyyeU6aZPNNsfnwS/7xVFT5Vth0kybZ/HlfNAM23aTJ9XyTVU3hHIa/VPOcMrmW2KKTMsniP7MvD/mbNhr2c/UfeePu6FvTKMuoD+fo7VaQpMvJ262CIo2eCcOmznctr50I64qMX+/clp8OZimi8+nknuM02AqMOq2eHpry2eae4zSAdKNOs+02P+ee5dTZ8Y772+3muoIfFkGuRj4sonMVnOsY9feUN5tz7jlOgxMgo07r2zgNzoqMd498dwun4FTJtRdc9/lnvuJJjutbOQYnVa696Ns4Ds+0XJVyl/0mbtGFjTG/w/dA9Z1owvPWN3re8ETN1X50C7fgOvqo3zb/ts0/y3EQoB/3a7Jv2+xz3frfPbjqtsra7LPdel9IuO42XBNNdis+gTDqs887x2Hw1YVRl07ueS+3UC9a+ryzHIZRyHGnbv55jkW88orbPvccpyCaP+62fmnK8W/iKJdrYdx/fNVm8jflpn65xRN7hOD6A/8x9kkenduQJYy6NR5v8bTwkvr4A5+azXN95fN0ymkv/H7J+Lxn8m/O+efNt+BI55Up15R46ErMd+4d/lS4PrX5Z64ytN24yzpr/kEne8dnocPNXjI4A6xwfYOXLI7gjDvt8s6bAN1jKlfmvzbrHHcBoxr1aHIXR5t7nlN56uqK189Xvtepc4vOZ4063mfH5lJg5g4IXEO+tgnKjsfbhL3AheXx2fdWjuF3WK7u/Z7rKx8iUjsP7pZd870tquO5wNxVJbh7enVlmVU3CnSG3zm79uQ36WLwKvs1z2V9m2cOL72Per6V24Hb36O+z2Vu1tbgHt+1t/7RFLmF1gdu/On9z93UoMMR17wfLwXmuEYfxRuP7tsCm3OB+a6ndPK2xE36Of7Qntr73BaHn+RTeL/JNkd+9Ww8pNhnnrdgCr+PdmXJ5BaYG53H152uBultseOl2MxqeMecrzlvvswORaHT1dfcmuMYN3AtzmGPK6zLO9ehOLF91emxyz/HMf6axqhvW+RU7W4xdw18d2P82W2ZW1Ug+ELDuO/ssX3+G7gNv+Vw1XXtFJnZtaa98ydzN+gmLxze+9f6njtvhSd5Rz272We5Db8zOe633l7yz3OMv0h5xXtuCj1eCt2gCsEnJzVVeLkUmlkF7/OZ11yfM89zKb6HecXnpy73PKfi3N4Vp2WXe6a21fGcot7OD+UE32q84rLKn3Kbe57TCdCmqG9BbMD3H694LS755zlGnze94vtoitxMUOJjo1dFVX3Yj31ISjs5DH8hE04OD332eW4Hv6UJvR7Kbf7H/IkBf3Xzyptud4+3eW7/Dst4HPicdY678MsOoy5N9uKcfa7bSZEpU+A2YSl8x398aX8uMn5lXeke3xgf99+WeezLzKmAvMQy6vmSeVac35h5VyqD/CZzU94C7A/csLlO+B9swaa8CSQcvoszoSJtsVnx4JFbO+NBYVvwfN7ioSt4i6roX0ZXhxu+h5/wD5CNOH8c+xkypfPBO0PjNdiVDzdtAHS7SFGDm/SH8B6SwvNp5Ff81Eg5vLF0DSvnN3rm8G7TeFDj5ekmWg9vQY0flqt2N3Err8+P8y7zs5ezW9e7aH+FZx7nTqHDP0QK44Jd5lloAXwvbJws2AK3uD0BP01x5cCyKXGTbQ+6EHztsPSNIBr43t2456Y8PnT55zqWX8a76nnbF5jjGn1sYtR1UzZOgVmu3V+cG/fZ5px3iFi98+iyznTn3ty/5q/NO8th+CNr405N/sdz/lmO3U97jLsc+3iicisT/pbF+G7G5q/b/HMcm9t3b8tTtVE6NvnrLv+s6ID5YtsP8DdYUYDA5N6M/A7rBKf/2Cu3jDZ3sZ+7Z7RmtOEfm3l29Mdaedt80Q74Nn99zj8vJiA/UnElHHDJrnP72/1dG7V5/Wd/vfX1HX8TfbO+u797LPLd1vwGfFufe3NM7HyTYFtuTvafv52z/ZqbGITJ3Ob+dnF3/35xHy++SaP0t9/u33eFbYL9Q2fj8hdbkO7u39N9vPomYa8cBeXIK8d39+8ZlOOgHHvlorv799F9nHxDiV/RKCgYeQXju/v38X0SfZPy2isYBwVjr2Byd/8+QQWToGDiFUzv7t+nqGAaFEy9gsu7+/dLVHAZFFx6BVd39+9XqOAqKLjyCq7v7t+vUcF1UHDtN79RAy1QUQqlQ0I7VjwECwP9+AIiowtiWDgUEfkqIqMNimDhUEjkK4mMPghqiUIxka8mMhohqCcKBUW+osjohKCmKBQV+aoioxWCuqJQWOQri4xeCGqLQnGRry4ymiGoLwoFRr7C2GiGocI4VBj7CmOjGYYK41BhLIYoO0ZBhTEYpnyFsdEMQ4VxqDD2FcZGMxyj4TEUGPsCYyMZTlDZUF/s64uNYjhFZUN5sS8vNoLhJSobqot9dbHRC69Q2VBc7IuLjVx4jcqG2mJfW5FRS7QAZaNQWpEvrciIJUJTXxQqK/KVFRmtRGj6i0JhRWICtDNghMqCKdDXVWSkEiFdRaGuIl9XkZFKhHQVhbqKfF1FRioR0lUU6irydRUZqURw2IpCYUW+sCKjlQgOW1GorMhXVmTEEsFhKwqlFfnSio1aYjhsxaG2Yl9bsZFLDIetOBRX7IsrNnqJ4bAVh+qKfXXFRjAxUlccqisWKyy7xELqisEay1dXbAQTI3XFobpiX12xEUyM1BWH6op9dcVGLzEateJQXLEvrtjIJUajVhxqK/a1FRu1xGjUikNpxb60EiOWBI1aSaisxFdWYrSSoFErCYWV+MJKjFQSNGoloa4SX1eJkUoCp8MkFFbiCysxWknggisJlZWI5btdv+MFPFjB+9JKjFoSuOBKQm0lvrYSI5cEaSsJtZX42kqMXBKkrSTUVuJrKzFySZC2klBbia+t1MglRdpKQ22lvrZSI5cUaSsNtZX62kqNXFKkrTTUVuprKzVqSdGYlYbSSn1pGST0PkVjVhoqK/WVlRqtpGjMSkNhpWJvaDeHaMxKwe7Q11VqpJLCGTENhZX6wkqNVlI4I6ahslJfWakRSwpnxDSUVupLa2nUskTSWobSWvrSWhq1LJG0lqG0lr60lkYtSyStZSitpS+tpVHLEsYblqG2lr62lvFw4VBcS19cS6OXJRLmMhTX0hfXMh2K5ixDcS1F7MEGHxJYaRB+8MW1XA0XDsW19MW1XA8+caitpa+t1WD8ahVqa+Vra2W1hbriKtTWytfWymoLDfGrUFsrX1srqy00xK9Caa18aa2stGBHXIXSWvnSWhm1rODSdBVqa+Vra2XksoJL01UorpUvrpWRywouTVehuFYiuGWjW2iYX4Hwlq+tlZHLCmlrFWpr5WtrbeSyQsP8OtTW2tfW2shlBdcP61Bca19ca6OXFRzn16G61r661kYwKzjOr0N5rX15rY1gVmgFsQ7VtfbVtTZ6WaNhfh2Ka+2La23kskbD/DrU1trX1tqoZY2G+XUorbUvrbVRyxpJax1Kay1CpzZ2iqS1BsFTGT01clkjbbVJfmnnb+fiRjBrNHS1SbK4iKAujGTWaPRqk2RxEUNdGNGs0QDWJsniIoq6MLpZI5G1SbK4iKMubCB1gYTWpsnyIpS6sLHUBWQXCxBMXYho6sKGUxdIcG2aLC8CqgsbUV0g0bVpsryIqS5sUHWBhNemyfJCeufIPdQeCt0HsXsbvF9A8cHovRBfG79fQPWhAL6M4Lch/AWUH4rhyyB+G8VfQP2hML6M47eB/AH0gUL5MpbfBvMJChBF82U4v43nExQgCujLiH4b0icoQBTTl0H9NqpPUIAorC/i+sSDazYCgX0SkX3iFh5hkgKC+ySi+2QD9jRAU0CAn0SEn2zQngaICgjyk4jyk43c0wBVAZF+EqF+4laDmKyAcD+JeD/ZGD4xHERByJ9EzJ9sHJ8wYCEQ9ycR+CcbzCcMWQgE/0lE/8lG9AmDFgIEgAQCIBvWJ8Y4D2AAEhyAbGyfIHEhgAJIsACKWpAJB1KAA0jwALIxfoLkhQASIMEEyMb5CdIXAliABBcgG+snxiIEbIAEHCAb8KcIj6QAEJAgBGSD/hRhFQJIQIISkA38EwQyBDgBCVBANvZPEMoQQAUkWAHZ8D9BMEOAFpDABWQJAEE4QwAYkCAGZCEAQUBDgBmQgAYUtzgdShBwAxLggCwMoAhKELADEvCALBCgCM7lgB+QAAhkoQBhWkMAIpCgCGTJAGFiQ4AkkEAJZPEAYWpDACeQ4AlkGQFBckMAKZBgCmQ5AUF6QwArkOAKZFkBQYJDAC2QYAtkeQFBikMAL5DgC5QMHgwiABhIEAZK2jMdUMGAMZCADGS5AUEYRAAzkOAMlLQKhAoGpIEEaiCLDwhCIQK0gQRuIIsQCIIhAsSBBHIgixEIwiEC1IEEdiCLEiiB8gXkgQR6IIsTKIHyBfSBBH4gixQogfIFBIIEgiCLFSiB8gUUggSGIIsWCMIiAiSCBIqgtD1WBPUHaAQJHEEWMRCERgSIBAkkQZYyEARHBKAECSpBFjQQhEcEuAQJMEGWNRAESATQBAk2QZY3EIRIBPAECT5BljkQBEkEEAUJRkGWOxCESQQwBQlOQRY9EARKBEgFCVRBlj5QCvUHYAUJWkGWQFAK9QeABQliQcv2ZBvUH4AWJKgFLdvDbVB/gFuQABdkWQRBwkQAXZBgF2R5BEHKRABfkOAXZJkELaH+AMIgwTDIcgmC9IQAxiDBMciyCVri3TRgGSRgBllAQUu8mwZAgwTRIAspaIl30wBqkKAaZEEFLQfOKAINCrJBFlYQpioE4AYJukEWWBAmKwQABwnCQav2lCVeRgLKQQJzkEUXhAkLAdRBgnWQ5Re0wttpwDtIAA+yDINWeDsNmAcJ6EGWY9AKKxFwDxLggyzLIAxdCLAPEvCDLNDAgSmAP0jwD7JMgzC3IcBASEAQWqfDaynAQUiAEFovhyObgIWQgCG0Xg0vxQEPIQFEyEIOvBQHSIQEE+GWiaCRkAETYcFEuGUi8OwsYCIsmAi3TAQenwVMhAUT4ZaJwBO0gImwYCLcMhF4iBYwERZMhC3jgESGARJhgUTYIg5IZBgQERZEhM9EBM3BDIgICyLCZyKC5mAGRIQFEeEzEYG3SgARYUFEmAZPAzMAIiyACLdABAYxGAARFkCELeDAB7cBD2HBQ9jyDXx2G+AQFjiELd7Ax7cBDWFBQ9jCDXyCG7AQFiyEWxYCSwPhCRLCLQmBmy8GJIQFCeGWhMDNFwMSwoKEcEtC4OafAQlhecOBF4Obf0Z3HOQlhxaFwM0/o2sOwT0HHtz8M7zpIKRnuQacLxjddZCXHSzVgCfpGV13kPcdWggCQSajKw/yzkPLQCDIZHTtQd57aBkIDP4yuvog7z7wMAhmdP1B3n/gYRDM6AqEACB8BiBQvYB/sOAf3PIPGDxnwD9Y8A9u+QcMPTDgHyz4B5/5B2w/wD9Y8A8+8w/Y+wH/YME/2OIMuPNkQD9Y0A+2MANuPBmwDxbsgy3KgGFXBuSDBflgSzLg4SYG4IMF+GALMuDZOQbcgwX3YMsx8N0dgD1YYA+2GAPuuRlQDxbUgy3FwOczGVAPFtSDLcXApx0ZUA8W1IPjwVNWDKAHC+jB8eBBKwbMgwXz4JZ5wIgdA+TBAnmwJRh41APAgwXwYMsvIPFigDtY4A62+AICLwa0gwXtYEsvIO9iADtYwA628AKyFgasgwXrYMsuIGphgDpYoA5OosGDHwxYBwvWwS3rwO8esA4WrINb1oFfPmAdLFgHt6xj4O0D5QnWwS3rgLSRAetgwTrYsgt4aJcB6mCBOtiiC3hulwHpYEE62JILeIyVAehgATrYggt4kpUB52DBOdhyC3jCkgHmYIE52GILeMiSAeVgQTn4TDnwwwPlCcrBllpASMcAcrCAHGyhBV6mA8bBgnGwZRZ4lQ0QBwvEwRZZ4EU+IBwsCAdbYoHX6ABwsAAcbIEF5EMM+AYLvsGWV+A1GsAbLPAGW1yB5xpAN1jQDba0AsIhBnCDBdxgCysgG2LANliwDbasAobjGKANFmiDLarAm0tANliQDbakAoIpBmCDBdhgCyogl2LANVhwDbacAmIpBliDBdbgFmtArMoAa7DAGtxiDXhGkQHWYIE1uMUa8IwiA6rBgmpwSzXg+TgGUIMF1OAWauCgDmAaLJgGt0wDtz5AGiyQBrdIA18DYIA0WCANbpEG1g8gGiyIBrdEAwsIAA0WQINboAG5JgOewYJncMszINdkgDNY4AxucQbkmgxoBguawS3NgFyTAcxgATO4hRl4dwlYBguWwet4kGsygBksYAa3MAPvsQDLYMEyuGUZkGsyYBksWAa3LANyTQYsgwXL4DPLwP6B/gTL4PV68FgUA5jBAmZElk7ADz0AlhEJlhEtaPCIeARgRiRgRrTgwXNxEaAZkaAZ0SIaPJURAZwRCZwRLdoz9qj3RYBnRIJnROc7Hqj3RQBoRAJoRO0dDxgdiQDRiATRiCyhgN9hiQDQiATQiFqgAQ8lRQBoRAJoRC3QgIu2CACNSACNqAUaUH0AaEQCaEQt0IDL7QgAjUgAjcgSCjh0RwBoRAJoRO0FjxX+/gZAGpFAGlF7w2MNcXwEoEYkoEbUXvFYQxwfAawRCawRtVhjDXF8BMhGJMhG1JKNNcTxEUAbkUAbUYs24No3Amij+5v90txLXjX5tv1ZAfOhuMXd/Z93v5+/QGcOWlgf5mN05ijF6z//+uvyzbnXf/7lfHbOpBk/2XZ7/pStY2ixdgxR3BY1UFplcbfzjMWpYyzhzthKZ+zwxTUWXUxFZ0NJ94/1Wmvx8ktD7stzq7mKtLa6b/G6lhLXEussOT/AezG1pIulJbVFTbhZZbH9SRinXp469DbkJ/sdi2nsmOwruFLqJPwMv2vafYlL7kxPqLf9rWy3WZbu88eTDO3LShhze8hqQos05aZ+8fuHaypJz0/Kiwk2P5VBBVcLt4LqFvmjlt3CbQadle5nJtzaONpj5euCv47gKsTtsMuoU4huFPB/9sC16j3weegze5ApVtvfM3Ctun1vmXRWSWc1/I0C17Qrn2Unn7Vu2PF/fMBtdlc+y2VnVTcsOj8s4Jok1+SqM6nriPL3k50x0hkouor21mNdhTfZPt/xNqufvcnGeQfR4myRdErYPGeV/YC4Z9Bpqkin081zsdvaMt6Q4b7KWNctN8/FIa99O+yY0Qlms8uzwzZrMs9O5Mo77joN6eRtTPqSZndaiZQv3FjJmsazxI42uOt1E560Mt8G9gw6Yw53fY2UItsVcp3lPGZnSzc2bnZydovctow6/UfKJhC/RO/0LueBV/0KRKndcn/c5Xv50Ik7bqfduK2cXDblocmKQ+1bdMfstJefbq3Q/mqF27lc9SVdv1euLjfmy9W+mL1Opq2TWei7ZtzpXLmy39Qv51nDfzy3ryZ9p1A+nrEZrBESd7JIusmCldo7NZvnuvuh7otVd9sQ96siXVczIznbQd0bfp3+FnVaZt38s8035TYHE+XCXadSpxbWNVFr9dQ8rnybbg+hvqa6oaH/uQp3+eUaVE7i23wnlBNF7hCz7qql67jbfLfJNs/eoLV2392ie3cL3fhsDJblh8IfBhdub1t0Ulzo1L3Nd3VeyyFw7XaYRTdeLZQtXFT2h4Tt1+Ld/uy0iHIZuC0/HczX6f2WdYe+ta5O+T4r/KWZ2391021+2NgfwHSeyOldyhV+awR1Kldpi24yUw6erdWwU7nD+qJXr04Zeb3J/AZk58VzpzPSDSb55yY/+O3IrsiibgpTrn1ae3aoD5Zm7G4PIqVArL1wleeuVyJdt29NtUGS0KCrO2VYw//pMHd74fb8Zde+yi7xWOx2xfEl9ac199Wl3RQU6Yanx+LwlFfHqvCXA+7iol8oJ1qTn9vfQ/Ub2B3boy5QEukG+cddmXn1cx5Z1zOe8mYgduU07rIb25UCfMqbcLJwxoR1NyQsdB3E2Huud/nhqfF2eLEzAcXdUkipbGMzmH/WrmQWXfsudNLuLfqr24U3One1XKhr2U1B3mDtPPi6bxzd+PqUN7YTihnNnD5zNoHdqiVRt3iobXfs4q5Hx+omL2skS2eY6MOKsW4GfnJ/Ac0NwbgtlHaTQaxu9Y+nvPoStpHbFzspxboZxjPqyWnt1HXdiSlWN1K9qcrd7ljWRRBA96IJ1L2FRDcQGdNg6eWObYtOUgu1yVCj7iIg7oSfqF/qqdoF7bR2psV1N0ukuiHdMem3kvMu192rTJXPbX/+y20YV56ka+rnvHh69mYGN86Y6uaG57L2N7HOIke5C3F+9NypijMV9AGEpW5AvPyeuWPPUUUfPljqRsPi0ORVLRFQ4i5g005nqU5nxdFb2bgBBNbJqjjGvx+rwrPi1Ei5iy7qIHqQOlpPu/641JrbZtWHvdg2uLGbPnSw1A2dxmLjW3NEmnQzxlI3uhf1tngqmmznaSN26hf3PVHXiYo6/3jKvK2WC3viroKpUmp1/rloakQv3aBO3C2OUu1btGa7H0bzXqczcvSRsFTZ0eqiyStpMXXEnHbT71LZL+og8uQut3RjUlG36ww0rDgLmLSbGpdasyEITpxGSbpGWeqWL0V93GXFARh1XmDSv0CtHqv8Kf989B7aaeJ+oFoqh5m6/d1Hr37OCJF0I4Ryvgia14sUq00Eo5YbcU70dkJU6z4c9U2qHJSNyZdsd/J7mKM55VL5Q/4lBELu2ivWDSfhdsjFOMrNgPv7m25YyiVdSj6yzzbehOW8a2UoeZ/9UfqbY3L3JGorxybfH3diaiE34kNRt+yIdGPXPvvykB+rcl/UeVmZpanYxrs7MlLS231xkM/r9hilLvfF4SR4iluXfpRe6Uauffkg6bfba5Rt0P++qjvYuzxWGWq7/Gaqa8gDAbpe1/8QqmuHXTu6gcX9aVPXlHuyScnC5CiwdJax3RkD5fR1yD83rRWv3dxVLHXD3UrXhMYk2H+bk/+O0W4JpDwmdSg35eHx5GPs2NGFMjoQxhrcuJzKRLkvmmNWNYW/wDPf2XE6su5dGVtV/vFUVLkI77vjuvJoS3nMD/LsRey2ZL/uVJ7Bw3EUx2J3+KY/LhPrWvOYVXWOttTuUa1VN/4kutoeMzFsuIOZrq8fs2bz7IvWHfuV26dj5s+uLqpRDvDHzMwT3nt3N4NtqUgZBD0Wmw9QsK42lAedjC0sWHesV57WG1rpOh1JGaE5lnUjuZQzI+pG6GOVywCKC2eUwNj5KWl3Qev25/TcDyPlSYVjVeyLpnjxF5BO6yljbedlyGNmfnDaj2S6B2aoZ+TKw5JHszE9Zbum2EtG4Uag+nMzykO2ntnKBMzE8Q93pUhKHP3xoz8+usOjykCVHbblflPu/BWYy8j7NaLyhFZrMpya3KBljwaVi3zXpn8WzWnpqI8D62aY1mh4ZCNy+lrUtXKiG1Fcm93hOW9+dnqOcnpxTZZHEzLx34AzHiuZT5Xv8kycofNiEMpzH1W+L1/y8Ny9v1JOu/Fdt4ionh6a8lks4dxwAXURMVrrRsI6e8ztHO1NY47CV32oSdfIxmDbHsWjN/C4i6ZVHxbTPXedZ9Xm+UP+pc79t+muC0lJY1pj4FC/e3aTOlYYKc+q1IhnOo+87h5Z2dQ1Yo/mM20OLen630I3UNRDbMs1mq6659YN3TWmOu5iatEt7xa6cbd+Pj0++psnd3Ebd2NuonyTZSV34u4oRnG/+lTqp6yaY3H4UvibHnesoUsddaNOfdwVG7xOdhYmq96qbhD3rYLx0b3ioFwB1E15fDg9iJivuW3oDGv9slVvE51pW7iLMoo6o7oB2AxCfgd3j1QrcXA4AbrBPJ2JlydwB8HdW9GqP4GqU2DjH3r09vC6Xtvkn5usyr2zOu4KTnk1BSwD3booT141ZfNcnurssPUXfbG3raOu+ZXvqCq8fuQeOOe4s6XrnacDOBzmXXc5t59y83k6yIiJuxGitH9U3bh+OhQf/ZAzuVyC0n4q07XH6XjMq8ei8smue/q8O4MUKY8SiliFM1YoG6DaoT7kvrT+5LryCuOpzisZXXOHWp0RyeFdlEhJJzNlRBSEYJwueR4juus/3ZhB3P1Dec3GXN0SYxq5tJ36k1zKQ+ifiq0fBXFvQim5ZwuZ6uL//H29u7HvlsrKux0Xi+XDH55Rp4mUnPNT0Tx/POW1nT/3WfXBE43TLzSX8H67vzsWx3xXHPK71+9/++uv/w8+qqGE"; \ No newline at end of file diff --git a/assets/style.css b/assets/style.css new file mode 100644 index 0000000..7f80f3d --- /dev/null +++ b/assets/style.css @@ -0,0 +1,1610 @@ +@layer typedoc { + :root { + /* Light */ + --light-color-background: #f2f4f8; + --light-color-background-secondary: #eff0f1; + --light-color-warning-text: #222; + --light-color-background-warning: #e6e600; + --light-color-accent: #c5c7c9; + --light-color-active-menu-item: var(--light-color-accent); + --light-color-text: #222; + --light-color-text-aside: #6e6e6e; + + --light-color-icon-background: var(--light-color-background); + --light-color-icon-text: var(--light-color-text); + + --light-color-comment-tag-text: var(--light-color-text); + --light-color-comment-tag: var(--light-color-background); + + --light-color-link: #1f70c2; + --light-color-focus-outline: #3584e4; + + --light-color-ts-keyword: #056bd6; + --light-color-ts-project: #b111c9; + --light-color-ts-module: var(--light-color-ts-project); + --light-color-ts-namespace: var(--light-color-ts-project); + --light-color-ts-enum: #7e6f15; + --light-color-ts-enum-member: var(--light-color-ts-enum); + --light-color-ts-variable: #4760ec; + --light-color-ts-function: #572be7; + --light-color-ts-class: #1f70c2; + --light-color-ts-interface: #108024; + --light-color-ts-constructor: var(--light-color-ts-class); + --light-color-ts-property: #9f5f30; + --light-color-ts-method: #be3989; + --light-color-ts-reference: #ff4d82; + --light-color-ts-call-signature: var(--light-color-ts-method); + --light-color-ts-index-signature: var(--light-color-ts-property); + --light-color-ts-constructor-signature: var( + --light-color-ts-constructor + ); + --light-color-ts-parameter: var(--light-color-ts-variable); + /* type literal not included as links will never be generated to it */ + --light-color-ts-type-parameter: #a55c0e; + --light-color-ts-accessor: #c73c3c; + --light-color-ts-get-signature: var(--light-color-ts-accessor); + --light-color-ts-set-signature: var(--light-color-ts-accessor); + --light-color-ts-type-alias: #d51270; + /* reference not included as links will be colored with the kind that it points to */ + --light-color-document: #000000; + + --light-color-alert-note: #0969d9; + --light-color-alert-tip: #1a7f37; + --light-color-alert-important: #8250df; + --light-color-alert-warning: #9a6700; + --light-color-alert-caution: #cf222e; + + --light-external-icon: url("data:image/svg+xml;utf8,"); + --light-color-scheme: light; + + /* Dark */ + --dark-color-background: #2b2e33; + --dark-color-background-secondary: #1e2024; + --dark-color-background-warning: #bebe00; + --dark-color-warning-text: #222; + --dark-color-accent: #9096a2; + --dark-color-active-menu-item: #5d5d6a; + --dark-color-text: #f5f5f5; + --dark-color-text-aside: #dddddd; + + --dark-color-icon-background: var(--dark-color-background-secondary); + --dark-color-icon-text: var(--dark-color-text); + + --dark-color-comment-tag-text: var(--dark-color-text); + --dark-color-comment-tag: var(--dark-color-background); + + --dark-color-link: #00aff4; + --dark-color-focus-outline: #4c97f2; + + --dark-color-ts-keyword: #3399ff; + --dark-color-ts-project: #e358ff; + --dark-color-ts-module: var(--dark-color-ts-project); + --dark-color-ts-namespace: var(--dark-color-ts-project); + --dark-color-ts-enum: #f4d93e; + --dark-color-ts-enum-member: var(--dark-color-ts-enum); + --dark-color-ts-variable: #798dff; + --dark-color-ts-function: #a280ff; + --dark-color-ts-class: #8ac4ff; + --dark-color-ts-interface: #6cff87; + --dark-color-ts-constructor: var(--dark-color-ts-class); + --dark-color-ts-property: #ff984d; + --dark-color-ts-method: #ff4db8; + --dark-color-ts-reference: #ff4d82; + --dark-color-ts-call-signature: var(--dark-color-ts-method); + --dark-color-ts-index-signature: var(--dark-color-ts-property); + --dark-color-ts-constructor-signature: var(--dark-color-ts-constructor); + --dark-color-ts-parameter: var(--dark-color-ts-variable); + /* type literal not included as links will never be generated to it */ + --dark-color-ts-type-parameter: #e07d13; + --dark-color-ts-accessor: #ff6060; + --dark-color-ts-get-signature: var(--dark-color-ts-accessor); + --dark-color-ts-set-signature: var(--dark-color-ts-accessor); + --dark-color-ts-type-alias: #ff6492; + /* reference not included as links will be colored with the kind that it points to */ + --dark-color-document: #ffffff; + + --dark-color-alert-note: #0969d9; + --dark-color-alert-tip: #1a7f37; + --dark-color-alert-important: #8250df; + --dark-color-alert-warning: #9a6700; + --dark-color-alert-caution: #cf222e; + + --dark-external-icon: url("data:image/svg+xml;utf8,"); + --dark-color-scheme: dark; + } + + @media (prefers-color-scheme: light) { + :root { + --color-background: var(--light-color-background); + --color-background-secondary: var( + --light-color-background-secondary + ); + --color-background-warning: var(--light-color-background-warning); + --color-warning-text: var(--light-color-warning-text); + --color-accent: var(--light-color-accent); + --color-active-menu-item: var(--light-color-active-menu-item); + --color-text: var(--light-color-text); + --color-text-aside: var(--light-color-text-aside); + + --color-icon-background: var(--light-color-icon-background); + --color-icon-text: var(--light-color-icon-text); + + --color-comment-tag-text: var(--light-color-text); + --color-comment-tag: var(--light-color-background); + + --color-link: var(--light-color-link); + --color-focus-outline: var(--light-color-focus-outline); + + --color-ts-keyword: var(--light-color-ts-keyword); + --color-ts-project: var(--light-color-ts-project); + --color-ts-module: var(--light-color-ts-module); + --color-ts-namespace: var(--light-color-ts-namespace); + --color-ts-enum: var(--light-color-ts-enum); + --color-ts-enum-member: var(--light-color-ts-enum-member); + --color-ts-variable: var(--light-color-ts-variable); + --color-ts-function: var(--light-color-ts-function); + --color-ts-class: var(--light-color-ts-class); + --color-ts-interface: var(--light-color-ts-interface); + --color-ts-constructor: var(--light-color-ts-constructor); + --color-ts-property: var(--light-color-ts-property); + --color-ts-method: var(--light-color-ts-method); + --color-ts-reference: var(--light-color-ts-reference); + --color-ts-call-signature: var(--light-color-ts-call-signature); + --color-ts-index-signature: var(--light-color-ts-index-signature); + --color-ts-constructor-signature: var( + --light-color-ts-constructor-signature + ); + --color-ts-parameter: var(--light-color-ts-parameter); + --color-ts-type-parameter: var(--light-color-ts-type-parameter); + --color-ts-accessor: var(--light-color-ts-accessor); + --color-ts-get-signature: var(--light-color-ts-get-signature); + --color-ts-set-signature: var(--light-color-ts-set-signature); + --color-ts-type-alias: var(--light-color-ts-type-alias); + --color-document: var(--light-color-document); + + --color-alert-note: var(--light-color-alert-note); + --color-alert-tip: var(--light-color-alert-tip); + --color-alert-important: var(--light-color-alert-important); + --color-alert-warning: var(--light-color-alert-warning); + --color-alert-caution: var(--light-color-alert-caution); + + --external-icon: var(--light-external-icon); + --color-scheme: var(--light-color-scheme); + } + } + + @media (prefers-color-scheme: dark) { + :root { + --color-background: var(--dark-color-background); + --color-background-secondary: var( + --dark-color-background-secondary + ); + --color-background-warning: var(--dark-color-background-warning); + --color-warning-text: var(--dark-color-warning-text); + --color-accent: var(--dark-color-accent); + --color-active-menu-item: var(--dark-color-active-menu-item); + --color-text: var(--dark-color-text); + --color-text-aside: var(--dark-color-text-aside); + + --color-icon-background: var(--dark-color-icon-background); + --color-icon-text: var(--dark-color-icon-text); + + --color-comment-tag-text: var(--dark-color-text); + --color-comment-tag: var(--dark-color-background); + + --color-link: var(--dark-color-link); + --color-focus-outline: var(--dark-color-focus-outline); + + --color-ts-keyword: var(--dark-color-ts-keyword); + --color-ts-project: var(--dark-color-ts-project); + --color-ts-module: var(--dark-color-ts-module); + --color-ts-namespace: var(--dark-color-ts-namespace); + --color-ts-enum: var(--dark-color-ts-enum); + --color-ts-enum-member: var(--dark-color-ts-enum-member); + --color-ts-variable: var(--dark-color-ts-variable); + --color-ts-function: var(--dark-color-ts-function); + --color-ts-class: var(--dark-color-ts-class); + --color-ts-interface: var(--dark-color-ts-interface); + --color-ts-constructor: var(--dark-color-ts-constructor); + --color-ts-property: var(--dark-color-ts-property); + --color-ts-method: var(--dark-color-ts-method); + --color-ts-reference: var(--dark-color-ts-reference); + --color-ts-call-signature: var(--dark-color-ts-call-signature); + --color-ts-index-signature: var(--dark-color-ts-index-signature); + --color-ts-constructor-signature: var( + --dark-color-ts-constructor-signature + ); + --color-ts-parameter: var(--dark-color-ts-parameter); + --color-ts-type-parameter: var(--dark-color-ts-type-parameter); + --color-ts-accessor: var(--dark-color-ts-accessor); + --color-ts-get-signature: var(--dark-color-ts-get-signature); + --color-ts-set-signature: var(--dark-color-ts-set-signature); + --color-ts-type-alias: var(--dark-color-ts-type-alias); + --color-document: var(--dark-color-document); + + --color-alert-note: var(--dark-color-alert-note); + --color-alert-tip: var(--dark-color-alert-tip); + --color-alert-important: var(--dark-color-alert-important); + --color-alert-warning: var(--dark-color-alert-warning); + --color-alert-caution: var(--dark-color-alert-caution); + + --external-icon: var(--dark-external-icon); + --color-scheme: var(--dark-color-scheme); + } + } + + html { + color-scheme: var(--color-scheme); + } + + body { + margin: 0; + } + + :root[data-theme="light"] { + --color-background: var(--light-color-background); + --color-background-secondary: var(--light-color-background-secondary); + --color-background-warning: var(--light-color-background-warning); + --color-warning-text: var(--light-color-warning-text); + --color-icon-background: var(--light-color-icon-background); + --color-accent: var(--light-color-accent); + --color-active-menu-item: var(--light-color-active-menu-item); + --color-text: var(--light-color-text); + --color-text-aside: var(--light-color-text-aside); + --color-icon-text: var(--light-color-icon-text); + + --color-comment-tag-text: var(--light-color-text); + --color-comment-tag: var(--light-color-background); + + --color-link: var(--light-color-link); + --color-focus-outline: var(--light-color-focus-outline); + + --color-ts-keyword: var(--light-color-ts-keyword); + --color-ts-project: var(--light-color-ts-project); + --color-ts-module: var(--light-color-ts-module); + --color-ts-namespace: var(--light-color-ts-namespace); + --color-ts-enum: var(--light-color-ts-enum); + --color-ts-enum-member: var(--light-color-ts-enum-member); + --color-ts-variable: var(--light-color-ts-variable); + --color-ts-function: var(--light-color-ts-function); + --color-ts-class: var(--light-color-ts-class); + --color-ts-interface: var(--light-color-ts-interface); + --color-ts-constructor: var(--light-color-ts-constructor); + --color-ts-property: var(--light-color-ts-property); + --color-ts-method: var(--light-color-ts-method); + --color-ts-reference: var(--light-color-ts-reference); + --color-ts-call-signature: var(--light-color-ts-call-signature); + --color-ts-index-signature: var(--light-color-ts-index-signature); + --color-ts-constructor-signature: var( + --light-color-ts-constructor-signature + ); + --color-ts-parameter: var(--light-color-ts-parameter); + --color-ts-type-parameter: var(--light-color-ts-type-parameter); + --color-ts-accessor: var(--light-color-ts-accessor); + --color-ts-get-signature: var(--light-color-ts-get-signature); + --color-ts-set-signature: var(--light-color-ts-set-signature); + --color-ts-type-alias: var(--light-color-ts-type-alias); + --color-document: var(--light-color-document); + + --color-note: var(--light-color-note); + --color-tip: var(--light-color-tip); + --color-important: var(--light-color-important); + --color-warning: var(--light-color-warning); + --color-caution: var(--light-color-caution); + + --external-icon: var(--light-external-icon); + --color-scheme: var(--light-color-scheme); + } + + :root[data-theme="dark"] { + --color-background: var(--dark-color-background); + --color-background-secondary: var(--dark-color-background-secondary); + --color-background-warning: var(--dark-color-background-warning); + --color-warning-text: var(--dark-color-warning-text); + --color-icon-background: var(--dark-color-icon-background); + --color-accent: var(--dark-color-accent); + --color-active-menu-item: var(--dark-color-active-menu-item); + --color-text: var(--dark-color-text); + --color-text-aside: var(--dark-color-text-aside); + --color-icon-text: var(--dark-color-icon-text); + + --color-comment-tag-text: var(--dark-color-text); + --color-comment-tag: var(--dark-color-background); + + --color-link: var(--dark-color-link); + --color-focus-outline: var(--dark-color-focus-outline); + + --color-ts-keyword: var(--dark-color-ts-keyword); + --color-ts-project: var(--dark-color-ts-project); + --color-ts-module: var(--dark-color-ts-module); + --color-ts-namespace: var(--dark-color-ts-namespace); + --color-ts-enum: var(--dark-color-ts-enum); + --color-ts-enum-member: var(--dark-color-ts-enum-member); + --color-ts-variable: var(--dark-color-ts-variable); + --color-ts-function: var(--dark-color-ts-function); + --color-ts-class: var(--dark-color-ts-class); + --color-ts-interface: var(--dark-color-ts-interface); + --color-ts-constructor: var(--dark-color-ts-constructor); + --color-ts-property: var(--dark-color-ts-property); + --color-ts-method: var(--dark-color-ts-method); + --color-ts-reference: var(--dark-color-ts-reference); + --color-ts-call-signature: var(--dark-color-ts-call-signature); + --color-ts-index-signature: var(--dark-color-ts-index-signature); + --color-ts-constructor-signature: var( + --dark-color-ts-constructor-signature + ); + --color-ts-parameter: var(--dark-color-ts-parameter); + --color-ts-type-parameter: var(--dark-color-ts-type-parameter); + --color-ts-accessor: var(--dark-color-ts-accessor); + --color-ts-get-signature: var(--dark-color-ts-get-signature); + --color-ts-set-signature: var(--dark-color-ts-set-signature); + --color-ts-type-alias: var(--dark-color-ts-type-alias); + --color-document: var(--dark-color-document); + + --color-note: var(--dark-color-note); + --color-tip: var(--dark-color-tip); + --color-important: var(--dark-color-important); + --color-warning: var(--dark-color-warning); + --color-caution: var(--dark-color-caution); + + --external-icon: var(--dark-external-icon); + --color-scheme: var(--dark-color-scheme); + } + + *:focus-visible, + .tsd-accordion-summary:focus-visible svg { + outline: 2px solid var(--color-focus-outline); + } + + .always-visible, + .always-visible .tsd-signatures { + display: inherit !important; + } + + h1, + h2, + h3, + h4, + h5, + h6 { + line-height: 1.2; + } + + h1 { + font-size: 1.875rem; + margin: 0.67rem 0; + } + + h2 { + font-size: 1.5rem; + margin: 0.83rem 0; + } + + h3 { + font-size: 1.25rem; + margin: 1rem 0; + } + + h4 { + font-size: 1.05rem; + margin: 1.33rem 0; + } + + h5 { + font-size: 1rem; + margin: 1.5rem 0; + } + + h6 { + font-size: 0.875rem; + margin: 2.33rem 0; + } + + dl, + menu, + ol, + ul { + margin: 1em 0; + } + + dd { + margin: 0 0 0 34px; + } + + .container { + max-width: 1700px; + padding: 0 2rem; + } + + /* Footer */ + footer { + border-top: 1px solid var(--color-accent); + padding-top: 1rem; + padding-bottom: 1rem; + max-height: 3.5rem; + } + footer > p { + margin: 0 1em; + } + + .container-main { + margin: 0 auto; + /* toolbar, footer, margin */ + min-height: calc(100vh - 41px - 56px - 4rem); + } + + @keyframes fade-in { + from { + opacity: 0; + } + to { + opacity: 1; + } + } + @keyframes fade-out { + from { + opacity: 1; + visibility: visible; + } + to { + opacity: 0; + } + } + @keyframes fade-in-delayed { + 0% { + opacity: 0; + } + 33% { + opacity: 0; + } + 100% { + opacity: 1; + } + } + @keyframes fade-out-delayed { + 0% { + opacity: 1; + visibility: visible; + } + 66% { + opacity: 0; + } + 100% { + opacity: 0; + } + } + @keyframes pop-in-from-right { + from { + transform: translate(100%, 0); + } + to { + transform: translate(0, 0); + } + } + @keyframes pop-out-to-right { + from { + transform: translate(0, 0); + visibility: visible; + } + to { + transform: translate(100%, 0); + } + } + body { + background: var(--color-background); + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", + Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; + font-size: 16px; + color: var(--color-text); + } + + a { + color: var(--color-link); + text-decoration: none; + } + a:hover { + text-decoration: underline; + } + a.external[target="_blank"] { + background-image: var(--external-icon); + background-position: top 3px right; + background-repeat: no-repeat; + padding-right: 13px; + } + a.tsd-anchor-link { + color: var(--color-text); + } + + code, + pre { + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + padding: 0.2em; + margin: 0; + font-size: 0.875rem; + border-radius: 0.8em; + } + + pre { + position: relative; + white-space: pre-wrap; + word-wrap: break-word; + padding: 10px; + border: 1px solid var(--color-accent); + margin-bottom: 8px; + } + pre code { + padding: 0; + font-size: 100%; + } + pre > button { + position: absolute; + top: 10px; + right: 10px; + opacity: 0; + transition: opacity 0.1s; + box-sizing: border-box; + } + pre:hover > button, + pre > button.visible { + opacity: 1; + } + + blockquote { + margin: 1em 0; + padding-left: 1em; + border-left: 4px solid gray; + } + + .tsd-typography { + line-height: 1.333em; + } + .tsd-typography ul { + list-style: square; + padding: 0 0 0 20px; + margin: 0; + } + .tsd-typography .tsd-index-panel h3, + .tsd-index-panel .tsd-typography h3, + .tsd-typography h4, + .tsd-typography h5, + .tsd-typography h6 { + font-size: 1em; + } + .tsd-typography h5, + .tsd-typography h6 { + font-weight: normal; + } + .tsd-typography p, + .tsd-typography ul, + .tsd-typography ol { + margin: 1em 0; + } + .tsd-typography table { + border-collapse: collapse; + border: none; + } + .tsd-typography td, + .tsd-typography th { + padding: 6px 13px; + border: 1px solid var(--color-accent); + } + .tsd-typography thead, + .tsd-typography tr:nth-child(even) { + background-color: var(--color-background-secondary); + } + + .tsd-alert { + padding: 8px 16px; + margin-bottom: 16px; + border-left: 0.25em solid var(--alert-color); + } + .tsd-alert blockquote > :last-child, + .tsd-alert > :last-child { + margin-bottom: 0; + } + .tsd-alert-title { + color: var(--alert-color); + display: inline-flex; + align-items: center; + } + .tsd-alert-title span { + margin-left: 4px; + } + + .tsd-alert-note { + --alert-color: var(--color-alert-note); + } + .tsd-alert-tip { + --alert-color: var(--color-alert-tip); + } + .tsd-alert-important { + --alert-color: var(--color-alert-important); + } + .tsd-alert-warning { + --alert-color: var(--color-alert-warning); + } + .tsd-alert-caution { + --alert-color: var(--color-alert-caution); + } + + .tsd-breadcrumb { + margin: 0; + padding: 0; + color: var(--color-text-aside); + } + .tsd-breadcrumb a { + color: var(--color-text-aside); + text-decoration: none; + } + .tsd-breadcrumb a:hover { + text-decoration: underline; + } + .tsd-breadcrumb li { + display: inline; + } + .tsd-breadcrumb li:after { + content: " / "; + } + + .tsd-comment-tags { + display: flex; + flex-direction: column; + } + dl.tsd-comment-tag-group { + display: flex; + align-items: center; + overflow: hidden; + margin: 0.5em 0; + } + dl.tsd-comment-tag-group dt { + display: flex; + margin-right: 0.5em; + font-size: 0.875em; + font-weight: normal; + } + dl.tsd-comment-tag-group dd { + margin: 0; + } + code.tsd-tag { + padding: 0.25em 0.4em; + border: 0.1em solid var(--color-accent); + margin-right: 0.25em; + font-size: 70%; + } + h1 code.tsd-tag:first-of-type { + margin-left: 0.25em; + } + + dl.tsd-comment-tag-group dd:before, + dl.tsd-comment-tag-group dd:after { + content: " "; + } + dl.tsd-comment-tag-group dd pre, + dl.tsd-comment-tag-group dd:after { + clear: both; + } + dl.tsd-comment-tag-group p { + margin: 0; + } + + .tsd-panel.tsd-comment .lead { + font-size: 1.1em; + line-height: 1.333em; + margin-bottom: 2em; + } + .tsd-panel.tsd-comment .lead:last-child { + margin-bottom: 0; + } + + .tsd-filter-visibility h4 { + font-size: 1rem; + padding-top: 0.75rem; + padding-bottom: 0.5rem; + margin: 0; + } + .tsd-filter-item:not(:last-child) { + margin-bottom: 0.5rem; + } + .tsd-filter-input { + display: flex; + width: -moz-fit-content; + width: fit-content; + align-items: center; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + cursor: pointer; + } + .tsd-filter-input input[type="checkbox"] { + cursor: pointer; + position: absolute; + width: 1.5em; + height: 1.5em; + opacity: 0; + } + .tsd-filter-input input[type="checkbox"]:disabled { + pointer-events: none; + } + .tsd-filter-input svg { + cursor: pointer; + width: 1.5em; + height: 1.5em; + margin-right: 0.5em; + border-radius: 0.33em; + /* Leaving this at full opacity breaks event listeners on Firefox. + Don't remove unless you know what you're doing. */ + opacity: 0.99; + } + .tsd-filter-input input[type="checkbox"]:focus-visible + svg { + outline: 2px solid var(--color-focus-outline); + } + .tsd-checkbox-background { + fill: var(--color-accent); + } + input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { + stroke: var(--color-text); + } + .tsd-filter-input input:disabled ~ svg > .tsd-checkbox-background { + fill: var(--color-background); + stroke: var(--color-accent); + stroke-width: 0.25rem; + } + .tsd-filter-input input:disabled ~ svg > .tsd-checkbox-checkmark { + stroke: var(--color-accent); + } + + .settings-label { + font-weight: bold; + text-transform: uppercase; + display: inline-block; + } + + .tsd-filter-visibility .settings-label { + margin: 0.75rem 0 0.5rem 0; + } + + .tsd-theme-toggle .settings-label { + margin: 0.75rem 0.75rem 0 0; + } + + .tsd-hierarchy h4 label:hover span { + text-decoration: underline; + } + + .tsd-hierarchy { + list-style: square; + margin: 0; + } + .tsd-hierarchy-target { + font-weight: bold; + } + .tsd-hierarchy-toggle { + color: var(--color-link); + cursor: pointer; + } + + .tsd-full-hierarchy:not(:last-child) { + margin-bottom: 1em; + padding-bottom: 1em; + border-bottom: 1px solid var(--color-accent); + } + .tsd-full-hierarchy, + .tsd-full-hierarchy ul { + list-style: none; + margin: 0; + padding: 0; + } + .tsd-full-hierarchy ul { + padding-left: 1.5rem; + } + .tsd-full-hierarchy a { + padding: 0.25rem 0 !important; + font-size: 1rem; + display: inline-flex; + align-items: center; + color: var(--color-text); + } + .tsd-full-hierarchy svg[data-dropdown] { + cursor: pointer; + } + .tsd-full-hierarchy svg[data-dropdown="false"] { + transform: rotate(-90deg); + } + .tsd-full-hierarchy svg[data-dropdown="false"] ~ ul { + display: none; + } + + .tsd-panel-group.tsd-index-group { + margin-bottom: 0; + } + .tsd-index-panel .tsd-index-list { + list-style: none; + line-height: 1.333em; + margin: 0; + padding: 0.25rem 0 0 0; + overflow: hidden; + display: grid; + grid-template-columns: repeat(3, 1fr); + column-gap: 1rem; + grid-template-rows: auto; + } + @media (max-width: 1024px) { + .tsd-index-panel .tsd-index-list { + grid-template-columns: repeat(2, 1fr); + } + } + @media (max-width: 768px) { + .tsd-index-panel .tsd-index-list { + grid-template-columns: repeat(1, 1fr); + } + } + .tsd-index-panel .tsd-index-list li { + -webkit-page-break-inside: avoid; + -moz-page-break-inside: avoid; + -ms-page-break-inside: avoid; + -o-page-break-inside: avoid; + page-break-inside: avoid; + } + + .tsd-flag { + display: inline-block; + padding: 0.25em 0.4em; + border-radius: 4px; + color: var(--color-comment-tag-text); + background-color: var(--color-comment-tag); + text-indent: 0; + font-size: 75%; + line-height: 1; + font-weight: normal; + } + + .tsd-anchor { + position: relative; + top: -100px; + } + + .tsd-member { + position: relative; + } + .tsd-member .tsd-anchor + h3 { + display: flex; + align-items: center; + margin-top: 0; + margin-bottom: 0; + border-bottom: none; + } + + .tsd-navigation.settings { + margin: 1rem 0; + } + .tsd-navigation > a, + .tsd-navigation .tsd-accordion-summary { + width: calc(100% - 0.25rem); + display: flex; + align-items: center; + } + .tsd-navigation a, + .tsd-navigation summary > span, + .tsd-page-navigation a { + display: flex; + width: calc(100% - 0.25rem); + align-items: center; + padding: 0.25rem; + color: var(--color-text); + text-decoration: none; + box-sizing: border-box; + } + .tsd-navigation a.current, + .tsd-page-navigation a.current { + background: var(--color-active-menu-item); + } + .tsd-navigation a:hover, + .tsd-page-navigation a:hover { + text-decoration: underline; + } + .tsd-navigation ul, + .tsd-page-navigation ul { + margin-top: 0; + margin-bottom: 0; + padding: 0; + list-style: none; + } + .tsd-navigation li, + .tsd-page-navigation li { + padding: 0; + max-width: 100%; + } + .tsd-navigation .tsd-nav-link { + display: none; + } + .tsd-nested-navigation { + margin-left: 3rem; + } + .tsd-nested-navigation > li > details { + margin-left: -1.5rem; + } + .tsd-small-nested-navigation { + margin-left: 1.5rem; + } + .tsd-small-nested-navigation > li > details { + margin-left: -1.5rem; + } + + .tsd-page-navigation-section { + margin-left: 10px; + } + .tsd-page-navigation-section > summary { + padding: 0.25rem; + } + .tsd-page-navigation-section > div { + margin-left: 20px; + } + .tsd-page-navigation ul { + padding-left: 1.75rem; + } + + #tsd-sidebar-links a { + margin-top: 0; + margin-bottom: 0.5rem; + line-height: 1.25rem; + } + #tsd-sidebar-links a:last-of-type { + margin-bottom: 0; + } + + a.tsd-index-link { + padding: 0.25rem 0 !important; + font-size: 1rem; + line-height: 1.25rem; + display: inline-flex; + align-items: center; + color: var(--color-text); + } + .tsd-accordion-summary { + list-style-type: none; /* hide marker on non-safari */ + outline: none; /* broken on safari, so just hide it */ + } + .tsd-accordion-summary::-webkit-details-marker { + display: none; /* hide marker on safari */ + } + .tsd-accordion-summary, + .tsd-accordion-summary a { + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + user-select: none; + + cursor: pointer; + } + .tsd-accordion-summary a { + width: calc(100% - 1.5rem); + } + .tsd-accordion-summary > * { + margin-top: 0; + margin-bottom: 0; + padding-top: 0; + padding-bottom: 0; + } + .tsd-accordion .tsd-accordion-summary > svg { + margin-left: 0.25rem; + vertical-align: text-top; + } + /* + We need to be careful to target the arrow indicating whether the accordion + is open, but not any other SVGs included in the details element. +*/ + .tsd-accordion:not([open]) > .tsd-accordion-summary > svg:first-child, + .tsd-accordion:not([open]) > .tsd-accordion-summary > h1 > svg:first-child, + .tsd-accordion:not([open]) > .tsd-accordion-summary > h2 > svg:first-child, + .tsd-accordion:not([open]) > .tsd-accordion-summary > h3 > svg:first-child, + .tsd-accordion:not([open]) > .tsd-accordion-summary > h4 > svg:first-child { + transform: rotate(-90deg); + } + .tsd-index-content > :not(:first-child) { + margin-top: 0.75rem; + } + .tsd-index-heading { + margin-top: 1.5rem; + margin-bottom: 0.75rem; + } + + .tsd-no-select { + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + } + .tsd-kind-icon { + margin-right: 0.5rem; + width: 1.25rem; + height: 1.25rem; + min-width: 1.25rem; + min-height: 1.25rem; + } + .tsd-signature > .tsd-kind-icon { + margin-right: 0.8rem; + } + + .tsd-panel { + margin-bottom: 2.5rem; + } + .tsd-panel.tsd-member { + margin-bottom: 4rem; + } + .tsd-panel:empty { + display: none; + } + .tsd-panel > h1, + .tsd-panel > h2, + .tsd-panel > h3 { + margin: 1.5rem -1.5rem 0.75rem -1.5rem; + padding: 0 1.5rem 0.75rem 1.5rem; + } + .tsd-panel > h1.tsd-before-signature, + .tsd-panel > h2.tsd-before-signature, + .tsd-panel > h3.tsd-before-signature { + margin-bottom: 0; + border-bottom: none; + } + + .tsd-panel-group { + margin: 2rem 0; + } + .tsd-panel-group.tsd-index-group { + margin: 2rem 0; + } + .tsd-panel-group.tsd-index-group details { + margin: 2rem 0; + } + .tsd-panel-group > .tsd-accordion-summary { + margin-bottom: 1rem; + } + + #tsd-search { + transition: background-color 0.2s; + } + #tsd-search .title { + position: relative; + z-index: 2; + } + #tsd-search .field { + position: absolute; + left: 0; + top: 0; + right: 2.5rem; + height: 100%; + } + #tsd-search .field input { + box-sizing: border-box; + position: relative; + top: -50px; + z-index: 1; + width: 100%; + padding: 0 10px; + opacity: 0; + outline: 0; + border: 0; + background: transparent; + color: var(--color-text); + } + #tsd-search .field label { + position: absolute; + overflow: hidden; + right: -40px; + } + #tsd-search .field input, + #tsd-search .title, + #tsd-toolbar-links a { + transition: opacity 0.2s; + } + #tsd-search .results { + position: absolute; + visibility: hidden; + top: 40px; + width: 100%; + margin: 0; + padding: 0; + list-style: none; + box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); + } + #tsd-search .results li { + background-color: var(--color-background); + line-height: initial; + padding: 4px; + } + #tsd-search .results li:nth-child(even) { + background-color: var(--color-background-secondary); + } + #tsd-search .results li.state { + display: none; + } + #tsd-search .results li.current:not(.no-results), + #tsd-search .results li:hover:not(.no-results) { + background-color: var(--color-accent); + } + #tsd-search .results a { + display: flex; + align-items: center; + padding: 0.25rem; + box-sizing: border-box; + } + #tsd-search .results a:before { + top: 10px; + } + #tsd-search .results span.parent { + color: var(--color-text-aside); + font-weight: normal; + } + #tsd-search.has-focus { + background-color: var(--color-accent); + } + #tsd-search.has-focus .field input { + top: 0; + opacity: 1; + } + #tsd-search.has-focus .title, + #tsd-search.has-focus #tsd-toolbar-links a { + z-index: 0; + opacity: 0; + } + #tsd-search.has-focus .results { + visibility: visible; + } + #tsd-search.loading .results li.state.loading { + display: block; + } + #tsd-search.failure .results li.state.failure { + display: block; + } + + #tsd-toolbar-links { + position: absolute; + top: 0; + right: 2rem; + height: 100%; + display: flex; + align-items: center; + justify-content: flex-end; + } + #tsd-toolbar-links a { + margin-left: 1.5rem; + } + #tsd-toolbar-links a:hover { + text-decoration: underline; + } + + .tsd-signature { + margin: 0 0 1rem 0; + padding: 1rem 0.5rem; + border: 1px solid var(--color-accent); + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + font-size: 14px; + overflow-x: auto; + } + + .tsd-signature-keyword { + color: var(--color-ts-keyword); + font-weight: normal; + } + + .tsd-signature-symbol { + color: var(--color-text-aside); + font-weight: normal; + } + + .tsd-signature-type { + font-style: italic; + font-weight: normal; + } + + .tsd-signatures { + padding: 0; + margin: 0 0 1em 0; + list-style-type: none; + } + .tsd-signatures .tsd-signature { + margin: 0; + border-color: var(--color-accent); + border-width: 1px 0; + transition: background-color 0.1s; + } + .tsd-signatures .tsd-index-signature:not(:last-child) { + margin-bottom: 1em; + } + .tsd-signatures .tsd-index-signature .tsd-signature { + border-width: 1px; + } + .tsd-description .tsd-signatures .tsd-signature { + border-width: 1px; + } + + ul.tsd-parameter-list, + ul.tsd-type-parameter-list { + list-style: square; + margin: 0; + padding-left: 20px; + } + ul.tsd-parameter-list > li.tsd-parameter-signature, + ul.tsd-type-parameter-list > li.tsd-parameter-signature { + list-style: none; + margin-left: -20px; + } + ul.tsd-parameter-list h5, + ul.tsd-type-parameter-list h5 { + font-size: 16px; + margin: 1em 0 0.5em 0; + } + .tsd-sources { + margin-top: 1rem; + font-size: 0.875em; + } + .tsd-sources a { + color: var(--color-text-aside); + text-decoration: underline; + } + .tsd-sources ul { + list-style: none; + padding: 0; + } + + .tsd-page-toolbar { + position: sticky; + z-index: 1; + top: 0; + left: 0; + width: 100%; + color: var(--color-text); + background: var(--color-background-secondary); + border-bottom: 1px var(--color-accent) solid; + transition: transform 0.3s ease-in-out; + } + .tsd-page-toolbar a { + color: var(--color-text); + text-decoration: none; + } + .tsd-page-toolbar a.title { + font-weight: bold; + } + .tsd-page-toolbar a.title:hover { + text-decoration: underline; + } + .tsd-page-toolbar .tsd-toolbar-contents { + display: flex; + justify-content: space-between; + height: 2.5rem; + margin: 0 auto; + } + .tsd-page-toolbar .table-cell { + position: relative; + white-space: nowrap; + line-height: 40px; + } + .tsd-page-toolbar .table-cell:first-child { + width: 100%; + } + .tsd-page-toolbar .tsd-toolbar-icon { + box-sizing: border-box; + line-height: 0; + padding: 12px 0; + } + + .tsd-widget { + display: inline-block; + overflow: hidden; + opacity: 0.8; + height: 40px; + transition: + opacity 0.1s, + background-color 0.2s; + vertical-align: bottom; + cursor: pointer; + } + .tsd-widget:hover { + opacity: 0.9; + } + .tsd-widget.active { + opacity: 1; + background-color: var(--color-accent); + } + .tsd-widget.no-caption { + width: 40px; + } + .tsd-widget.no-caption:before { + margin: 0; + } + + .tsd-widget.options, + .tsd-widget.menu { + display: none; + } + input[type="checkbox"] + .tsd-widget:before { + background-position: -120px 0; + } + input[type="checkbox"]:checked + .tsd-widget:before { + background-position: -160px 0; + } + + img { + max-width: 100%; + } + + .tsd-member-summary-name { + display: inline-flex; + align-items: center; + padding: 0.25rem; + text-decoration: none; + } + + .tsd-anchor-icon { + display: inline-flex; + align-items: center; + margin-left: 0.5rem; + color: var(--color-text); + } + + .tsd-anchor-icon svg { + width: 1em; + height: 1em; + visibility: hidden; + } + + .tsd-member-summary-name:hover > .tsd-anchor-icon svg, + .tsd-anchor-link:hover > .tsd-anchor-icon svg { + visibility: visible; + } + + .deprecated { + text-decoration: line-through !important; + } + + .warning { + padding: 1rem; + color: var(--color-warning-text); + background: var(--color-background-warning); + } + + .tsd-kind-project { + color: var(--color-ts-project); + } + .tsd-kind-module { + color: var(--color-ts-module); + } + .tsd-kind-namespace { + color: var(--color-ts-namespace); + } + .tsd-kind-enum { + color: var(--color-ts-enum); + } + .tsd-kind-enum-member { + color: var(--color-ts-enum-member); + } + .tsd-kind-variable { + color: var(--color-ts-variable); + } + .tsd-kind-function { + color: var(--color-ts-function); + } + .tsd-kind-class { + color: var(--color-ts-class); + } + .tsd-kind-interface { + color: var(--color-ts-interface); + } + .tsd-kind-constructor { + color: var(--color-ts-constructor); + } + .tsd-kind-property { + color: var(--color-ts-property); + } + .tsd-kind-method { + color: var(--color-ts-method); + } + .tsd-kind-reference { + color: var(--color-ts-reference); + } + .tsd-kind-call-signature { + color: var(--color-ts-call-signature); + } + .tsd-kind-index-signature { + color: var(--color-ts-index-signature); + } + .tsd-kind-constructor-signature { + color: var(--color-ts-constructor-signature); + } + .tsd-kind-parameter { + color: var(--color-ts-parameter); + } + .tsd-kind-type-parameter { + color: var(--color-ts-type-parameter); + } + .tsd-kind-accessor { + color: var(--color-ts-accessor); + } + .tsd-kind-get-signature { + color: var(--color-ts-get-signature); + } + .tsd-kind-set-signature { + color: var(--color-ts-set-signature); + } + .tsd-kind-type-alias { + color: var(--color-ts-type-alias); + } + + /* if we have a kind icon, don't color the text by kind */ + .tsd-kind-icon ~ span { + color: var(--color-text); + } + + * { + scrollbar-width: thin; + scrollbar-color: var(--color-accent) var(--color-icon-background); + } + + *::-webkit-scrollbar { + width: 0.75rem; + } + + *::-webkit-scrollbar-track { + background: var(--color-icon-background); + } + + *::-webkit-scrollbar-thumb { + background-color: var(--color-accent); + border-radius: 999rem; + border: 0.25rem solid var(--color-icon-background); + } + + /* mobile */ + @media (max-width: 769px) { + .tsd-widget.options, + .tsd-widget.menu { + display: inline-block; + } + + .container-main { + display: flex; + } + html .col-content { + float: none; + max-width: 100%; + width: 100%; + } + html .col-sidebar { + position: fixed !important; + overflow-y: auto; + -webkit-overflow-scrolling: touch; + z-index: 1024; + top: 0 !important; + bottom: 0 !important; + left: auto !important; + right: 0 !important; + padding: 1.5rem 1.5rem 0 0; + width: 75vw; + visibility: hidden; + background-color: var(--color-background); + transform: translate(100%, 0); + } + html .col-sidebar > *:last-child { + padding-bottom: 20px; + } + html .overlay { + content: ""; + display: block; + position: fixed; + z-index: 1023; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.75); + visibility: hidden; + } + + .to-has-menu .overlay { + animation: fade-in 0.4s; + } + + .to-has-menu .col-sidebar { + animation: pop-in-from-right 0.4s; + } + + .from-has-menu .overlay { + animation: fade-out 0.4s; + } + + .from-has-menu .col-sidebar { + animation: pop-out-to-right 0.4s; + } + + .has-menu body { + overflow: hidden; + } + .has-menu .overlay { + visibility: visible; + } + .has-menu .col-sidebar { + visibility: visible; + transform: translate(0, 0); + display: flex; + flex-direction: column; + gap: 1.5rem; + max-height: 100vh; + padding: 1rem 2rem; + } + .has-menu .tsd-navigation { + max-height: 100%; + } + #tsd-toolbar-links { + display: none; + } + .tsd-navigation .tsd-nav-link { + display: flex; + } + } + + /* one sidebar */ + @media (min-width: 770px) { + .container-main { + display: grid; + grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); + grid-template-areas: "sidebar content"; + margin: 2rem auto; + } + + .col-sidebar { + grid-area: sidebar; + } + .col-content { + grid-area: content; + padding: 0 1rem; + } + } + @media (min-width: 770px) and (max-width: 1399px) { + .col-sidebar { + max-height: calc(100vh - 2rem - 42px); + overflow: auto; + position: sticky; + top: 42px; + padding-top: 1rem; + } + .site-menu { + margin-top: 1rem; + } + } + + /* two sidebars */ + @media (min-width: 1200px) { + .container-main { + grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax( + 0, + 20rem + ); + grid-template-areas: "sidebar content toc"; + } + + .col-sidebar { + display: contents; + } + + .page-menu { + grid-area: toc; + padding-left: 1rem; + } + .site-menu { + grid-area: sidebar; + } + + .site-menu { + margin-top: 1rem; + } + + .page-menu, + .site-menu { + max-height: calc(100vh - 2rem - 42px); + overflow: auto; + position: sticky; + top: 42px; + } + } +} diff --git a/functions/CSVToArray.html b/functions/CSVToArray.html new file mode 100644 index 0000000..5e16a6c --- /dev/null +++ b/functions/CSVToArray.html @@ -0,0 +1,10 @@ +CSVToArray | JS-COOL DOCS - v5.23.1

Function CSVToArray

Converts a comma-separated string of values (CSV) to a 2D array.

+
CSVToArray('a,b\\nc,d')
// `[['a','b'],['c','d']]`.

CSVToArray('a;b\\\nc;d', ';')
// `[['a','b'],['c','d']]`.

CSVToArray('col1,col2\\\na,b\\\nc,d', ',', true)
// `[['a','b'],['c','d']]`. +
+ +

1.0.9

+
  • Parameters

    • data: string

      csv data

      +
    • delimiter: string = ','

      separator, default ','

      +
    • omitFirstRow: boolean = false

      the first row is the table header data, default false

      +

    Returns string[][]

    array

    +
diff --git a/functions/CSVToJSON.html b/functions/CSVToJSON.html new file mode 100644 index 0000000..761d4d9 --- /dev/null +++ b/functions/CSVToJSON.html @@ -0,0 +1,11 @@ +CSVToJSON | JS-COOL DOCS - v5.23.1

Function CSVToJSON

  • Converts a comma-separated string of values (CSV) to an array of 2D objects. The first line of the string is used as the header line.

    +

    Parameters

    • data: string

      csv data

      +
    • delimiter: string = ','

      delimiter, default ','

      +

    Returns any[]

      +
    • json
    • +
    +
    CSVToJSON('col1,col2\\na,b\\\nc,d')
    // `[{'col1': 'a', 'col2': 'b'}, {'col1': 'c', 'col2': 'd'}]`.

    CSVToJSON('col1;col2\\\na;b\\\nc;d', ';')
    // `[{'col1': 'a', 'col2': 'b'}, {'col1': 'c', 'col2': 'd'}]`. +
    + +

    1.0.9

    +
diff --git a/functions/JSONToCSV.html b/functions/JSONToCSV.html new file mode 100644 index 0000000..58b8eec --- /dev/null +++ b/functions/JSONToCSV.html @@ -0,0 +1,11 @@ +JSONToCSV | JS-COOL DOCS - v5.23.1

Function JSONToCSV

Converts an array of objects to a comma-separated value (CSV) string containing only the specified columns.

+
JSONToCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b'])
// 'a,b\n "1", "2"\n "3", "4"\n "6",""\n"", "7"'

JSONToCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b'], ';')
// 'a;b\n "1"; "2"\n "3"; "4"\n "6";""\n""; "7"' +
+ +

1.0.9

+
  • Parameters

    • arr: any[]
    • columns: any[]

      the specified columns

      +
    • delimiter: string = ','

      delimiter, default ','

      +

    Returns string

      +
    • CSV data
    • +
    +
diff --git a/functions/RGBToHex.html b/functions/RGBToHex.html new file mode 100644 index 0000000..6540ef5 --- /dev/null +++ b/functions/RGBToHex.html @@ -0,0 +1,12 @@ +RGBToHex | JS-COOL DOCS - v5.23.1

Function RGBToHex

Converts RGB component values to color codes.

+
RGBToHex(255, 165, 1)
// 'ffa501' +
+ +

1.0.9

+
  • Parameters

    • r: number

      the 1st value of RGB

      +
    • g: number

      RGB's 2nd value

      +
    • b: number

      RGB's 3rd value

      +

    Returns string

      +
    • hex value
    • +
    +
diff --git a/functions/addEvent.html b/functions/addEvent.html new file mode 100644 index 0000000..e9997aa --- /dev/null +++ b/functions/addEvent.html @@ -0,0 +1,7 @@ +addEvent | JS-COOL DOCS - v5.23.1

Function addEvent

  • addEvent() event delegate, supports multiple delegates

    +

    Parameters

    • element: AnyObject

      js dom object

      +
    • type: string

      The event type. No need to add on

      +
    • handler: AnyFunction

      callback method

      +

    Returns void

    1.0.2

    +

Properties

Properties

guid: number
diff --git a/functions/all.html b/functions/all.html new file mode 100644 index 0000000..a3d9489 --- /dev/null +++ b/functions/all.html @@ -0,0 +1,11 @@ +all | JS-COOL DOCS - v5.23.1

Function all

Returns true if the provided predicate function returns true for all elements in a set, otherwise it returns false.

+
all([4, 2, 3], x => x > 1)
// true +
+ +

1.0.9

+
  • Type Parameters

    • T = unknown

    Parameters

    • arr: T[]

      the target array

      +
    • fn: AnyFunction

      the judgment method

      +

    Returns boolean

      +
    • the result of the judgment
    • +
    +
diff --git a/functions/any.html b/functions/any.html new file mode 100644 index 0000000..635c2c4 --- /dev/null +++ b/functions/any.html @@ -0,0 +1,11 @@ +any | JS-COOL DOCS - v5.23.1

Function any

Returns true if the provided predicate function returns true for at least one element of a set, otherwise it returns false.

+
any([0, 1, 2, 0], x => x >= 2)
// true +
+ +

1.0.9

+
  • Type Parameters

    • T = unknown

    Parameters

    • arr: T[]

      the target array

      +
    • fn: AnyFunction

      the judgment method

      +

    Returns boolean

      +
    • the result of the judgment
    • +
    +
diff --git a/functions/appVersion.html b/functions/appVersion.html new file mode 100644 index 0000000..dfbb622 --- /dev/null +++ b/functions/appVersion.html @@ -0,0 +1,33 @@ +appVersion | JS-COOL DOCS - v5.23.1

Function appVersion

  • Get the APP version from navigator.userAgent, support 'x.x.x' & 'x.x.x-tagname.x'

    +

    Parameters

    • appName: string

      app name

      +

    Returns string | null

    string|null

    +
    // navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'
    appVersion('Chrome') // 114.0.0.0
    appVersion('Safari') // 537.36
    appVersion('appname', false) // null
    appVersion('appname') // 1.0.0-beta.8 +
    + +

    5.1.0

    +
  • Get the APP version from navigator.userAgent, support 'x.x.x' & 'x.x.x-tagname.x'

    +

    Parameters

    • appName: string

      app name

      +
    • ua: string

      ua or any ua like string, allowed to be undefined, default is navigator.userAgent

      +

    Returns string | null

    string|null

    +
    // navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'
    appVersion('Chrome') // 114.0.0.0
    appVersion('Safari') // 537.36
    appVersion('appname', false) // null
    appVersion('appname') // 1.0.0-beta.8 +
    + +

    5.1.0

    +
  • Get the APP version from navigator.userAgent, support 'x.x.x' & 'x.x.x-tagname.x'

    +

    Parameters

    • appName: string

      app name

      +
    • ua: boolean

      ua or any ua like string, allowed to be undefined, default is navigator.userAgent

      +

    Returns string | null

    string|null

    +
    // navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'
    appVersion('Chrome') // 114.0.0.0
    appVersion('Safari') // 537.36
    appVersion('appname', false) // null
    appVersion('appname') // 1.0.0-beta.8 +
    + +

    5.1.0

    +
  • Get the APP version from navigator.userAgent, support 'x.x.x' & 'x.x.x-tagname.x'

    +

    Parameters

    • appName: string

      app name

      +
    • ua: string

      ua or any ua like string, allowed to be undefined, default is navigator.userAgent

      +
    • ignoreCase: boolean

      whether to ignore case

      +

    Returns string | null

    string|null

    +
    // navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'
    appVersion('Chrome') // 114.0.0.0
    appVersion('Safari') // 537.36
    appVersion('appname', false) // null
    appVersion('appname') // 1.0.0-beta.8 +
    + +

    5.1.0

    +
diff --git a/functions/arrayBufferToBase64.html b/functions/arrayBufferToBase64.html new file mode 100644 index 0000000..af9c8bc --- /dev/null +++ b/functions/arrayBufferToBase64.html @@ -0,0 +1,11 @@ +arrayBufferToBase64 | JS-COOL DOCS - v5.23.1

Function arrayBufferToBase64

  • arrayBuffer to base64

    +

    Parameters

    • input: ArrayBuffer

      arrayBuffer

      +
    • Optionalmime: string

      image mime, eq: image/png

      +

    Returns string

      +
    • base64
    • +
    +
    arrayBufferToBase64(arrayBuffer, 'image/png')
    // data:image/png;base64,xxxxxxxxxxxx

    arrayBufferToBase64(arrayBuffer)
    // xxxxxxxxxxxx +
    + +

    5.13.0

    +
diff --git a/functions/arrayBufferToBlob.html b/functions/arrayBufferToBlob.html new file mode 100644 index 0000000..a0789cc --- /dev/null +++ b/functions/arrayBufferToBlob.html @@ -0,0 +1,8 @@ +arrayBufferToBlob | JS-COOL DOCS - v5.23.1

Function arrayBufferToBlob

  • arrayBuffer to blob

    +

    Parameters

    • input: ArrayBuffer

      arrayBuffer

      +
    • mime: string = 'image/png'

      image mime, default: image/png

      +

    Returns Blob

      +
    • blob
    • +
    +

    5.13.0

    +
diff --git a/functions/arrayToCSV.html b/functions/arrayToCSV.html new file mode 100644 index 0000000..5b611eb --- /dev/null +++ b/functions/arrayToCSV.html @@ -0,0 +1,8 @@ +arrayToCSV | JS-COOL DOCS - v5.23.1

Function arrayToCSV

Converts a two-dimensional array to a comma-separated string of values (CSV).

+
arrayToCSV([['a', 'b'], ['c', 'd']])
// '"a", "b" \n "c", "d"'

arrayToCSV([['a', 'b'], ['c', 'd']], ';')
// '"a"; "b"\n "c"; "d"'

arrayToCSV([['a', '"b" great'], ['c', 3.1415]])
// '"a", """b"" great"\n "c",3.1415' +
+ +

1.0.9

+
  • Type Parameters

    • T extends unknown[][]

    Parameters

    • arr: T
    • delimiter: string = ','

      delimiter, default ','

      +

    Returns string

    CSV data

    +
diff --git a/functions/awaitTo.html b/functions/awaitTo.html new file mode 100644 index 0000000..b5a1d90 --- /dev/null +++ b/functions/awaitTo.html @@ -0,0 +1,32 @@ +awaitTo | JS-COOL DOCS - v5.23.1

Function awaitTo

  • Async await wrapper for easy error handling

    +

    Type Parameters

    • T
    • E = Error

    Parameters

    • promise: Promise<T>

      Promise

      +

    Returns Promise<[E, undefined] | [null, T]>

      +
    • result
    • +
    +
    const bar = () => new Promise<boolean>((resolve, reject) => {})
    const foo = () => new Promise<string>((resolve, reject) => {})
    ;(async () => {
    const [err, data] = await awaitToDone(bar())
    const [err1, data1] = await awaitToDone(bar(), foo())
    const [err2, data2] = await awaitToDone([bar(), foo()])
    })() +
    + +

    1.0.0

    +

    saqqdy

    +
  • Async await wrapper for easy error handling

    +

    Type Parameters

    • P extends [] | readonly unknown[]
    • E = Error

    Parameters

    • promise: PromiseAll<P>

      Promise

      +

    Returns Promise<[E, undefined] | [null, P]>

      +
    • result
    • +
    +
    const bar = () => new Promise<boolean>((resolve, reject) => {})
    const foo = () => new Promise<string>((resolve, reject) => {})
    ;(async () => {
    const [err, data] = await awaitToDone(bar())
    const [err1, data1] = await awaitToDone(bar(), foo())
    const [err2, data2] = await awaitToDone([bar(), foo()])
    })() +
    + +

    1.0.0

    +

    saqqdy

    +
  • Async await wrapper for easy error handling

    +

    Type Parameters

    • T
    • P extends [] | readonly unknown[]
    • E = Error

    Parameters

    • promise: Promise<T>

      Promise

      +
    • ...promises: PromiseAll<P>

      Promise rest params

      +

    Returns Promise<[E, undefined] | [null, [T, ...P]]>

      +
    • result
    • +
    +
    const bar = () => new Promise<boolean>((resolve, reject) => {})
    const foo = () => new Promise<string>((resolve, reject) => {})
    ;(async () => {
    const [err, data] = await awaitToDone(bar())
    const [err1, data1] = await awaitToDone(bar(), foo())
    const [err2, data2] = await awaitToDone([bar(), foo()])
    })() +
    + +

    1.0.0

    +

    saqqdy

    +
diff --git a/functions/base64ToArrayBuffer.html b/functions/base64ToArrayBuffer.html new file mode 100644 index 0000000..fc8b754 --- /dev/null +++ b/functions/base64ToArrayBuffer.html @@ -0,0 +1,7 @@ +base64ToArrayBuffer | JS-COOL DOCS - v5.23.1

Function base64ToArrayBuffer

  • base64 to arrayBuffer

    +

    Parameters

    • input: string

      base64 string

      +

    Returns Uint8Array<ArrayBuffer> | Buffer<ArrayBuffer>

      +
    • arrayBuffer
    • +
    +

    5.13.0

    +
diff --git a/functions/base64ToBlob.html b/functions/base64ToBlob.html new file mode 100644 index 0000000..2f216cf --- /dev/null +++ b/functions/base64ToBlob.html @@ -0,0 +1,7 @@ +base64ToBlob | JS-COOL DOCS - v5.23.1

Function base64ToBlob

  • base64 to blob

    +

    Parameters

    • input: string

      base64 string

      +

    Returns Blob

      +
    • blob
    • +
    +

    5.13.0

    +
diff --git a/functions/base64ToFile.html b/functions/base64ToFile.html new file mode 100644 index 0000000..c5c33ee --- /dev/null +++ b/functions/base64ToFile.html @@ -0,0 +1,8 @@ +base64ToFile | JS-COOL DOCS - v5.23.1

Function base64ToFile

  • base64 to file

    +

    Parameters

    • input: string

      base64 string

      +
    • fileName: string

      file name

      +

    Returns File

      +
    • the BASE64 encoding
    • +
    +

    5.13.0

    +
diff --git a/functions/blobToArrayBuffer.html b/functions/blobToArrayBuffer.html new file mode 100644 index 0000000..7464f75 --- /dev/null +++ b/functions/blobToArrayBuffer.html @@ -0,0 +1,7 @@ +blobToArrayBuffer | JS-COOL DOCS - v5.23.1

Function blobToArrayBuffer

  • blob to arrayBuffer

    +

    Parameters

    • input: Blob

      blob data

      +

    Returns Promise<ArrayBuffer | null>

      +
    • arrayBuffer
    • +
    +

    5.13.0

    +
diff --git a/functions/blobToBase64.html b/functions/blobToBase64.html new file mode 100644 index 0000000..3916686 --- /dev/null +++ b/functions/blobToBase64.html @@ -0,0 +1,7 @@ +blobToBase64 | JS-COOL DOCS - v5.23.1

Function blobToBase64

  • blob to base64

    +

    Parameters

    • input: Blob

      blob data

      +

    Returns Promise<string | null>

      +
    • base64 string
    • +
    +

    5.13.0

    +
diff --git a/functions/blobToUrl.html b/functions/blobToUrl.html new file mode 100644 index 0000000..6bd6392 --- /dev/null +++ b/functions/blobToUrl.html @@ -0,0 +1,7 @@ +blobToUrl | JS-COOL DOCS - v5.23.1

Function blobToUrl

  • blob to blobUrl

    +

    Parameters

    • input: Blob

      blob data

      +

    Returns string

      +
    • blobUrl
    • +
    +

    5.13.0

    +
diff --git a/functions/browserVersion-1.html b/functions/browserVersion-1.html new file mode 100644 index 0000000..636023b --- /dev/null +++ b/functions/browserVersion-1.html @@ -0,0 +1,8 @@ +browserVersion | JS-COOL DOCS - v5.23.1

Function browserVersion

  • Get the browser name and version

    +

    Parameters

    • Optionalua: string

      ua or any ua like string, allowed to be undefined, default is navigator.userAgent

      +

    Returns BrowserVersion | null

    BrowserVersion|null

    +
    // Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Ap…KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
    browserVersion() // \{ name: 'Chrome', version: '114.0.0.0' \} +
    + +

    5.2.0

    +
diff --git a/functions/camel2Dash.html b/functions/camel2Dash.html new file mode 100644 index 0000000..d3fd535 --- /dev/null +++ b/functions/camel2Dash.html @@ -0,0 +1,7 @@ +camel2Dash | JS-COOL DOCS - v5.23.1

Function camel2Dash

  • Converts humped strings to -spaced and all lowercase Dash pattern

    +

    Parameters

    • string: string

      the string to be converted

      +

    Returns string

      +
    • the converted string
    • +
    +

    1.0.1

    +
diff --git a/functions/cleanData.html b/functions/cleanData.html new file mode 100644 index 0000000..2868189 --- /dev/null +++ b/functions/cleanData.html @@ -0,0 +1,8 @@ +cleanData | JS-COOL DOCS - v5.23.1

Function cleanData

  • Data cleaning methods

    +

    Parameters

    • data: any

      the object to be cleaned, must be passed

      +
    • map: any[] | AnyObject

      the data queue to be cleaned, can be passed as array or object

      +
    • OptionalnullFix: any

    Returns any

      +
    • the cleaned object
    • +
    +

    1.0.2

    +
diff --git a/functions/clearAttr.html b/functions/clearAttr.html new file mode 100644 index 0000000..fddca77 --- /dev/null +++ b/functions/clearAttr.html @@ -0,0 +1,5 @@ +clearAttr | JS-COOL DOCS - v5.23.1

Function clearAttr

  • Remove all attributes of HTML tags

    +

    Parameters

    • string: string

      pass in the string

      +

    Returns string

    newString

    +

    1.0.1

    +
diff --git a/functions/clearHtml.html b/functions/clearHtml.html new file mode 100644 index 0000000..43e7631 --- /dev/null +++ b/functions/clearHtml.html @@ -0,0 +1,5 @@ +clearHtml | JS-COOL DOCS - v5.23.1

Function clearHtml

  • Removing HTML tags

    +

    Parameters

    • string: string

      string with html tags

      +

    Returns string

    newString

    +

    1.0.1

    +
diff --git a/functions/client.html b/functions/client.html new file mode 100644 index 0000000..2469124 --- /dev/null +++ b/functions/client.html @@ -0,0 +1,9 @@ +client | JS-COOL DOCS - v5.23.1

Function client

The client method returns a browser judgment result: { ANDROID: true, GECKO: true, GLSH_APP: false, IE: false, IOS: false, IPAD: false, IPHONE: false, MOBILE: true, MOBILEDEVICE. true, OPERA: false, QQ: false, QQBROWSER: false, TRIDENT: false, WEBKIT: true, WEIXIN: false }

+

Will be refactored for the next major release

+

1.0.1

+
  • Parameters

    • name: string = ''

      optional, e.g. pass in MicroMessenger to return whether it is the built-in browser of Weixin

      +
    • userAgent: string = navigator.userAgent

      optional, pass in a custom ua, default takes the browser's navigator.userAgent

      +

    Returns
        | boolean
        | {
            IE: boolean;
            GECKO: boolean;
            WEBKIT: boolean;
            OPERA: boolean;
            TRIDENT: boolean;
            MOBILE: boolean;
            IOS: boolean;
            ANDROID: boolean;
            IPHONE: boolean;
            IPAD: boolean;
            QQBROWSER: boolean;
            WEIXIN: boolean;
            QQ: null
            | RegExpMatchArray;
        }

      +
    • the common ua match table, if name is passed, then returns whether the terminal matches true/false
    • +
    +
diff --git a/functions/clone.html b/functions/clone.html new file mode 100644 index 0000000..d236685 --- /dev/null +++ b/functions/clone.html @@ -0,0 +1,10 @@ +clone | JS-COOL DOCS - v5.23.1

Function clone

  • deep clone (Buffer, Promise, Set, Map are not supported)

    +

    Type Parameters

    • T = any

    Parameters

    • parent: T

      source object

      +

    Returns T

      +
    • new object
    • +
    +
    const source = { a: 100, reg: /\d+/g, arr: [1, 2] }
    const res = clone(source)
    // { a: 100, reg: /\d+/g, arr: [1, 2] } +
    + +

    5.15.0

    +
diff --git a/functions/compareVersion.html b/functions/compareVersion.html new file mode 100644 index 0000000..a9e2838 --- /dev/null +++ b/functions/compareVersion.html @@ -0,0 +1,9 @@ +compareVersion | JS-COOL DOCS - v5.23.1

Function compareVersion

  • Version number size comparison, tag version: rc > beta > alpha > other

    +

    Parameters

    • input: string

      input version

      +
    • compare: string

      compare version

      +

    Returns -1 | 0 | 1

    1/0/-1

    +
    compareVersion('1.11.0', '1.9.9')
    // => 1: 1=Version 1.11.0 is newer than 1.9.9

    compareVersion('1.11.0', '1.11.0')
    // => 0: 0=Versions 1.11.0 and 1.11.0 are the same

    compareVersion('1.11.0', '1.99.0')
    // => -1: -1=Version 1.11.0 is older than 1.99.0

    compareVersion('1.0.0.0.0.10', '1.0')
    // => -1

    // compare tag version: rc > beta > alpha > other
    compareVersion('1.11.0', '1.11.0-beta.1')
    // => -1

    compareVersion('1.11.0-beta.1', '1.11.0')
    // => -1

    compareVersion('1.11.0-beta.10', '1.11.0-beta.10')
    // => 0

    compareVersion('1.11.0-alpha.10', '1.11.0-beta.1')
    // => -1

    compareVersion('1.11.0-alpha.10', '1.11.0-rc.1')
    // => -1

    compareVersion('1.11.0-tag.10', '1.11.0-alpha.1')
    // => -1

    compareVersion('1.11.0-tag.10', '1.11.0-tag.1')
    // => 1

    compareVersion('1.11.0-release.10', '1.11.0-tag.1')
    // => 1 +
    + +

    4.7.0

    +
diff --git a/functions/complement.html b/functions/complement.html new file mode 100644 index 0000000..6a4e379 --- /dev/null +++ b/functions/complement.html @@ -0,0 +1,8 @@ +complement | JS-COOL DOCS - v5.23.1

Function complement

  • Find the complement of multiple arrays

    +

    Type Parameters

    • T = unknown

    Parameters

    • ...args: T[][]

      arguments

      +

    Returns T[]

    array

    +
    complement([1, 2], [2, '33'], [2]) // [1, '33']
    +
    + +

    2.2.1

    +
diff --git a/functions/contains.html b/functions/contains.html new file mode 100644 index 0000000..df83b90 --- /dev/null +++ b/functions/contains.html @@ -0,0 +1,9 @@ +contains | JS-COOL DOCS - v5.23.1

Function contains

  • Whether the array contains the specified element

    +

    Parameters

    • arr: any[]

      the target array

      +
    • item: any

      the target to find

      +

    Returns boolean

    boolean

    +
    contains([1, 2], 2) // true
    contains([1, 2], 3) // false +
    + +

    2.2.1

    +
diff --git a/functions/copy.html b/functions/copy.html new file mode 100644 index 0000000..350f80b --- /dev/null +++ b/functions/copy.html @@ -0,0 +1,7 @@ +copy | JS-COOL DOCS - v5.23.1

Function copy

  • copy to clipboard

    +

    Parameters

    • value: any

      any target

      +

    Returns undefined | boolean

      +
    • target is Object
    • +
    +

    5.0.0

    +
diff --git a/functions/cutCHSString.html b/functions/cutCHSString.html new file mode 100644 index 0000000..b862736 --- /dev/null +++ b/functions/cutCHSString.html @@ -0,0 +1,7 @@ +cutCHSString | JS-COOL DOCS - v5.23.1

Function cutCHSString

  • Intercept string, Chinese counts as 2 bytes

    +

    Parameters

    • str: string

      the string to be intercepted

      +
    • len: number = str.length
    • hasDot: boolean = false

    Returns string

      +
    • the intercepted string
    • +
    +

    1.0.1

    +
diff --git a/functions/dash2Camel.html b/functions/dash2Camel.html new file mode 100644 index 0000000..851240e --- /dev/null +++ b/functions/dash2Camel.html @@ -0,0 +1,7 @@ +dash2Camel | JS-COOL DOCS - v5.23.1

Function dash2Camel

  • Converts -spaced and all lowercase Dash patterns to humped strings

    +

    Parameters

    • string: string

      the string to be converted

      +

    Returns string

      +
    • the converted string
    • +
    +

    1.0.1

    +
diff --git a/functions/decodeBase64.html b/functions/decodeBase64.html new file mode 100644 index 0000000..b539d00 --- /dev/null +++ b/functions/decodeBase64.html @@ -0,0 +1,5 @@ +decodeBase64 | JS-COOL DOCS - v5.23.1

Function decodeBase64

  • base64 decoding

    +

    Parameters

    • input: string

      the string to be decoded

      +

    Returns string

    decoded string

    +

    1.0.1

    +
diff --git a/functions/decodeUtf8.html b/functions/decodeUtf8.html new file mode 100644 index 0000000..b30841c --- /dev/null +++ b/functions/decodeUtf8.html @@ -0,0 +1,4 @@ +decodeUtf8 | JS-COOL DOCS - v5.23.1

Function decodeUtf8

  • Decoding Utf8

    +

    Parameters

    • utftext: string

    Returns string

    decoded string

    +

    1.0.1

    +
diff --git a/functions/delCache.html b/functions/delCache.html new file mode 100644 index 0000000..f2afde0 --- /dev/null +++ b/functions/delCache.html @@ -0,0 +1,4 @@ +delCache | JS-COOL DOCS - v5.23.1

Function delCache

  • Delete localStorage

    +

    Parameters

    • name: string

      name

      +

    Returns void

    1.0.2

    +
diff --git a/functions/delCookie.html b/functions/delCookie.html new file mode 100644 index 0000000..7d4e1ae --- /dev/null +++ b/functions/delCookie.html @@ -0,0 +1,4 @@ +delCookie | JS-COOL DOCS - v5.23.1

Function delCookie

  • Delete cookie

    +

    Parameters

    • name: string

      cookie name

      +

    Returns void

    1.0.2

    +
diff --git a/functions/delSession.html b/functions/delSession.html new file mode 100644 index 0000000..bdb1bc8 --- /dev/null +++ b/functions/delSession.html @@ -0,0 +1,4 @@ +delSession | JS-COOL DOCS - v5.23.1

Function delSession

  • Delete sessionStorage

    +

    Parameters

    • name: string

      name

      +

    Returns void

    1.0.2

    +
diff --git a/functions/delay.html b/functions/delay.html new file mode 100644 index 0000000..a2916dd --- /dev/null +++ b/functions/delay.html @@ -0,0 +1,4 @@ +delay | JS-COOL DOCS - v5.23.1

Function delay

  • debounce & throttle

    +

    Returns {
        map: any;
        register(id: string, fn: AnyFunction, time: number, boo: boolean): void;
        destroy(id: string): void;
    }

    class

    +

    1.0.2

    +
diff --git a/functions/download.html b/functions/download.html new file mode 100644 index 0000000..5b437e8 --- /dev/null +++ b/functions/download.html @@ -0,0 +1,11 @@ +download | JS-COOL DOCS - v5.23.1

Function download

  • Several ways of file downloading:

    +
      +
    1. For file formats that some browsers do not recognize. Enter the file URL in the address bar, window.location.href = URL, window.open(URL);
    2. +
    3. using a tag download attribute (or js create a tag);
    4. +
    5. browser-recognizable pdf, txt files, back-end compatible with handling attachment;
    6. +
    7. add token in the header for authenticated download, use XmlHttpRequest to want to backend to launch the request
    8. +
    +

    Parameters

    • url: string

      link

      +
    • filename: string

      filename

      +
    • Optionaltype: string

      download type 'href','open','download','request'

      +

    Returns void

diff --git a/functions/encodeBase64.html b/functions/encodeBase64.html new file mode 100644 index 0000000..617ecb6 --- /dev/null +++ b/functions/encodeBase64.html @@ -0,0 +1,7 @@ +encodeBase64 | JS-COOL DOCS - v5.23.1

Function encodeBase64

  • String, number to base64

    +

    Parameters

    • input: string

      the string to be encoded

      +

    Returns string

      +
    • the BASE64 encoding
    • +
    +

    1.0.1

    +
diff --git a/functions/encodeUtf8.html b/functions/encodeUtf8.html new file mode 100644 index 0000000..3565539 --- /dev/null +++ b/functions/encodeUtf8.html @@ -0,0 +1,6 @@ +encodeUtf8 | JS-COOL DOCS - v5.23.1

Function encodeUtf8

  • Encoding Utf8

    +

    Parameters

    • string: string

    Returns string

      +
    • the UTF-8 encoding
    • +
    +

    1.0.1

    +
diff --git a/functions/escape.html b/functions/escape.html new file mode 100644 index 0000000..ea44374 --- /dev/null +++ b/functions/escape.html @@ -0,0 +1,10 @@ +escape | JS-COOL DOCS - v5.23.1

Function escape

  • Escaping HTML Special Characters

    +

    Parameters

    • string: string

      string with html tags

      +

    Returns string

      +
    • newString
    • +
    +
    escape('<div>test<br />string</div>')
    // '&lt;div&gt;test&lt;br /&gt;string&lt;/div&gt;' +
    + +

    5.5.0

    +
diff --git a/functions/extend.html b/functions/extend.html new file mode 100644 index 0000000..ab86ab6 --- /dev/null +++ b/functions/extend.html @@ -0,0 +1,17 @@ +extend | JS-COOL DOCS - v5.23.1

Function extend

diff --git a/functions/fileToBase64.html b/functions/fileToBase64.html new file mode 100644 index 0000000..b43eeca --- /dev/null +++ b/functions/fileToBase64.html @@ -0,0 +1,7 @@ +fileToBase64 | JS-COOL DOCS - v5.23.1

Function fileToBase64

  • file to base64

    +

    Parameters

    • input: File

      file data

      +

    Returns Promise<string | null>

      +
    • base64 string
    • +
    +

    5.13.0

    +
diff --git a/functions/fillIPv6.html b/functions/fillIPv6.html new file mode 100644 index 0000000..65835be --- /dev/null +++ b/functions/fillIPv6.html @@ -0,0 +1,9 @@ +fillIPv6 | JS-COOL DOCS - v5.23.1

Function fillIPv6

  • Read full IPv6

    +

    Parameters

    • ip: string

    Returns string

      +
    • string
    • +
    +
    fillIPv6('2409:8005:800::2')
    // '2409:8005:0800:0000:0000:0000:0000:0002'

    fillIPv6('2409:8005:800::1c')
    // '2409:8005:0800:0000:0000:0000:0000:001c' +
    + +

    2.2.2

    +
diff --git a/functions/fingerprint.html b/functions/fingerprint.html new file mode 100644 index 0000000..0cc95a6 --- /dev/null +++ b/functions/fingerprint.html @@ -0,0 +1,7 @@ +fingerprint | JS-COOL DOCS - v5.23.1

Function fingerprint

  • Generating Browser Fingerprints

    +

    Parameters

    • Optionaldomain: string

      key string, default: location.host

      +

    Returns null | string

      +
    • fingerprint
    • +
    +

    5.2.0

    +
diff --git a/functions/fixNumber.html b/functions/fixNumber.html new file mode 100644 index 0000000..602e89c --- /dev/null +++ b/functions/fixNumber.html @@ -0,0 +1,11 @@ +fixNumber | JS-COOL DOCS - v5.23.1

Function fixNumber

  • Intercept the decimal places, do not fill in the missing 0

    +

    Parameters

    • number: string | number

      the number of digits to be processed, required

      +
    • n: number = 2

      the number of decimal places to keep, default is 2

      +

    Returns number

      +
    • the new number
    • +
    +
    fixNumber('100.888')
    // 100.88

    fixNumber('100.8', 2)
    // 100.8

    fixNumber('100.8888', 3)
    // 100.888 +
    + +

    1.0.2

    +
diff --git a/functions/getAppVersion.html b/functions/getAppVersion.html new file mode 100644 index 0000000..f4ee2ee --- /dev/null +++ b/functions/getAppVersion.html @@ -0,0 +1,8 @@ +getAppVersion | JS-COOL DOCS - v5.23.1

Function getAppVersion

  • Get the APP version number

    +

    Parameters

    • appName: string

      app name

      +
    • OptionalwithApp: boolean

      whether to bring the name

      +
    • OptionaluserAgent: string

      ua, allowed to be undefined, default is navigator.userAgent

      +

    Returns string | boolean | null

    null/true/false

    +

    please use 'appVersion' instead

    +

    1.0.1

    +
diff --git a/functions/getCHSLength.html b/functions/getCHSLength.html new file mode 100644 index 0000000..490b709 --- /dev/null +++ b/functions/getCHSLength.html @@ -0,0 +1,10 @@ +getCHSLength | JS-COOL DOCS - v5.23.1

Function getCHSLength

  • Get the length of the text, Chinese counts as 2 bytes

    +

    Parameters

    • str: string

      string

      +

    Returns number

      +
    • length
    • +
    +
    getCHSLength('测试')
    // 2 +
    + +

    1.0.1

    +
diff --git a/functions/getCache.html b/functions/getCache.html new file mode 100644 index 0000000..02602e7 --- /dev/null +++ b/functions/getCache.html @@ -0,0 +1,10 @@ +getCache | JS-COOL DOCS - v5.23.1

Function getCache

  • Get the cache, if the deposited is Object, the retrieved is also Object, no need to convert again

    +

    Parameters

    • name: string

      cache name

      +

    Returns any

      +
    • data, if it's an object, it's also an object
    • +
    +
    const data1 = 100
    const data2 = { a: 10 }
    const data3 = null

    setCache('data1', data1)
    setCache('data2', data2)
    setCache('data3', data3)

    getCache('data1') // 100
    getCache('data2') // {a:10}
    getCache('data3') // null

    getCache('data4') // null +
    + +

    1.0.2

    +
diff --git a/functions/getCookie.html b/functions/getCookie.html new file mode 100644 index 0000000..3de88cb --- /dev/null +++ b/functions/getCookie.html @@ -0,0 +1,10 @@ +getCookie | JS-COOL DOCS - v5.23.1

Function getCookie

  • Read cookie by name

    +

    Parameters

    • name: string

      cookie name

      +

    Returns any

      +
    • the cookie string
    • +
    +
    getCookie('data1')
    // 100 +
    + +

    1.0.2

    +
diff --git a/functions/getCookies.html b/functions/getCookies.html new file mode 100644 index 0000000..9a9bb88 --- /dev/null +++ b/functions/getCookies.html @@ -0,0 +1,9 @@ +getCookies | JS-COOL DOCS - v5.23.1

Function getCookies

  • Read all cookies

    +

    Returns Record<string, string>

      +
    • the cookie values
    • +
    +
    getCookies()
    // \{ token: 'xxx', name: 'saqqdy' \} +
    + +

    5.6.0

    +
diff --git a/functions/getDirParam.html b/functions/getDirParam.html new file mode 100644 index 0000000..e01149a --- /dev/null +++ b/functions/getDirParam.html @@ -0,0 +1,8 @@ +getDirParam | JS-COOL DOCS - v5.23.1

Function getDirParam

  • Get directory form URL parameters

    +

    Parameters

    • url: string

      pass in the url address

      +

    Returns DirParamType

      +
    • parameter object
    • +
    +

    It will be refactored and renamed getDirParams in the next major release.

    +

    1.0.1

    +
diff --git a/functions/getFileType.html b/functions/getFileType.html new file mode 100644 index 0000000..a8a1d40 --- /dev/null +++ b/functions/getFileType.html @@ -0,0 +1,8 @@ +getFileType | JS-COOL DOCS - v5.23.1

Function getFileType

  • Determine file type based on link suffix

    +

    Parameters

    • url: string

      file url

      +

    Returns {
        suffix: string;
        type:
            | "audio"
            | "video"
            | "image"
            | "other"
            | "word"
            | "txt"
            | "excel"
            | "pdf"
            | "ppt"
            | "zip";
    }

    result

    +
    getFileType('/name.png')
    // { "suffix": "png", "type": "image" }

    getFileType('/name.PDF')
    // { "suffix": "pdf", "type": "pdf" }

    getFileType('/name.xyz')
    // { "suffix": "xyz", "type": "other" } +
    + +

    5.11.0

    +
diff --git a/functions/getNumber.html b/functions/getNumber.html new file mode 100644 index 0000000..1ad76c1 --- /dev/null +++ b/functions/getNumber.html @@ -0,0 +1,10 @@ +getNumber | JS-COOL DOCS - v5.23.1

Function getNumber

  • Get the number in the string

    +

    Parameters

    • string: string

      pass in a string with a number

      +

    Returns string

      +
    • a pure numeric string
    • +
    +
    getNumber('Chrome123.33')
    // '123.33'.

    getNumber('234test.88')
    // '234.88'. +
    + +

    1.0.1

    +
diff --git a/functions/getOsVersion.html b/functions/getOsVersion.html new file mode 100644 index 0000000..2455776 --- /dev/null +++ b/functions/getOsVersion.html @@ -0,0 +1,13 @@ +getOsVersion | JS-COOL DOCS - v5.23.1

Function getOsVersion

  • Get the phone system version

    +

    Parameters

    • osName: string

      system type string Android, iPod, iWatch or iPhone

      +
    • OptionalwithOS: boolean

      whether to bring the name

      +
    • OptionaluserAgent: string

      ua, allowed to be undefined, default takes navigator.userAgent

      +

    Returns string | boolean | null

      +
    • null/true/false
    • +
    +
    getOsVersion('iPhone')
    // '13.2.3'

    getOsVersion('iPhone', true)
    // 'iPhone/13.2.3' +
    + +

    please use 'osVersion' instead

    +

    1.0.1

    +
diff --git a/functions/getProperty.html b/functions/getProperty.html new file mode 100644 index 0000000..23aca04 --- /dev/null +++ b/functions/getProperty.html @@ -0,0 +1,19 @@ +getProperty | JS-COOL DOCS - v5.23.1

Function getProperty

  • Get array, object property values based on path string

    +

    Type Parameters

    • T extends Record<string, any>

    Parameters

    • target: T

      target array, object

      +
    • prop: string | () => string

      query target, can pass function

      +
    • OptionaldefaultValue: any

      default value

      +

    Returns any

    result

    +
    const target = {
    a: 1,
    b: [{
    c: 2
    d: NaN
    }]
    }
    getProperty(target, 'a') // 1
    getProperty(target, 'd', 100) // 100
    getProperty(target, 'b[0].c') // 2
    getProperty(target, 'b[0].d', 100) // 100
    getProperty(target, () => 'a') // 1 +
    + +

    2.2.4

    +
  • Get array, object property values based on path string

    +

    Type Parameters

    • T extends any[]

    Parameters

    • target: T

      target array, object

      +
    • prop: string | () => string

      query target, can pass function

      +
    • OptionaldefaultValue: any

      default value

      +

    Returns any

    result

    +
    const target = {
    a: 1,
    b: [{
    c: 2
    d: NaN
    }]
    }
    getProperty(target, 'a') // 1
    getProperty(target, 'd', 100) // 100
    getProperty(target, 'b[0].c') // 2
    getProperty(target, 'b[0].d', 100) // 100
    getProperty(target, () => 'a') // 1 +
    + +

    2.2.4

    +
diff --git a/functions/getQueryParam.html b/functions/getQueryParam.html new file mode 100644 index 0000000..b1cc7b5 --- /dev/null +++ b/functions/getQueryParam.html @@ -0,0 +1,20 @@ +getQueryParam | JS-COOL DOCS - v5.23.1

Function getQueryParam

  • Get a single query parameter (behind "#")

    +

    Parameters

    • key: string

      key name

      +

    Returns string | undefined

      +
    • result
    • +
    +
    getQueryParam('key1')
    // key1 => xxx

    getQueryParam('key1', 'https://test.com?key1=100#/home?key1=200')
    // key1 => 200 +
    + +

    5.0.0

    +
  • Get a single query parameter (behind "#")

    +

    Parameters

    • key: string

      key name

      +
    • url: string

      pass in the url string

      +

    Returns string | undefined

      +
    • result
    • +
    +
    getQueryParam('key1')
    // key1 => xxx

    getQueryParam('key1', 'https://test.com?key1=100#/home?key1=200')
    // key1 => 200 +
    + +

    5.0.0

    +
diff --git a/functions/getQueryParams.html b/functions/getQueryParams.html new file mode 100644 index 0000000..146218c --- /dev/null +++ b/functions/getQueryParams.html @@ -0,0 +1,29 @@ +getQueryParams | JS-COOL DOCS - v5.23.1

Function getQueryParams

  • Get all URL parameters (behind "#")

    +

    Parameters

    • url: string

      pass in the url string

      +

    Returns Record<string, string>

      +
    • result
    • +
    +
    getQueryParams('https://test.com?key1=100#/home?key1=200')
    // \{"key1":"200"\}

    getQueryParams('https://test.com?key1=100#/home?key1=200', true)
    // \{"key1":200\}

    getQueryParams(true)
    // \{"key1":200\} +
    + +

    5.0.0

    +
  • Get all URL parameters (behind "#")

    +

    Parameters

    • url: boolean

      pass in the url string

      +

    Returns Record<string, unknown>

      +
    • result
    • +
    +
    getQueryParams('https://test.com?key1=100#/home?key1=200')
    // \{"key1":"200"\}

    getQueryParams('https://test.com?key1=100#/home?key1=200', true)
    // \{"key1":200\}

    getQueryParams(true)
    // \{"key1":200\} +
    + +

    5.0.0

    +
  • Get all URL parameters (behind "#")

    +

    Parameters

    • url: string

      pass in the url string

      +
    • covert: boolean

      Converts a specific string to a corresponding value (Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)

      +

    Returns Record<string, unknown>

      +
    • result
    • +
    +
    getQueryParams('https://test.com?key1=100#/home?key1=200')
    // \{"key1":"200"\}

    getQueryParams('https://test.com?key1=100#/home?key1=200', true)
    // \{"key1":200\}

    getQueryParams(true)
    // \{"key1":200\} +
    + +

    5.0.0

    +
diff --git a/functions/getScrollPosition.html b/functions/getScrollPosition.html new file mode 100644 index 0000000..2687fbc --- /dev/null +++ b/functions/getScrollPosition.html @@ -0,0 +1,7 @@ +getScrollPosition | JS-COOL DOCS - v5.23.1

Function getScrollPosition

  • Get slide to top and bottom return 'top' 'bottom', recommend using limit flow

    +

    Returns undefined | "bottom" | "top"

      +
    • position
    • +
    +

    will be removed in the next major release.

    +

    1.0.2

    +
diff --git a/functions/getSession.html b/functions/getSession.html new file mode 100644 index 0000000..49e2e20 --- /dev/null +++ b/functions/getSession.html @@ -0,0 +1,10 @@ +getSession | JS-COOL DOCS - v5.23.1

Function getSession

  • Read sessionStorage

    +

    Parameters

    • name: string

      name

      +

    Returns any

      +
    • sessionStorage
    • +
    +
    const data1 = 100
    const data2 = { a: 10 }
    const data3 = null

    setSession('data1', data1)
    setSession('data2', data2)
    setSession('data3', data3)

    getSession('data1') // 100
    getSession('data2') // {a:10}
    getSession('data3') // null

    getSession('data4') // null +
    + +

    1.0.2

    +
diff --git a/functions/getType.html b/functions/getType.html new file mode 100644 index 0000000..a783a9b --- /dev/null +++ b/functions/getType.html @@ -0,0 +1,5 @@ +getType | JS-COOL DOCS - v5.23.1

Function getType

  • Get the target type

    +

    Type Parameters

    • T = any

    Parameters

    • target: T

      target

      +

    Returns
        | "string"
        | "number"
        | "bigint"
        | "boolean"
        | "symbol"
        | "undefined"
        | "object"
        | "function"
        | "window"
        | "error"
        | "promise"
        | "math"
        | "document"
        | "navigator"
        | "global"
        | "array"
        | "null"
        | "date"
        | "regexp"

    type

    +

    1.0.2

    +
diff --git a/functions/getUrlParam.html b/functions/getUrlParam.html new file mode 100644 index 0000000..0041820 --- /dev/null +++ b/functions/getUrlParam.html @@ -0,0 +1,20 @@ +getUrlParam | JS-COOL DOCS - v5.23.1

Function getUrlParam

  • Get a single URL parameter (from the "location.search", before "#")

    +

    Parameters

    • key: string

      key name

      +

    Returns string | undefined

      +
    • result
    • +
    +
    getUrlParam('key1')
    // key1 => xxx

    getUrlParam('key1', 'https://test.com?key1=100#/home?key1=200')
    // key1 => 100 +
    + +

    5.0.0

    +
  • Get a single URL parameter (from the "location.search", before "#")

    +

    Parameters

    • key: string

      key name

      +
    • url: string

      pass in the url string

      +

    Returns string | undefined

      +
    • result
    • +
    +
    getUrlParam('key1')
    // key1 => xxx

    getUrlParam('key1', 'https://test.com?key1=100#/home?key1=200')
    // key1 => 100 +
    + +

    5.0.0

    +
diff --git a/functions/getUrlParams.html b/functions/getUrlParams.html new file mode 100644 index 0000000..100efe7 --- /dev/null +++ b/functions/getUrlParams.html @@ -0,0 +1,29 @@ +getUrlParams | JS-COOL DOCS - v5.23.1

Function getUrlParams

  • Get all URL parameters (from the "location.search", before "#")

    +

    Parameters

    • url: string

      pass in the url string

      +

    Returns Record<string, string>

      +
    • result
    • +
    +
    getUrlParams('https://test.com?key1=100#/home?key1=200')
    // \{"key1":"100"\}

    getUrlParams('https://test.com?key1=100#/home?key1=200', true)
    // \{"key1":100\}

    getUrlParams(true)
    // \{"key1":100\} +
    + +

    5.0.0

    +
  • Get all URL parameters (from the "location.search", before "#")

    +

    Parameters

    • url: boolean

      pass in the url string

      +

    Returns Record<string, unknown>

      +
    • result
    • +
    +
    getUrlParams('https://test.com?key1=100#/home?key1=200')
    // \{"key1":"100"\}

    getUrlParams('https://test.com?key1=100#/home?key1=200', true)
    // \{"key1":100\}

    getUrlParams(true)
    // \{"key1":100\} +
    + +

    5.0.0

    +
  • Get all URL parameters (from the "location.search", before "#")

    +

    Parameters

    • url: string

      pass in the url string

      +
    • covert: boolean

      Converts a specific string to a corresponding value (Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)

      +

    Returns Record<string, unknown>

      +
    • result
    • +
    +
    getUrlParams('https://test.com?key1=100#/home?key1=200')
    // \{"key1":"100"\}

    getUrlParams('https://test.com?key1=100#/home?key1=200', true)
    // \{"key1":100\}

    getUrlParams(true)
    // \{"key1":100\} +
    + +

    5.0.0

    +
diff --git a/functions/intersect.html b/functions/intersect.html new file mode 100644 index 0000000..2c4e694 --- /dev/null +++ b/functions/intersect.html @@ -0,0 +1,10 @@ +intersect | JS-COOL DOCS - v5.23.1

Function intersect

  • Find the intersection of multiple arrays

    +

    Type Parameters

    • T = unknown

    Parameters

    • ...args: T[][]

      arguments

      +

    Returns T[]

      +
    • new array
    • +
    +
    intersect([1, 2], [2, 3, 4], [2, 8], [2, '33']) // [2]
    +
    + +

    2.2.1

    +
diff --git a/functions/isArray.html b/functions/isArray.html new file mode 100644 index 0000000..afdabaa --- /dev/null +++ b/functions/isArray.html @@ -0,0 +1,10 @@ +isArray | JS-COOL DOCS - v5.23.1

Function isArray

  • Determine if it is an array

    +

    Parameters

    • target: any

      any target

      +

    Returns target is any[]

      +
    • target is Array
    • +
    +
    isArray([]) // true
    +
    + +

    1.0.2

    +
diff --git a/functions/isDarkMode.html b/functions/isDarkMode.html new file mode 100644 index 0000000..48a5d42 --- /dev/null +++ b/functions/isDarkMode.html @@ -0,0 +1,9 @@ +isDarkMode | JS-COOL DOCS - v5.23.1

Function isDarkMode

  • Determine if dark color mode

    +

    Returns boolean

      +
    • result
    • +
    +
    isDarkMode() // true
    +
    + +

    5.5.0

    +
diff --git a/functions/isDate.html b/functions/isDate.html new file mode 100644 index 0000000..eb84e03 --- /dev/null +++ b/functions/isDate.html @@ -0,0 +1,10 @@ +isDate | JS-COOL DOCS - v5.23.1

Function isDate

  • Determine if target is Date

    +

    Parameters

    • target: any

      any target

      +

    Returns target is Date

      +
    • target is Date
    • +
    +
    const now = new Date()

    isDate(now)
    // true +
    + +

    5.15.0

    +
diff --git a/functions/isDigitals.html b/functions/isDigitals.html new file mode 100644 index 0000000..bdf37bd --- /dev/null +++ b/functions/isDigitals.html @@ -0,0 +1,8 @@ +isDigitals | JS-COOL DOCS - v5.23.1

Function isDigitals

  • Whether or not it is a string consisting of numbers

    +

    Parameters

    • str: string

      the string to be tested

      +

    Returns boolean

      +
    • true/false
    • +
    +

    will be removed in the next major release.

    +

    1.0.1

    +
diff --git a/functions/isEqual.html b/functions/isEqual.html new file mode 100644 index 0000000..be6d9ea --- /dev/null +++ b/functions/isEqual.html @@ -0,0 +1,11 @@ +isEqual | JS-COOL DOCS - v5.23.1

Function isEqual

  • Determine if 2 objects are equal

    +

    Type Parameters

    • T
    • P

    Parameters

    • a: T

      source

      +
    • b: P

      compare

      +

    Returns boolean

      +
    • a equals to b
    • +
    +
    isEqual({ a: 22, b: {} }, { b: {}, a: 22 })
    // true

    isEqual([1, 2], [2, 1])
    // false

    isEqual(NaN, NaN)
    // true +
    + +

    5.12.0

    +
diff --git a/functions/isExitsFunction.html b/functions/isExitsFunction.html new file mode 100644 index 0000000..2176578 --- /dev/null +++ b/functions/isExitsFunction.html @@ -0,0 +1,10 @@ +isExitsFunction | JS-COOL DOCS - v5.23.1

Function isExitsFunction

  • The presence or absence of the specified function

    +

    Parameters

    • name: string

      incoming function name

      +

    Returns boolean

      +
    • true/false
    • +
    +
    isExitsFunction('test') // false
    isExitsFunction('console.log') // true +
    + +

    1.0.1

    +
diff --git a/functions/isExitsVariable.html b/functions/isExitsVariable.html new file mode 100644 index 0000000..4c4b49a --- /dev/null +++ b/functions/isExitsVariable.html @@ -0,0 +1,10 @@ +isExitsVariable | JS-COOL DOCS - v5.23.1

Function isExitsVariable

  • The presence or absence of the specified variable

    +

    Parameters

    • name: string

      variable name

      +

    Returns boolean

      +
    • true/false
    • +
    +
    isExitsVariable('test') // false
    isExitsVariable('window') // true +
    + +

    1.0.1

    +
diff --git a/functions/isIterable.html b/functions/isIterable.html new file mode 100644 index 0000000..a4bff0d --- /dev/null +++ b/functions/isIterable.html @@ -0,0 +1,10 @@ +isIterable | JS-COOL DOCS - v5.23.1

Function isIterable

  • Determine if it is iterable

    +

    Type Parameters

    • T = any

    Parameters

    • target: T | Iterable<T>

      any target

      +

    Returns target is Iterable<T>

      +
    • target is Array
    • +
    +
    isIterable([]) // true
    +
    + +

    5.7.0

    +
diff --git a/functions/isNumberBrowser.html b/functions/isNumberBrowser.html new file mode 100644 index 0000000..2f42cae --- /dev/null +++ b/functions/isNumberBrowser.html @@ -0,0 +1,10 @@ +isNumberBrowser | JS-COOL DOCS - v5.23.1

Function isNumberBrowser

  • Detect if the client is a 360 browser

    +

    Parameters

    • OptionaluserAgent: string

      ua, allowed to be undefined, default takes navigator.userAgent

      +

    Returns boolean

      +
    • result
    • +
    +
    // 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36 QIHU 360EE'
    // true

    // 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36'
    // true +
    + +

    5.22.0

    +
diff --git a/functions/isObject.html b/functions/isObject.html new file mode 100644 index 0000000..eda332d --- /dev/null +++ b/functions/isObject.html @@ -0,0 +1,10 @@ +isObject | JS-COOL DOCS - v5.23.1

Function isObject

  • Determine if target is an object

    +

    Parameters

    • target: any

      any target

      +

    Returns target is Object

      +
    • target is Object
    • +
    +
    isObject({}) // true
    +
    + +

    5.0.0

    +
diff --git a/functions/isPlainObject.html b/functions/isPlainObject.html new file mode 100644 index 0000000..cfdab49 --- /dev/null +++ b/functions/isPlainObject.html @@ -0,0 +1,10 @@ +isPlainObject | JS-COOL DOCS - v5.23.1

Function isPlainObject

  • Determine if target is an plain object

    +

    Parameters

    • target: unknown

      any target

      +

    Returns target is PlainObject

      +
    • target is plain Object
    • +
    +
    isPlainObject({}) // true
    isPlainObject(window) // false +
    + +

    5.0.0

    +
diff --git a/functions/isRegExp.html b/functions/isRegExp.html new file mode 100644 index 0000000..a899153 --- /dev/null +++ b/functions/isRegExp.html @@ -0,0 +1,10 @@ +isRegExp | JS-COOL DOCS - v5.23.1

Function isRegExp

  • Determine if target is RegExp

    +

    Parameters

    • target: any

      any target

      +

    Returns target is RegExp

      +
    • target is RegExp
    • +
    +
    isRegExp(/\d/) // true
    +
    + +

    5.15.0

    +
diff --git a/functions/isWindow.html b/functions/isWindow.html new file mode 100644 index 0000000..0aff998 --- /dev/null +++ b/functions/isWindow.html @@ -0,0 +1,10 @@ +isWindow | JS-COOL DOCS - v5.23.1

Function isWindow

  • Determine if target is an window object

    +

    Parameters

    • target: any

      any

      +

    Returns target is Window

      +
    • target is Window
    • +
    +
    isWindow({}) // false
    isWindow(window) // true +
    + +

    5.0.0

    +
diff --git a/functions/loadSource.html b/functions/loadSource.html new file mode 100644 index 0000000..27db457 --- /dev/null +++ b/functions/loadSource.html @@ -0,0 +1,7 @@ +loadSource | JS-COOL DOCS - v5.23.1

Function loadSource

  • Dynamic loading of resources, support js, images, css links, css style strings

    +

    Parameters

    • url: string

      link to the resource, type must be passed when passing in styleString

      +
    • option: string | SourceOptions

      parameters: attrs, props, force

      +

    Returns Promise<boolean | string>

      +
    • true|false|imgUrl
    • +
    +
diff --git a/functions/mapTemplate.html b/functions/mapTemplate.html new file mode 100644 index 0000000..46ff746 --- /dev/null +++ b/functions/mapTemplate.html @@ -0,0 +1,11 @@ +mapTemplate | JS-COOL DOCS - v5.23.1

Function mapTemplate

  • Replacing specific data in a template string, support ${xxxx} {{xxxx}} and {xxxx}

    +

    Parameters

    • tmp: string

      Template string

      +
    • data: Record<string, unknown> | (value: string) => unknown

      Template data of map function

      +

    Returns string

      +
    • result
    • +
    +
    const tmp = "My name is ${name}, I'm ${age} years old."
    mapTemplate(tmp, {
    name: 'saqqdy',
    age: 18
    })
    // My name is saqqdy, I'm 18 years old.

    mapTemplate(tmp, key => ({ name: 'saqqdy', age: 28 }[key]))
    // My name is saqqdy, I'm 28 years old.

    const tmp = "My name is {{name}}, I'm {{age}} years old."
    mapTemplate(tmp, {
    name: 'saqqdy',
    age: 18
    })
    // My name is saqqdy, I'm 18 years old. +
    + +

    5.9.0

    +
diff --git a/functions/minus.html b/functions/minus.html new file mode 100644 index 0000000..d3c38c0 --- /dev/null +++ b/functions/minus.html @@ -0,0 +1,10 @@ +minus | JS-COOL DOCS - v5.23.1

Function minus

  • Find the set of differences of multiple arrays that belong to A but not to B/C/D... of the elements of

    +

    Type Parameters

    • T = unknown

    Parameters

    • ...args: T[][]

      arguments

      +

    Returns T[]

      +
    • new array
    • +
    +
    minus([1, 2], [2, '33'], [2, 4]) // [1]
    +
    + +

    2.2.1

    +
diff --git a/functions/mountCss.html b/functions/mountCss.html new file mode 100644 index 0000000..d66d925 --- /dev/null +++ b/functions/mountCss.html @@ -0,0 +1,7 @@ +mountCss | JS-COOL DOCS - v5.23.1

Function mountCss

  • Dynamic loading of css link resources

    +

    Parameters

    • src: string

      resource address

      +
    • Optionaloption: CssOptions

      parameters: attrs, props, force

      +

    Returns Promise<boolean>

      +
    • result
    • +
    +
diff --git a/functions/mountImg.html b/functions/mountImg.html new file mode 100644 index 0000000..95203f9 --- /dev/null +++ b/functions/mountImg.html @@ -0,0 +1,7 @@ +mountImg | JS-COOL DOCS - v5.23.1

Function mountImg

  • Dynamic loading of image resources

    +

    Parameters

    • src: string

      resource address

      +
    • Optionaloption: ImgOptions

      parameters: attrs, props, force

      +

    Returns Promise<boolean | string>

      +
    • result
    • +
    +
diff --git a/functions/mountJs.html b/functions/mountJs.html new file mode 100644 index 0000000..f8d7b21 --- /dev/null +++ b/functions/mountJs.html @@ -0,0 +1,7 @@ +mountJs | JS-COOL DOCS - v5.23.1

Function mountJs

  • Dynamic loading of js linked resources

    +

    Parameters

    • src: string

      resource address

      +
    • Optionaloption: JsOptions

      parameters: attrs, props, force

      +

    Returns Promise<boolean>

      +
    • result
    • +
    +
diff --git a/functions/mountStyle.html b/functions/mountStyle.html new file mode 100644 index 0000000..7bc2763 --- /dev/null +++ b/functions/mountStyle.html @@ -0,0 +1,6 @@ +mountStyle | JS-COOL DOCS - v5.23.1

Function mountStyle

  • Dynamic loading of css styles

    +

    Parameters

    • css: string
    • Optionaloption: StyleOptions

      parameters: attrs, props

      +

    Returns Promise<boolean>

      +
    • results
    • +
    +
diff --git a/functions/nextIndex.html b/functions/nextIndex.html new file mode 100644 index 0000000..a047728 --- /dev/null +++ b/functions/nextIndex.html @@ -0,0 +1,11 @@ +nextIndex | JS-COOL DOCS - v5.23.1

Function nextIndex

  • Return the next zIndex value

    +

    Parameters

    • min: number = 5000

      optional, minimum value

      +
    • max: number = 10000

      optional, maximum value

      +

    Returns number

      +
    • number
    • +
    +
    nextIndex()
    // 1

    nextIndex(1000)
    // 1001

    nextIndex(10, 100)
    // 100 +
    + +

    1.0.2

    +
diff --git a/functions/nextVersion.html b/functions/nextVersion.html new file mode 100644 index 0000000..adb8e38 --- /dev/null +++ b/functions/nextVersion.html @@ -0,0 +1,12 @@ +nextVersion | JS-COOL DOCS - v5.23.1

Function nextVersion

  • return the next version, Only version types with no more than 3 digits are supported. (Follow the npm version rules)

    +

    Parameters

    • version: string

      version(like: 1.0.0)

      +
    • Optionaltype:
          | "major"
          | "minor"
          | "patch"
          | "premajor"
          | "preminor"
          | "prepatch"
          | "prerelease"

      optional, version type

      +
    • preid: string = ''

      optional, prerelease id

      +

    Returns string

      +
    • new version
    • +
    +
    nextVersion('1.2.33') // 1.2.34

    nextVersion('1.2.33', 'major') // 2.0.0

    nextVersion('1.2.33', 'premajor', 'alpha') // 2.0.0-alpha.1 +
    + +

    5.10.0

    +
diff --git a/functions/openUrl.html b/functions/openUrl.html new file mode 100644 index 0000000..fe00f74 --- /dev/null +++ b/functions/openUrl.html @@ -0,0 +1,4 @@ +openUrl | JS-COOL DOCS - v5.23.1

Function openUrl

  • Open link in new tab (file jump download if browser can't parse)

    +

    Parameters

    • url: string

      link

      +

    Returns void

    1.0.6

    +
diff --git a/functions/osVersion-1.html b/functions/osVersion-1.html new file mode 100644 index 0000000..3b4bff8 --- /dev/null +++ b/functions/osVersion-1.html @@ -0,0 +1,8 @@ +osVersion | JS-COOL DOCS - v5.23.1

Function osVersion

  • Get the system name and version

    +

    Parameters

    • Optionalua: string

      ua or any ua like string, allowed to be undefined, default is navigator.userAgent

      +

    Returns OsVersion | null

    OsVersion|null

    +
    // ipad => 'Mozilla/5.0 (iPad; CPU OS 13_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/87.0.4280.77 Mobile/15E148 Safari/604.1'
    osVersion() // \{ name: 'iOS', version: '13.3' \}

    // iphone => 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1'
    osVersion() // \{ name: 'iOS', version: '13.2.3' \}

    // mac os => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'
    osVersion() // \{ name: 'MacOS', version: '10.15.7' \}

    // windows => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'
    osVersion() // \{ name: 'Windows', version: '10.0' \}

    // windows xp => 'Mozilla/5.0 (Windows NT 5.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'
    osVersion() // \{ name: 'Windows', version: 'XP' \}

    // windows phone => 'Mozilla/5.0 (Windows Phone OS 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36'
    osVersion() // \{ name: 'WindowsPhone', version: '10.0' \}
    +
    + +

    5.1.0

    +
diff --git a/functions/parseUrlParam.html b/functions/parseUrlParam.html new file mode 100644 index 0000000..7d66d9c --- /dev/null +++ b/functions/parseUrlParam.html @@ -0,0 +1,9 @@ +parseUrlParam | JS-COOL DOCS - v5.23.1

Function parseUrlParam

  • parse url params

    +

    Parameters

    • url: string

      url string (like: ?key1=value1&key2=value2)

      +
    • covert: boolean = false

      Converts a specific string to a corresponding value (Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)

      +

    Returns Record<string, unknown>

    object

    +
    parseUrlParam('?key1=100&key2=true&key3=null&key4=undefined&key5=NaN&key6=10.888&key7=Infinity&key8=test')
    // \{"key1":"100","key2":"true","key3":"null","key4":"undefined","key5":"NaN","key6":"10.888","key7":"Infinity","key8":"test"\}

    parseUrlParam('?key1=100&key2=true&key3=null&key4=undefined&key5=NaN&key6=10.888&key7=Infinity&key8=test', true)
    // \{"key1":100,"key2":true,"key3":null,"key5":NaN,"key6":10.888,"key7":Infinity,"key8":"test"\} +
    + +

    5.0.0

    +
diff --git a/functions/preloader.html b/functions/preloader.html new file mode 100644 index 0000000..cf2e7c6 --- /dev/null +++ b/functions/preloader.html @@ -0,0 +1,7 @@ +preloader | JS-COOL DOCS - v5.23.1

Function preloader

  • Image preloading

    +

    Parameters

    • images: string

      images url

      +

    Returns HTMLImageElement

    5.5.0

    +
  • Image preloading

    +

    Parameters

    • images: string[]

      images url

      +

    Returns Record<string, HTMLImageElement>

    5.5.0

    +
diff --git a/functions/promiseFactory.html b/functions/promiseFactory.html new file mode 100644 index 0000000..c2293e1 --- /dev/null +++ b/functions/promiseFactory.html @@ -0,0 +1,11 @@ +promiseFactory | JS-COOL DOCS - v5.23.1

Function promiseFactory

  • Convert an object to a promise like api

    +

    Type Parameters

    • T extends object

    Parameters

    • original: T

      original object

      +
    • resolver: () => Promise<any>

      resolver function

      +

    Returns T & PromiseLike<T>

      +
    • result
    • +
    +
    import { promiseFactory, waiting } from 'js-cool'

    function promise() {
    const stats = {
    value: 100
    }

    const resolver = () =>
    new Promise(resolve =>
    waiting(2000).then(() => {
    stats.value = 200
    resolve(stats)
    })
    )

    return promiseFactory(stats, resolver)
    }

    const res = promise() // res => 100
    const res = await promise() // res => 200 +
    + +

    5.10.0

    +
diff --git a/functions/punctualTimer.html b/functions/punctualTimer.html new file mode 100644 index 0000000..7d664b0 --- /dev/null +++ b/functions/punctualTimer.html @@ -0,0 +1,17 @@ +punctualTimer | JS-COOL DOCS - v5.23.1

Function punctualTimer

  • punctual setInterval

    +

    Type Parameters

    • TArgs extends any[]

    Parameters

    • handler: (args: void) => void

      A function to be executed after the timer expires.

      +
    • delay: number

      The time, in milliseconds that the timer should wait before the specified function or code is executed. If this parameter is omitted, a value of 0 is used, meaning execute "immediately", or more accurately, the next event cycle.

      +
    • Optionalargs: TArgs

      Additional arguments which are passed through to the function specified by handler.

      +

    Returns PunctualTimerReturns

    const printDate = () => console.log(new Date())
    const timer = punctualTimer(printDate, 1000)
    console.log(timer.count) // 10
    timer.clear() // clear punctualTimer or use clearTimeout(timer.timer) +
    + +

    5.18.0

    +
  • punctual setInterval

    +

    Type Parameters

    • TArgs extends any[]

    Parameters

    • handler: (...args: TArgs) => void

      A function to be executed after the timer expires.

      +
    • delay: number

      The time, in milliseconds that the timer should wait before the specified function or code is executed. If this parameter is omitted, a value of 0 is used, meaning execute "immediately", or more accurately, the next event cycle.

      +
    • Optionalargs: TArgs

      Additional arguments which are passed through to the function specified by handler.

      +

    Returns PunctualTimerReturns

    const printDate = () => console.log(new Date())
    const timer = punctualTimer(printDate, 1000)
    console.log(timer.count) // 10
    timer.clear() // clear punctualTimer or use clearTimeout(timer.timer) +
    + +

    5.18.0

    +
diff --git a/functions/randomColor.html b/functions/randomColor.html new file mode 100644 index 0000000..62358cc --- /dev/null +++ b/functions/randomColor.html @@ -0,0 +1,11 @@ +randomColor | JS-COOL DOCS - v5.23.1

Function randomColor

  • Generate random hexadecimal colors

    +

    Parameters

    • Optionalmin: number | [number, number, number]

      the minimum value of the random numbers, eg: [10, 10, 10]

      +
    • Optionalmax: number | [number, number, number]

      the maximum value of the random number, eg: [255, 255, 255]

      +

    Returns string

      +
    • result
    • +
    +
    randomColor()
    // #bf444b

    randomColor(200)
    // #d6e9d7

    randomColor(200, 255)
    // #d3f9e4

    randomColor([0, 0, 0], [255, 255, 255])
    // #d6e9d7 +
    + +

    5.5.0

    +
diff --git a/functions/randomNumber.html b/functions/randomNumber.html new file mode 100644 index 0000000..3f433ee --- /dev/null +++ b/functions/randomNumber.html @@ -0,0 +1,11 @@ +randomNumber | JS-COOL DOCS - v5.23.1

Function randomNumber

  • Get a random integer

    +

    Parameters

    • min: number = 1

      the minimum value of the random number

      +
    • max: number = 10

      the maximum value of the random number

      +

    Returns number

      +
    • random number
    • +
    +
    randomNumber()
    // 8

    randomNumber(0.1, 0.9)
    // 0.8 +
    + +

    5.0.0

    +
diff --git a/functions/randomNumbers.html b/functions/randomNumbers.html new file mode 100644 index 0000000..253bf92 --- /dev/null +++ b/functions/randomNumbers.html @@ -0,0 +1,11 @@ +randomNumbers | JS-COOL DOCS - v5.23.1

Function randomNumbers

  • Generate n random integers that sum to a fixed sum

    +

    Parameters

    • Optionaln: number

      Number of generated integers, default: 1

      +
    • Optionalsum: number

      Sum of generated integers, default: 100

      +
    • OptionalnoZero: boolean

    Returns number[]

      +
    • numbers
    • +
    +
    randomNumbers()
    // [8]

    randomNumbers(4, 5)
    // [1, 1, 2, 1]

    randomNumbers(4, 5, false)
    // [0, 1, 2, 2] +
    + +

    5.4.0

    +
diff --git a/functions/randomString.html b/functions/randomString.html new file mode 100644 index 0000000..457fbde --- /dev/null +++ b/functions/randomString.html @@ -0,0 +1,21 @@ +randomString | JS-COOL DOCS - v5.23.1

Function randomString

  • Get a random string

    +

    Parameters

    • Optionallen: number

      the length of the random string that needs to be obtained

      +
    • Optionaloptions: boolean | RandomStringOptions

      optional, randomString options

      +

    Returns string

      +
    • random string
    • +
    +
    // 1. No parameters are passed, a 32-bit (possibly) string containing upper and lower case letters and numbers is generated by default
    randomString()
    // PVSjz902EqYbmxaLtvDnggtnlvt5uFTZ

    // 2. Generate a 16-bit random string
    randomString(16)
    // coTgZy0mqqMJ1sMM

    // 3. Same effect as #2 above
    randomString({
    length: 16
    })
    // ngCI5aPqJm84t90d

    // 4. Generate containing special characters (old way of passing values, not recommended)
    randomString(true)
    // 0Uby@op3B-sK5]dHl4S|15As.OlHiNXd

    // 5. Same effect as #4 above (recommended)
    randomString({
    charTypes: ['uppercase', 'lowercase', 'number', 'special']
    })
    // m,2^vpkrE,F,DbcSFk0=vr&@DJ27j9XK

    // 6. Same effect as #4 above, Limit string length to 16 bits
    randomString(16, true)
    // dXz[J_sYM^3d8fnA

    // 7. Generate a 16-bit random number
    randomString({
    length: 16,
    charTypes: 'number'
    })
    // 7450026301030286

    // 8. Elimination of confusing characters: oOLl,9gq,Vv,Uu,I1
    randomString({
    length: 16,
    noConfuse: true
    })
    // 8DEGna8ppC4mqyew

    // 9. The generated random string must contain at least 1 character of each type of character specified, e.g. to generate a 16-bit password that must contain upper and lower case letters, numbers, and special characters.
    randomString({
    length: 16,
    strict: true
    })
    // PFYAPD5KFqOHIADL +
    + +

    5.0.0

    +
  • Get a random string

    +

    Parameters

    Returns string

      +
    • random string
    • +
    +
    // 1. No parameters are passed, a 32-bit (possibly) string containing upper and lower case letters and numbers is generated by default
    randomString()
    // PVSjz902EqYbmxaLtvDnggtnlvt5uFTZ

    // 2. Generate a 16-bit random string
    randomString(16)
    // coTgZy0mqqMJ1sMM

    // 3. Same effect as #2 above
    randomString({
    length: 16
    })
    // ngCI5aPqJm84t90d

    // 4. Generate containing special characters (old way of passing values, not recommended)
    randomString(true)
    // 0Uby@op3B-sK5]dHl4S|15As.OlHiNXd

    // 5. Same effect as #4 above (recommended)
    randomString({
    charTypes: ['uppercase', 'lowercase', 'number', 'special']
    })
    // m,2^vpkrE,F,DbcSFk0=vr&@DJ27j9XK

    // 6. Same effect as #4 above, Limit string length to 16 bits
    randomString(16, true)
    // dXz[J_sYM^3d8fnA

    // 7. Generate a 16-bit random number
    randomString({
    length: 16,
    charTypes: 'number'
    })
    // 7450026301030286

    // 8. Elimination of confusing characters: oOLl,9gq,Vv,Uu,I1
    randomString({
    length: 16,
    noConfuse: true
    })
    // 8DEGna8ppC4mqyew

    // 9. The generated random string must contain at least 1 character of each type of character specified, e.g. to generate a 16-bit password that must contain upper and lower case letters, numbers, and special characters.
    randomString({
    length: 16,
    strict: true
    })
    // PFYAPD5KFqOHIADL +
    + +

    5.0.0

    +
diff --git a/functions/removeEvent.html b/functions/removeEvent.html new file mode 100644 index 0000000..747a143 --- /dev/null +++ b/functions/removeEvent.html @@ -0,0 +1,6 @@ +removeEvent | JS-COOL DOCS - v5.23.1

Function removeEvent

  • removeEvent removes the event delegate created by addEvent

    +

    Parameters

    • element: AnyObject

      js dom object

      +
    • type: string

      The type of the event. No need to add on

      +
    • handler: AnyFunction

      Callback method.

      +

    Returns void

    1.0.2

    +
diff --git a/functions/safeParse.html b/functions/safeParse.html new file mode 100644 index 0000000..1745f41 --- /dev/null +++ b/functions/safeParse.html @@ -0,0 +1,10 @@ +safeParse | JS-COOL DOCS - v5.23.1

Function safeParse

  • Secure parsing of JSON strings

    +

    Parameters

    • data: string

      JSON string

      +
    • covert: boolean = true

      Whether to convert data, default: true

      +

    Returns any

      +
    • JSON Object
    • +
    +
    safeParse('100')
    // 100

    safeParse('{"a":"undefined","b":"NaN","c":"Infinity","d":"9007199254740993"}')
    // { b: NaN, c: Infinity, d: 9007199254740993n } +
    + +
diff --git a/functions/safeStringify.html b/functions/safeStringify.html new file mode 100644 index 0000000..e41dd37 --- /dev/null +++ b/functions/safeStringify.html @@ -0,0 +1,10 @@ +safeStringify | JS-COOL DOCS - v5.23.1

Function safeStringify

  • Secure stringify of JSON Object

    +

    Parameters

    • data: any

      JSON Object

      +
    • covert: boolean = true

      Whether to convert data, default: true

      +

    Returns string

      +
    • JSON String
    • +
    +
    safeStringify(100)
    // "100"

    safeStringify(undefined)
    // "undefined"

    safeStringify(NaN)
    // "NaN"

    safeStringify(Infinity)
    // "Infinity"

    safeStringify({ a: undefined, b: NaN, c: Infinity, d: BigInt(Number.MAX_SAFE_INTEGER) + 2n })
    // {"a":"undefined","b":"NaN","c":"Infinity","d":"9007199254740993"} +
    + +
diff --git a/functions/searchObject.html b/functions/searchObject.html new file mode 100644 index 0000000..e6fc860 --- /dev/null +++ b/functions/searchObject.html @@ -0,0 +1,10 @@ +searchObject | JS-COOL DOCS - v5.23.1

Function searchObject

  • tree object depth lookup

    +

    Parameters

    • tree: object | any[]

      tree object

      +
    • expression: any

      required Query method

      +
    • keySet: SearchKeySet

      optional Default subclass name, query name

      +
    • number: number = 0

      optional Number of lookups, if not passed, query all

      +

    Returns any[]

      +
    • the queried array
    • +
    +

    5.0.0

    +
diff --git a/functions/setCache.html b/functions/setCache.html new file mode 100644 index 0000000..2766a25 --- /dev/null +++ b/functions/setCache.html @@ -0,0 +1,9 @@ +setCache | JS-COOL DOCS - v5.23.1

Function setCache

  • Get the cache, if the deposited is Object, the retrieved is also Object, no need to convert again

    +

    Type Parameters

    • T = unknown

    Parameters

    • name: string

      cache name

      +
    • value: T

      cache data, can be passed directly into Object

      +
    • Optionalseconds: string | number

      cache time (seconds)

      +

    Returns void

    // set boolean
    setCache('boolean', true)

    // set object
    setCache('object', { name: 'saqqdy' })

    // set number, expires in 20 seconds
    setCache('number', 666, 20) +
    + +

    1.0.2

    +
diff --git a/functions/setCookie.html b/functions/setCookie.html new file mode 100644 index 0000000..34b55ce --- /dev/null +++ b/functions/setCookie.html @@ -0,0 +1,11 @@ +setCookie | JS-COOL DOCS - v5.23.1

Function setCookie

  • setCookie method for writing cookies

    +

    Type Parameters

    • T extends string | number | boolean

    Parameters

    • name: string

      cookie name

      +
    • value: T

      Set the value to be stored, either as an object or as a string

      +
    • seconds: string | number

      cookie validity default 1 day

      +
    • path: string = '/'

      path, default '/'

      +
    • samesite: boolean = true

      SameSite, default true

      +

    Returns void

    // expires in 86400 seconds
    setCookie('token', 'xxxxxx')

    // set to path
    setCookie('token', 'xxxxxx', 20, '/app')

    // enable samesite
    setCookie('number', 666, 20, '/', false) +
    + +

    1.0.2

    +
diff --git a/functions/setProperty.html b/functions/setProperty.html new file mode 100644 index 0000000..3bf6173 --- /dev/null +++ b/functions/setProperty.html @@ -0,0 +1,11 @@ +setProperty | JS-COOL DOCS - v5.23.1

Function setProperty

  • Set array, object property values based on path strings

    +

    Parameters

    • target: any

      target array, object

      +
    • prop: string | () => string

      set target, support function, 'a' | 'a[1].c'

      +
    • value: any

    Returns any

      +
    • the corresponding value
    • +
    +
    const target = {
    a: 1,
    b: [{
    c: 2
    }]
    }

    setProperty(target, 'a', 2)

    setProperty(target, 'b[0].c', 3)

    setProperty(target, () => 'a', 100) +
    + +

    2.7.0

    +
diff --git a/functions/setSession.html b/functions/setSession.html new file mode 100644 index 0000000..2db4051 --- /dev/null +++ b/functions/setSession.html @@ -0,0 +1,9 @@ +setSession | JS-COOL DOCS - v5.23.1

Function setSession

  • Write sessionStorage

    +

    Type Parameters

    • T = unknown

    Parameters

    • name: string

      name

      +
    • value: T

      Set the value to be stored, either as an object or as a string

      +
    • Optionalseconds: string | number

      the valid time

      +

    Returns void

    // set boolean
    setSession('boolean', true)

    // set object
    setSession('object', { name: 'saqqdy' })

    // set number, expires in 20 seconds
    setSession('number', 666, 20) +
    + +

    1.0.2

    +
diff --git a/functions/shuffle.html b/functions/shuffle.html new file mode 100644 index 0000000..ab9f503 --- /dev/null +++ b/functions/shuffle.html @@ -0,0 +1,21 @@ +shuffle | JS-COOL DOCS - v5.23.1

Function shuffle

  • shuffling algorithm, Reordering arrays or strings

    +

    Parameters

    • value: string

      arrays or strings

      +
    • Optionalsize: number

      new array or string length

      +

    Returns string

      +
    • result
    • +
    +
    const str = 'abcde'
    const arr = [1,2,3]

    shuffle(str)
    // cdbse

    shuffle(arr)
    // [3, 1, 2]

    shuffle(arr, 2)
    // [3, 2] +
    + +

    5.4.0

    +
  • shuffling algorithm, Reordering arrays or strings

    +

    Type Parameters

    • T extends unknown[] = unknown[]

    Parameters

    • value: T

      arrays or strings

      +
    • Optionalsize: number

      new array or string length

      +

    Returns T

      +
    • result
    • +
    +
    const str = 'abcde'
    const arr = [1,2,3]

    shuffle(str)
    // cdbse

    shuffle(arr)
    // [3, 1, 2]

    shuffle(arr, 2)
    // [3, 2] +
    + +

    5.4.0

    +
diff --git a/functions/sortPinyin.html b/functions/sortPinyin.html new file mode 100644 index 0000000..e2b583a --- /dev/null +++ b/functions/sortPinyin.html @@ -0,0 +1,12 @@ +sortPinyin | JS-COOL DOCS - v5.23.1

Function sortPinyin

  • Sort Chinese by Chinese phonetic alphabet

    +

    Type Parameters

    • T = string
    • P = string

    Parameters

    • a: T

      The first element for comparison.

      +
    • b: P

      The second element for comparison.

      +
    • options: CollatorOptions = {}

      An object adjusting the output format.

      +

    Returns number

      +
    • number
    • +
    +
    const items = ['啊我', '波拉', 'abc', 0, 3, '10', ',11', 13, null, '阿吧', 'ABB', 'BDD', 'ACD', 'ä']

    items.sort(sortPinyin)
    // [ ",11", 0, "10", 13, 3, "ä", "ABB", "abc", "ACD", "BDD", null, "阿吧", "啊我", "波拉" ]

    items.sort((a, b) => sortPinyin(a, b, { ignorePunctuation: true, numeric:true }))
    // [ 0, 3, "10", ",11", 13, "ä", "ABB", "abc", "ACD", "BDD", null, "阿吧", "啊我", "波拉" ] +
    + +

    5.14.0

    +
diff --git a/functions/sorter.html b/functions/sorter.html new file mode 100644 index 0000000..5a79ab6 --- /dev/null +++ b/functions/sorter.html @@ -0,0 +1,11 @@ +sorter | JS-COOL DOCS - v5.23.1

Function sorter

  • Sorter factory function

    +

    Parameters

    • Optionallocales: string | string[]

      A string with a BCP 47 language tag, or an array of such strings.

      +
    • Optionaloptions: CollatorOptions

      An object adjusting the output format.

      +

    Returns <T = string, P = string>(a: T, b: P) => number

      +
    • compare function
    • +
    +
    const items = ['啊我', '波拉', 'abc', 0, 3, '10', ',11', 13, null, '阿吧', 'ABB', 'BDD', 'ACD', 'ä']

    items.sort(
    sorter('zh-Hans-CN', {
    ignorePunctuation: true,
    sensitivity: 'variant',
    numeric: true
    })
    )
    // [ 0, 3, "10", ",11", 13, "ä", "ABB", "abc", "ACD", "BDD", null, "阿吧", "啊我", "波拉" ] +
    + +

    5.14.0

    +
diff --git a/functions/spliceUrlParam.html b/functions/spliceUrlParam.html new file mode 100644 index 0000000..ad20d84 --- /dev/null +++ b/functions/spliceUrlParam.html @@ -0,0 +1,11 @@ +spliceUrlParam | JS-COOL DOCS - v5.23.1

Function spliceUrlParam

  • splice url params

    +

    Type Parameters

    • T extends Record<string, unknown>

    Parameters

    • params: T

      json object

      +
    • covert: boolean | SpliceUrlParamOptions = false

      Convert a null value type (null/undefined/) to an empty string, default: false

      +

    Returns string

      +
    • result
    • +
    +
    spliceUrlParam(\{"key1":"100","key2":true,"key3":null,"key4":undefined,"key5":"测试"\})
    // ?key1=100&key2=true&key3=null&key4=undefined&key5=测试

    spliceUrlParam(\{"key1":"100","key2":true,"key3":null,"key4":undefined,"key5":"测试"\}, \{ encode: true \})
    // ?key1=100&key2=true&key3=null&key4=undefined&key5=%E6%B5%8B%E8%AF%95

    spliceUrlParam(\{"key1":"100","key2":true,"key3":null,"key4":undefined\}, true)
    // ?key1=100&key2=true&key3=&key4=

    spliceUrlParam(\{"key1":"100","key2":true,"key3":null,"key4":undefined\}, \{ covert: true, withQuestionsMark: false \})
    // key1=100&key2=true&key3=&key4= +
    + +

    5.3.0

    +
diff --git a/functions/stopBubble.html b/functions/stopBubble.html new file mode 100644 index 0000000..d8e0d58 --- /dev/null +++ b/functions/stopBubble.html @@ -0,0 +1,7 @@ +stopBubble | JS-COOL DOCS - v5.23.1

Function stopBubble

  • Block bubbling

    +

    Parameters

    • e: Event

      dom's event object

      +

    Returns boolean

      +
    • false
    • +
    +

    1.0.2

    +
diff --git a/functions/stopDefault.html b/functions/stopDefault.html new file mode 100644 index 0000000..04a2db5 --- /dev/null +++ b/functions/stopDefault.html @@ -0,0 +1,7 @@ +stopDefault | JS-COOL DOCS - v5.23.1

Function stopDefault

  • Block default events

    +

    Parameters

    • e: Event

      dom's event object

      +

    Returns boolean

      +
    • false
    • +
    +

    1.0.2

    +
diff --git a/functions/svgToBlob.html b/functions/svgToBlob.html new file mode 100644 index 0000000..2569367 --- /dev/null +++ b/functions/svgToBlob.html @@ -0,0 +1,7 @@ +svgToBlob | JS-COOL DOCS - v5.23.1

Function svgToBlob

  • svg to blob

    +

    Parameters

    • input: string

      svg string

      +

    Returns Blob

      +
    • blob
    • +
    +

    5.13.0

    +
diff --git a/functions/toThousands.html b/functions/toThousands.html new file mode 100644 index 0000000..e45bb2e --- /dev/null +++ b/functions/toThousands.html @@ -0,0 +1,10 @@ +toThousands | JS-COOL DOCS - v5.23.1

Function toThousands

  • Digital thousandths division

    +

    Parameters

    • num: string | number

      input number

      +

    Returns string

      +
    • the split string
    • +
    +
    toThousands(10000000222)
    // 10,000,000,222

    toThousands(100.2232323)
    // 100.2232323

    toThousands(null)
    // '' +
    + +

    3.0.0

    +
diff --git a/functions/trim.html b/functions/trim.html new file mode 100644 index 0000000..24eeb11 --- /dev/null +++ b/functions/trim.html @@ -0,0 +1,8 @@ +trim | JS-COOL DOCS - v5.23.1

Function trim

  • Remove leading and trailing spaces from strings

    +

    Parameters

    • string: string

      pass in the string

      +

    Returns string

      +
    • the new string
    • +
    +

    will be removed in the next major release.

    +

    1.0.1

    +
diff --git a/functions/unescape.html b/functions/unescape.html new file mode 100644 index 0000000..be9d6c2 --- /dev/null +++ b/functions/unescape.html @@ -0,0 +1,10 @@ +unescape | JS-COOL DOCS - v5.23.1

Function unescape

  • Restore HTML Special Characters

    +

    Parameters

    • string: string

      string

      +

    Returns string

      +
    • newString
    • +
    +
    unescape('&lt;div&gt;test&lt;br /&gt;string&lt;/div&gt;')
    // '<div>test<br />string</div>' +
    + +

    5.5.0

    +
diff --git a/functions/union.html b/functions/union.html new file mode 100644 index 0000000..f79dc16 --- /dev/null +++ b/functions/union.html @@ -0,0 +1,10 @@ +union | JS-COOL DOCS - v5.23.1

Function union

  • Find the concatenation of multiple arrays

    +

    Type Parameters

    • T = unknown

    Parameters

    • ...args: T[][]

      arguments

      +

    Returns T[]

      +
    • new array
    • +
    +
    union([1, 2], [2, '33'])
    // [1, 2, '33']

    union([1, 2], [2, '33'], [1, 11, 2, '2'])
    // [ 1, 2, '33', 11, '2' ] +
    + +

    2.2.1

    +
diff --git a/functions/unique.html b/functions/unique.html new file mode 100644 index 0000000..fcfabdf --- /dev/null +++ b/functions/unique.html @@ -0,0 +1,10 @@ +unique | JS-COOL DOCS - v5.23.1

Function unique

  • Array de-duplication

    +

    Type Parameters

    • T = unknown

    Parameters

    • arr: T[]

      array data

      +

    Returns T[]

      +
    • new array
    • +
    +
    unique([1, 2, 2, '33']) // [1, 2, '33']
    +
    + +

    2.2.1

    +
diff --git a/functions/upperFirst.html b/functions/upperFirst.html new file mode 100644 index 0000000..9983654 --- /dev/null +++ b/functions/upperFirst.html @@ -0,0 +1,10 @@ +upperFirst | JS-COOL DOCS - v5.23.1

Function upperFirst

  • First letter capitalized

    +

    Parameters

    • string: string

      the string to be converted

      +

    Returns string

      +
    • the converted string
    • +
    +
    upperFirst('saqqdy') // Saqqdy
    +
    + +

    1.0.1

    +
diff --git a/functions/urlToBlob.html b/functions/urlToBlob.html new file mode 100644 index 0000000..d111187 --- /dev/null +++ b/functions/urlToBlob.html @@ -0,0 +1,7 @@ +urlToBlob | JS-COOL DOCS - v5.23.1

Function urlToBlob

  • url to blob

    +

    Parameters

    • input: string

      url

      +

    Returns Promise<Blob | null>

      +
    • blob
    • +
    +

    5.13.0

    +
diff --git a/functions/uuid.html b/functions/uuid.html new file mode 100644 index 0000000..f6bc791 --- /dev/null +++ b/functions/uuid.html @@ -0,0 +1,9 @@ +uuid | JS-COOL DOCS - v5.23.1

Function uuid

Browser-side generation of uuid, using v4 method

+
uuid() // '4222fcfe-5721-4632-bede-6043885be57d'
+
+ +

1.0.9

+
diff --git a/functions/waiting.html b/functions/waiting.html new file mode 100644 index 0000000..21896d1 --- /dev/null +++ b/functions/waiting.html @@ -0,0 +1,5 @@ +waiting | JS-COOL DOCS - v5.23.1

Function waiting

waiting for a while

+

5.5.0

+
  • Parameters

    • milliseconds: number

      waiting time (milliseconds)

      +
    • throwOnTimeout: boolean = false

      throw on timeout

      +

    Returns Promise<void>

diff --git a/functions/windowSize.html b/functions/windowSize.html new file mode 100644 index 0000000..06adac2 --- /dev/null +++ b/functions/windowSize.html @@ -0,0 +1,9 @@ +windowSize | JS-COOL DOCS - v5.23.1

Function windowSize

diff --git a/index.html b/index.html new file mode 100644 index 0000000..369ff83 --- /dev/null +++ b/index.html @@ -0,0 +1,6560 @@ +JS-COOL DOCS - v5.23.1

JS-COOL DOCS - v5.23.1

+

js-cool

Collection of common JavaScript / TypeScript utilities

+

NPM version +Codacy Badge +tree shaking +typescript +Test coverage +npm download +gzip +License

+

Sonar

+
+
+

Read this in other languages: English | 简体中文

+
+
    +
  • Installation
  • +
  • Usage + +
  • +
  • API Reference +
      +
    • Global Parameters +
        +
      • client - The client method returns a browser result object
      • +
      • pattern - Collection of common regular expressions
      • +
      +
    • +
    • Extras for String & Array & Object & Function +
        +
      • clearAttr - Remove all attributes of HTML tags
      • +
      • clearHtml - Removing HTML tags
      • +
      • escape - Escaping HTML Special Characters
      • +
      • unescape - Restore HTML Special Characters
      • +
      • getNumber - Get the number in the string
      • +
      • camel2Dash - Converts humped strings to -spaced and all lowercase Dash pattern
      • +
      • dash2Camel - Converts -spaced and all lowercase Dash patterns to humped strings
      • +
      • randomColor - Generate random hexadecimal colors
      • +
      • randomNumber - Get a random number
      • +
      • randomNumbers - Generate n random integers that sum to a fixed sum
      • +
      • randomString - Get a random string
      • +
      • shuffle - shuffling algorithm, Reordering arrays or strings
      • +
      • fingerprint - Generating Browser Fingerprints
      • +
      • getCHSLength - Get the length of the string, Chinese counts as 2 characters
      • +
      • cutCHSString - Intercept string, Chinese counts as 2 bytes
      • +
      • upperFirst - First letter capitalized
      • +
      +
    • +
    • Determine +
        +
      • isDigitals - Determine if a string is a number
      • +
      • isExitsFunction - Determine if a function is defined
      • +
      • isExitsVariable - Determine if a variable is defined
      • +
      • isEqual - Determine if 2 objects are equal
      • +
      • isWindow - Determine if window object
      • +
      • isPlainObject - Determine if target is an plain object
      • +
      • isDarkMode - Determine if dark color mode
      • +
      • isObject - Determine if target is an object
      • +
      • isDate - Determine if target is Date
      • +
      • isRegExp - Determine if target is RegExp
      • +
      • isArray - Determine if it is an array
      • +
      • isIterable - Determine if it is iterable
      • +
      • inBrowser - Determine if it is running on the browser side
      • +
      • inNodeJs - Determine if it is running on node.js
      • +
      • isNumberBrowser - Detect if the client is a 360 browser
      • +
      • windowSize - Get the window size
      • +
      • getAppVersion - Get the APP version number
      • +
      • appVersion - Get the app version number
      • +
      • getOsVersion - Get the phone system version
      • +
      • osVersion - get the system version
      • +
      • browserVersion - Get the browser name and version
      • +
      • compareVersion - Version number size comparison, tag version: rc > beta > alpha > other
      • +
      • parseUrlParam - parse url params. (If covert is passed true: Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)
      • +
      • spliceUrlParam - Splice URL parameters (single layer only)
      • +
      • safeParse - Secure parsing of JSON strings
      • +
      • safeStringify - Secure stringify of JSON Object
      • +
      • getDirParam - Get the URL parameter in the form of a directory
      • +
      • getQueryParam - Get a single query parameter (behind "#")
      • +
      • getQueryParams - Get all query parameters (behind "#"). (If covert is passed true: Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)
      • +
      • getUrlParam - Get a single URL parameter (from the "location.search", before "#")
      • +
      • getUrlParams - Get all URL parameters (from the "location.search", before "#"). (If covert is passed true: Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)
      • +
      +
    • +
    • localStorage & sessionStorage & Cookie +
        +
      • getCache - Get the cache, if the deposited is Object, the retrieved is also Object, no need to convert again
      • +
      • setCache - Set the cache, if the deposited is Object, the retrieved is also Object, no need to convert again
      • +
      • delCache - Delete localStorage
      • +
      • getSession - Get the session, if the deposited is Object, the retrieved is also Object, no need to convert again
      • +
      • setSession - Set the session, if the deposited is Object, the retrieved is also Object, no need to convert again
      • +
      • delSession - Delete sessionStorage
      • +
      • getCookie - Get cookie by name
      • +
      • getCookies - Get all cookies
      • +
      • setCookie - Set cookie
      • +
      • delCookie - Delete cookie
      • +
      +
    • +
    • Base64 & UTF8 + +
    • +
    • Events +
        +
      • stopBubble - stop bubbling
      • +
      • stopDefault - stop default events
      • +
      • addEvent - event delegate, support multiple delegates
      • +
      • removeEvent - removeEvent removes the event delegate created by addEvent
      • +
      • getScrollPosition - Get slide to top and bottom return 'top' 'bottom', recommend using limit flow
      • +
      +
    • +
    • Utilities +
        +
      • nextIndex - return the next zIndex value
      • +
      • nextVersion - return the next version, Only version types with no more than 3 digits are supported. (Follow the npm version rules)
      • +
      • punctualTimer - punctual setInterval
      • +
      • promiseFactory - Convert an object to a promise like api
      • +
      • fixNumber - truncate a few decimal places, not 0 for shortage
      • +
      • mapTemplate - Replacing specific data in a template string, support ${xxxx} {{xxxx}} and {xxxx}
      • +
      • extend - deep copy & merge objects
      • +
      • clone - deep copy (Buffer, Promise, Set, Map are not supported)
      • +
      • delay - anti-dither throttling
      • +
      • getType - Get the target type
      • +
      • getFileType - Determine file type based on link suffix
      • +
      • sorter - Sorter factory function
      • +
      • sortPinyin - Sort Chinese by Chinese phonetic alphabet
      • +
      • cleanData - Data cleaning methods
      • +
      • download - Several ways of file downloading
      • +
      • searchObject - tree object depth lookup
      • +
      • openUrl - Open link in new tab (file jump download if browser can't parse)
      • +
      • copy - copy to clipboard
      • +
      • toThousands - Digital thousandths division
      • +
      • all - return true if the provided predicate function returns true for all elements in a set, otherwise return false
      • +
      • any - Returns true if the provided predicate function returns true for at least one element of a set, false otherwise
      • +
      • uuid - generate uuid on browser side, use v4 method
      • +
      • CSVToArray - Converts a comma-separated string of values (CSV) to a 2D array.
      • +
      • arrayToCSV - Converts a two-dimensional array to a comma-separated string of values (CSV).
      • +
      • CSVToJSON - Converts a comma-separated string of values (CSV) to an array of 2D objects. The first line of the string is used as the header line.
      • +
      • JSONToCSV - Converts an array of objects to a comma-separated value (CSV) string containing only the specified columns.
      • +
      • RGBToHex - Converts RGB component values to color codes.
      • +
      • intersect - Find the intersection of multiple arrays
      • +
      • union - Find the concatenation of multiple arrays
      • +
      • minus - Find the set of differences of multiple arrays that belong to A but not to B/C/D... of the elements of
      • +
      • complement - Find the complement of multiple arrays
      • +
      • contains - Whether the array contains the specified element
      • +
      • unique - Array de-duplication
      • +
      • fillIPv6 - ipv6 address completion
      • +
      • getProperty - Get array, object property values based on path string
      • +
      • setProperty - Set array, object property values based on path string
      • +
      • loadSource - load resources dynamically, support js, images, css links, css style strings
      • +
      • mountCss - dynamically load css link resources
      • +
      • mountImg - load image resource dynamically
      • +
      • mountJs - load js link resources dynamically
      • +
      • mountStyle - load css styles dynamically
      • +
      • preloader - Image preloading
      • +
      • waiting - waiting for a while
      • +
      • awaitTo - Async await wrapper for easy error handling
      • +
      +
    • +
    • Blob arrayBuffer base64 file blobUrl + +
    • +
    +
  • +
  • Support & Issues
  • +
  • License
  • +
+
# use pnpm
pnpm install js-cool

## use npm
npm install --save js-cool +
+ +
import { osVersion } from 'js-cool'

osVersion() +
+ +
const { osVersion } = require('js-cool')

osVersion() +
+ +
<script src="https://unpkg.com/js-cool@latest/dist/index.global.prod.js"></script>
<script>
jsCool.browserVersion()
</script> +
+ +

The client method returns a browser result object

+
    +
  • +

    Since: 1.0.1

    +
  • +
  • +

    Arguments: none

    +
  • +
  • +

    Returns: object

    +
  • +
  • +

    Example:

    +
  • +
+
import { client } from 'js-cool'

client.get(['device', 'browser', 'engine', 'os']) // { device: 'xxx', browser: 'xxx', os: 'xxx', engine: 'xxx' }
client.get('device') // { device: 'xxx' } +
+ +
    +
  • Types:
  • +
+
declare class Client {
matchMap: Record<InfoKeys, boolean>
root: Window & typeof globalThis
navigator: Navigator
constructor(options: ClientOptions)

get(names?: InfoTypes | InfoTypes[]): Partial<{
device: InfoKeys | undefined
os: InfoKeys | undefined
browser: InfoKeys | undefined
engine: InfoKeys | undefined
language: any
network: any
orientation: string | undefined
}>

getInfoByType(infoKey: InfoKey): InfoKeys | undefined
getOrientationStatus(): 'vertical' | 'horizontal' | undefined
getNetwork(): any
getLanguage(): any
} +
+ +

Collection of common regular expressions

+
+

v5.21.2 pattern support mac/ip4/ip4_pri

+
+
    +
  • +

    Since: 1.0.1

    +
  • +
  • +

    Arguments: none

    +
  • +
  • +

    Returns: none

    +
  • +
  • +

    Example:

    +
  • +
+
pattern.number.test('333') // true
+
+ +
    +
  • Types:
  • +
+
declare const pattern: {
any: RegExp
number: RegExp
string: RegExp
postcode: RegExp
url: RegExp
username: RegExp
float: RegExp
email: RegExp
mobile: RegExp
chinese: RegExp
tel: RegExp
qq: RegExp
pass: RegExp
json: RegExp
arrjson: RegExp
array: RegExp
isjson: RegExp
textarea: RegExp
mac: RegExp
ip4: RegExp
ip4_pri: RegExp
} +
+ +

Remove all attributes of HTML tags

+
    +
  • +

    Since: 1.0.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
stringstring with html tagsstring-true-
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
clearAttr('<div id="testID">test</div>')
// '<div>test</div>' +
+ +
    +
  • Types:
  • +
+
declare function clearAttr(string: string): string
+
+ +

Remove HTML tags

+
    +
  • +

    Since: 1.0.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
stringstring with html tagsstring-true-
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
clearHtml('<div>test<br />string</div>')
// 'teststring' +
+ +
    +
  • Types:
  • +
+
declare function clearHtml(string: string): string
+
+ +

Escaping HTML Special Characters

+
    +
  • +

    Since: 5.5.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
stringstring with html tagsstring-true-
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
escape('<div>test<br />string</div>')
// '&lt;div&gt;test&lt;br /&gt;string&lt;/div&gt;' +
+ +
    +
  • Types:
  • +
+
declare function escape(string: string): string
+
+ +

Restore HTML Special Characters

+
    +
  • +

    Since: 5.5.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
stringstringstring-true-
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
unescape('&lt;div&gt;test&lt;br /&gt;string&lt;/div&gt;')
// '<div>test<br />string</div>' +
+ +
    +
  • Types:
  • +
+
declare function unescape(string: string): string
+
+ +

Get the number in the string

+
    +
  • +

    Since: 1.0.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
stringpass in a string with a numberstring-true-
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
getNumber('Chrome123.33')
// '123.33'

getNumber('234test.88')
// '234.88' +
+ +
    +
  • Types:
  • +
+
declare function getNumber(string: string): string
+
+ +

Converts humped strings to -spaced and all lowercase Dash pattern

+
    +
  • +

    Since: 1.0.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
stringthe string to be convertedstring-true-
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
camel2Dash('jsCool') // js-cool
+
+ +
    +
  • Types:
  • +
+
declare function camel2Dash(string: string): string
+
+ +

Converts -spaced and all lowercase Dash patterns to humped strings

+
    +
  • +

    Since: 1.0.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
stringthe string to be convertedstring-true-
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
dash2Camel('js-cool') // jsCool
+
+ +
    +
  • Types:
  • +
+
declare function dash2Camel(string: string): string
+
+ +

Generate random hexadecimal colors

+
+

Support for custom color value ranges starting with version 5.17.0, which can be used to customize the generation of darker, lighter, warmer colors, etc.

+
+
    +
  • +

    Since: 5.5.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
minthe minimum value of the random numbersnumber / [number, number, number]-false-
maxthe maximum value of the random numbersnumber / [number, number, number]-false-
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
randomColor()
// #bf444b

randomColor(200)
// #d6e9d7

randomColor(200, 255)
// #d3f9e4

randomColor([0, 0, 0], [255, 255, 255])
// #e2f2f3 +
+ +
    +
  • Types:
  • +
+
declare function randomColor(
min?: number | [number, number, number],
max?: number | [number, number, number]
): string +
+ +

Get a random number

+
    +
  • +

    Since: 5.0.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
minthe minimum value of the random numbernumber-false1
maxthe maximum value of the random numbernumber-false10
+
    +
  • +

    Returns: number

    +
  • +
  • +

    Example:

    +
  • +
+
randomNumber() // 8
randomNumber(0.1, 0.9) // 0.8 +
+ +
    +
  • Types:
  • +
+
declare function randomNumber(min?: number, max?: number): number
+
+ +

Generate n random integers that sum to a fixed sum

+
    +
  • +

    Since: 5.4.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
nNumber of generated integersnumber-false1
sumSum of generated integersnumber-false100
noZeroGenerate integers that are not zeroboolean-falsetrue
+
    +
  • +

    Returns: Array<number>

    +
  • +
  • +

    Example:

    +
  • +
+
randomNumbers()
// [8]

randomNumbers(4, 5)
// [1, 1, 2, 1]

randomNumbers(4, 5, false)
// [0, 1, 2, 2] +
+ +
    +
  • Types:
  • +
+
declare function randomNumbers(n?: number, sum?: number): number[]
+
+ +

Get a random string

+
+

v5.4.0 widthSpecialChar changed to options, still compatible with old usage, widthSpecialChar=true equivalent to { charTypes: ['uppercase', 'lowercase', 'number', 'special'] }

+
+
    +
  • +

    Since: 5.0.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
lenthe length of the random string that needs to be obtainednumber-false32
optionsrandomString optionsRandomStringOptions boolean-false{ charTypes: ['uppercase', 'lowercase', 'number'] }
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
// 1. No parameters are passed, a 32-bit (possibly) string containing upper and lower case letters and numbers is generated by default
randomString()
// PVSjz902EqYbmxaLtvDnggtnlvt5uFTZ

// 2. Generate a 16-bit random string
randomString(16)
// coTgZy0mqqMJ1sMM

// 3. Same effect as #2 above
randomString({
length: 16
})
// ngCI5aPqJm84t90d

// 4. Generate containing special characters (old way of passing values, not recommended)
randomString(true)
// 0Uby@op3B-sK5]dHl4S|15As.OlHiNXd

// 5. Same effect as #4 above (recommended)
randomString({
charTypes: ['uppercase', 'lowercase', 'number', 'special']
})
// m,2^vpkrE,F,DbcSFk0=vr&@DJ27j9XK

// 6. Same effect as #4 above, Limit string length to 16 bits
randomString(16, true)
// dXz[J_sYM^3d8fnA

// 7. Generate a 16-bit random number
randomString({
length: 16,
charTypes: 'number'
})
// 7450026301030286

// 8. Elimination of confusing characters: oOLl,9gq,Vv,Uu,I1
randomString({
length: 16,
noConfuse: true
})
// 8DEGna8ppC4mqyew

// 9. The generated random string must contain at least 1 character of each type of character specified, e.g. to generate a 16-bit password that must contain upper and lower case letters, numbers, and special characters.
randomString({
length: 16,
strict: true
})
// PFYAPD5KFqOHIADL +
+ +
    +
  • Types:
  • +
+
declare function randomString(len?: number, options?: RandomStringOptions | boolean): string

declare function randomString(
len?: RandomStringOptions | boolean,
options?: RandomStringOptions | boolean
): string

declare type RandomStringCharType = 'uppercase' | 'lowercase' | 'number' | 'special'

declare interface RandomStringOptions {
length?: number
charTypes?: RandomStringCharType | ArrayOneMore<RandomStringCharType>
/**
* Elimination of confusing characters: oOLl,9gq,Vv,Uu,I1
*/
noConfuse?: boolean
/**
* The generated random string must contain each of the listed character types
*/
strict?: boolean
} +
+ +

shuffling algorithm, Reordering arrays or strings

+
    +
  • +

    Since: 5.4.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
valuearrays or stringsarray string-true-
sizenew array or string lengthnumber-false-
+
    +
  • +

    Returns: array | string

    +
  • +
  • +

    Example:

    +
  • +
+
const str = 'abcde'
const arr = [1, 2, 3]

shuffle(str)
// cdbse

shuffle(arr)
// [3, 1, 2]

shuffle(arr, 2)
// [3, 2] +
+ +
    +
  • Types:
  • +
+
declare function shuffle(value: string, size?: number): string

declare function shuffle<T extends unknown[] = unknown[]>(value: T, size?: number): T +
+ +

Generating Browser Fingerprints

+
    +
  • +

    Since: 5.2.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
domainkey stringstring-falselocation.host
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
fingerprint('www.saqqdy.com') // wc7sWJJA8
+
+ +
    +
  • Types:
  • +
+
declare function fingerprint(domain?: string): string | null
+
+ +

Get the length of the string, Chinese counts as 2 characters

+
    +
  • +

    Since: 1.0.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
strinput stringstring-true-
+
    +
  • +

    Returns: number

    +
  • +
  • +

    Example:

    +
  • +
+
getCHSLength('测试') // 2
+
+ +
    +
  • Types:
  • +
+
declare function getCHSLength(str: string): number
+
+ +

Intercept string, Chinese counts as 2 bytes

+
    +
  • +

    Since: 1.0.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
strthe string to be interceptedstring-true-
lenlengthnumber-false-
hasDotoutput with dotboolean-falsefalse
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
cutCHSString('测试', 1) // 测
cutCHSString('测试', 1, true) // 测... +
+ +
    +
  • Types:
  • +
+
declare function cutCHSString(str: string, len?: number, hasDot?: boolean): string
+
+ +

First letter capitalized

+
    +
  • +

    Since: 1.0.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
stringthe string to be convertedstring-true-
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
upperFirst('saqqdy') // Saqqdy
+
+ +
    +
  • Types:
  • +
+
declare function upperFirst(string: string): string
+
+ +

Determine if a string is a number

+
    +
  • +

    Since: 1.0.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
strthe string to be testedstring-true-
+
    +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
isDigitals('2.11') // true
isDigitals('2.3x') // false +
+ +
    +
  • Types:
  • +
+
declare function isDigitals(str: string): boolean
+
+ +

Determine if a function is defined

+
    +
  • +

    Since: 1.0.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namefunction namestring-true-
+
    +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
isExitsFunction('test') // false
isExitsFunction('console.log') // true +
+ +
    +
  • Types:
  • +
+
declare function isExitsFunction(name: string): boolean
+
+ +

Determine if a variable is defined

+
    +
  • +

    Since: 1.0.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namevariable namestring-true-
+
    +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
isExitsVariable('test') // false
isExitsVariable('window') // true +
+ +
    +
  • Types:
  • +
+
declare function isExitsVariable(name: string): boolean
+
+ +

Determine if 2 objects are equal

+
    +
  • +

    Since: 5.12.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
asourceany-true-
bcompareany-true-
+
    +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
isEqual({ a: 22, b: {} }, { b: {}, a: 22 })
// true

isEqual([1, 2], [2, 1])
// false

isEqual(NaN, NaN)
// true +
+ +
    +
  • Types:
  • +
+
declare function isEqual<T, P>(a: T, b: P): boolean
+
+ +

Determine if window object

+
    +
  • +

    Since: 5.0.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
targetany targetany-true-
+
    +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
isWindow({}) // false
isWindow(window) // true +
+ +
    +
  • Types:
  • +
+
declare function isWindow<T = any>(target: T): target is Window
+
+ +

Determine if target is an plain object

+
    +
  • +

    Since: 5.0.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
targetany targetany-true-
+
    +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
isPlainObject({}) // true
isPlainObject(window) // false +
+ +
    +
  • Types:
  • +
+
type Primitive = bigint | boolean | null | number | string | symbol | undefined

type JSONValue = Primitive | PlainObject | JSONArray

// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
interface PlainObject {
[key: string]: JSONValue
}

interface JSONArray extends Array<JSONValue> {}

declare function isPlainObject(target: unknown): target is PlainObject +
+ +

Determine if dark color mode

+
    +
  • +

    Since: 5.5.0

    +
  • +
  • +

    Arguments: none

    +
  • +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
isDarkMode() // false
+
+ +
    +
  • Types:
  • +
+
declare function isDarkMode(): boolean
+
+ +

Determine if target is an object

+
    +
  • +

    Since: 5.0.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
targetany targetany-true-
+
    +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
isObject({}) // true
+
+ +
    +
  • Types:
  • +
+
declare function isObject<T = any>(target: T): target is Object
+
+ +

Determine if target is Date

+
    +
  • +

    Since: 5.15.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
targetany targetany-true-
+
    +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
const now = new Date()

isDate(now)
// true +
+ +
    +
  • Types:
  • +
+
declare function isDate<T = any>(target: T): target is Date
+
+ +

Determine if target is RegExp

+
    +
  • +

    Since: 5.15.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
targetany targetany-true-
+
    +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
isRegExp(/\d/) // true
+
+ +
    +
  • Types:
  • +
+
declare function isRegExp<T = any>(target: T): target is RegExp
+
+ +

Determine if it is an array

+
    +
  • +

    Since: 1.0.2

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
targetany targetany-true-
+
    +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
isArray([]) // true
+
+ +
    +
  • Types:
  • +
+
declare function isIterable(target: any): target is any[]
+
+ +

Determine if it is iterable

+
    +
  • +

    Since: 5.7.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
targetany targetany-true-
+
    +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
isIterable([]) // true
+
+ +
    +
  • Types:
  • +
+
declare function isIterable<T = any>(target: T | Iterable<T>): target is Iterable<T>
+
+ +

Determine if it is running on the browser side

+
    +
  • +

    Since: 4.5.0

    +
  • +
  • +

    Arguments: none

    +
  • +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
function test() {
if (!inBrowser) return null
// ...
} +
+ +
    +
  • Types:
  • +
+
declare const inBrowser: boolean
+
+ +

Determine if it is running on node.js

+
    +
  • +

    Since: 5.13.0

    +
  • +
  • +

    Arguments: none

    +
  • +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
if (inNodeJs) {
//
} +
+ +
    +
  • Types:
  • +
+
declare const inNodeJs: boolean
+
+ +

Detect if the client is a 360 browser

+
    +
  • +

    Since: 5.22.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
userAgentua or any ua like string, allowed to be undefinedstring-falsenavigator.userAgent
+
    +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
// 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36 QIHU 360EE'
// true

// 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36'
// true +
+ +
    +
  • Types:
  • +
+
declare function isNumberBrowser(userAgent?: string): boolean
+
+ +

Get the window size

+
    +
  • +

    Since: 1.0.1

    +
  • +
  • +

    Arguments: none

    +
  • +
  • +

    Returns: { width, height }

    +
  • +
  • +

    Example:

    +
  • +
+
windowSize()
// { width: 1280, height: 800 } +
+ +
    +
  • Types:
  • +
+
declare interface WindowSizeObj {
width: number
height: number
}

declare function windowSize(): WindowSizeObj +
+ +

Get the APP version number

+
+

deprecated please use 'appVersion' instead

+
+
    +
  • +

    Since: 1.0.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
appNameapp namestring-true-
withAppwhether to bring the nameboolean-false-
userAgentua or any ua like string, allowed to be undefinedstring-falsenavigator.userAgent
+
    +
  • +

    Returns: string | boolean | null

    +
  • +
  • +

    Example:

    +
  • +
+
// navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'

getAppVersion('Chrome') // 114.0.0.0
getAppVersion('Safari', true) // Safari/537.36 +
+ +
    +
  • Types:
  • +
+
declare function getAppVersion(
appName: string,
withApp?: boolean,
userAgent?: string
): string | boolean | null +
+ +

Get the app version number

+
    +
  • +

    Since: 5.1.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
appNameapp namestring-true-
uaua or any ua like string, allowed to be undefinedstring-falsenavigator.userAgent
ignoreCasewhether to ignore casebooleantrue/falsefalsetrue
+
    +
  • +

    Returns: string | null

    +
  • +
  • +

    Example:

    +
  • +
+
// navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'

appVersion('Chrome') // 114.0.0.0
appVersion('Safari') // 537.36
appVersion('appname', false) // null
appVersion('appname') // 1.0.0-beta.8 +
+ +
    +
  • Types:
  • +
+
declare function appVersion(appName: string): string | null
declare function appVersion(appName: string, ua: string): string | null
declare function appVersion(appName: string, ua: boolean): string | null
declare function appVersion(appName: string, ua: string, ignoreCase: boolean): string | null +
+ +

Get the phone system version

+
+

deprecated: please use 'osVersion' instead

+
+
    +
  • +

    Since: 1.0.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
osNamesystem type string Android, iPod, iWatch or iPhonestring-true-
withOSwhether to bring the namestring-false-
userAgentua or any ua like string, allowed to be undefinedstring-falsenavigator.userAgent
+
    +
  • +

    Returns: string | boolean | null

    +
  • +
  • +

    Example:

    +
  • +
+
getOsVersion('iPhone')
// '13.2.3'

getOsVersion('iPhone', true)
// 'iPhone/13.2.3' +
+ +
    +
  • Types:
  • +
+
declare function getOsVersion(
osName: string,
withOS?: boolean,
userAgent?: string
): string | boolean | null +
+ +

get the system version

+
    +
  • +

    Since: 5.1.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
uaua or any ua like string, allowed to be undefinedstring-falsenavigator.userAgent
+
    +
  • +

    Returns: OsVersion | null

    +
  • +
  • +

    Example:

    +
  • +
+
// ipad => 'Mozilla/5.0 (iPad; CPU OS 13_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/87.0.4280.77 Mobile/15E148 Safari/604.1'
osVersion() // \{ name: 'iOS', version: '13.3' \}
// iphone => 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1'
osVersion() // \{ name: 'iOS', version: '13.2.3' \}
// mac os => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'
osVersion() // \{ name: 'MacOS', version: '10.15.7' \}
// windows => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'
osVersion() // \{ name: 'Windows', version: '10.0' \}
// windows xp => 'Mozilla/5.0 (Windows NT 5.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'
osVersion() // \{ name: 'Windows', version: 'XP' \}
// windows phone => 'Mozilla/5.0 (Windows Phone OS 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36'
osVersion() // \{ name: 'WindowsPhone', version: '10.0' \} +
+ +
    +
  • Types:
  • +
+
declare interface OsVersion {
name: 'Windows' | 'MacOS' | 'Android' | 'iOS' | 'WindowsPhone' | 'Debian' | 'WebOS' | 'Harmony'
version: string
}

declare function osVersion(ua?: string): OsVersion | null +
+ +

Get the browser name and version

+
    +
  • +

    Since: 5.2.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
uaua or any ua like string, allowed to be undefinedstring-falsenavigator.userAgent
+
    +
  • +

    Returns: BrowserVersion | null

    +
  • +
  • +

    Example:

    +
  • +
+
// Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Ap…KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
browserVersion() // \{ name: 'Chrome', version: '114.0.0.0' \} +
+ +
    +
  • Types:
  • +
+
declare interface BrowserVersion {
name:
| 'Safari'
| 'Chrome'
| 'IE'
| 'Edge'
| 'Firefox'
| 'Firefox Focus'
| 'Chromium'
| 'Opera'
| 'Vivaldi'
| 'Yandex'
| 'Arora'
| 'Lunascape'
| 'QupZilla'
| 'Coc Coc'
| 'Kindle'
| 'Iceweasel'
| 'Konqueror'
| 'Iceape'
| 'SeaMonkey'
| 'Epiphany'
| '360'
| '360SE'
| '360EE'
| 'Maxthon'
| 'QQBrowser'
| 'QQ'
| 'Baidu'
| 'UC'
| 'Sogou'
| 'Liebao'
| 'LBBROWSER'
| '2345Explorer'
| '115Browser'
| 'TheWorld'
| 'XiaoMi'
| 'Vivo'
| 'Quark'
| 'Qiyu'
| 'Wechat'
| 'WechatWork'
| 'Taobao'
| 'Alipay'
| 'Weibo'
| 'Douban'
| 'Suning'
| 'iQiYi'
| 'DingTalk'
| 'Huawei'
version: string
}

declare function browserVersion(ua?: string): BrowserVersion | null +
+ +
+

v5.8.0 support compare tag version

+
+

Version number size comparison, tag version: rc > beta > alpha > other

+
    +
  • +

    Since: 4.7.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputinput versionstring-true-
comparecompare versionstring-true-
+
    +
  • +

    Returns: 0 | 1 | -1

    +
  • +
  • +

    Example:

    +
  • +
+
compareVersion('1.11.0', '1.9.9')
// => 1: 1=Version 1.11.0 is newer than 1.9.9

compareVersion('1.11.0', '1.11.0')
// => 0: 0=Versions 1.11.0 and 1.11.0 are the same

compareVersion('1.11.0', '1.99.0')
// => -1: -1=Version 1.11.0 is older than 1.99.0

compareVersion('1.0.0.0.0.10', '1.0')
// => -1

// compare tag version: rc > beta > alpha > other
compareVersion('1.11.0', '1.11.0-beta.1')
// => -1

compareVersion('1.11.0-beta.1', '1.11.0')
// => -1

compareVersion('1.11.0-beta.10', '1.11.0-beta.10')
// => 0

compareVersion('1.11.0-alpha.10', '1.11.0-beta.1')
// => -1

compareVersion('1.11.0-alpha.10', '1.11.0-rc.1')
// => -1

compareVersion('1.11.0-tag.10', '1.11.0-alpha.1')
// => -1

compareVersion('1.11.0-tag.10', '1.11.0-tag.1')
// => 1

compareVersion('1.11.0-release.10', '1.11.0-tag.1')
// => 1 +
+ +
    +
  • Types:
  • +
+
declare function compareVersion(input: string, compare: string): 0 | 1 | -1
+
+ +

parse url params. (If covert is passed true: Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)

+
    +
  • +

    Since: 5.0.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urlurl string (like: ?key1=value1&key2=value2)string-true-
covertConverts a specific string to a corresponding valuebooleantrue/falsefalsefalse
+
    +
  • +

    Returns: object

    +
  • +
  • +

    Example:

    +
  • +
+
parseUrlParam(
'?key1=100&key2=true&key3=null&key4=undefined&key5=NaN&key6=10.888&key7=Infinity&key8=test'
)
// \{"key1":"100","key2":"true","key3":"null","key4":"undefined","key5":"NaN","key6":"10.888","key7":"Infinity","key8":"test"\}

parseUrlParam(
'?key1=100&key2=true&key3=null&key4=undefined&key5=NaN&key6=10.888&key7=Infinity&key8=test',
true
)
// \{"key1":100,"key2":true,"key3":null,"key5":NaN,"key6":10.888,"key7":Infinity,"key8":"test"\} +
+ +
    +
  • Types:
  • +
+
declare function parseUrlParam(url: string, covert?: boolean): Record<string, unknown>
+
+ +

Splice URL parameters (single layer only)

+
+

v5.20.0 Breaking change: remove encodeURIComponent
+v5.21.0 Breaking change: covert support boolean & SpliceUrlParamOptions

+
+
    +
  • +

    Since: 5.3.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
paramsjson objectobject-true-
covertConvert a null value type (null/undefined/) to an empty string or spliceUrlParamOptionsboolean | SpliceUrlParamOptions-falsefalse
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
spliceUrlParam({ key1: '100', key2: true, key3: null, key4: undefined, key5: '测试' })
// ?key1=100&key2=true&key3=null&key4=undefined&key5=测试

spliceUrlParam(
{ key1: '100', key2: true, key3: null, key4: undefined, key5: '测试' },
{ encode: true }
)
// ?key1=100&key2=true&key3=null&key4=undefined&key5=%E6%B5%8B%E8%AF%95

spliceUrlParam({ key1: '100', key2: true, key3: null, key4: undefined }, true)
// ?key1=100&key2=true&key3=&key4=

spliceUrlParam(
{ key1: '100', key2: true, key3: null, key4: undefined },
{ covert: true, withQuestionsMark: false }
)
// key1=100&key2=true&key3=&key4= +
+ +
    +
  • Types:
  • +
+
declare function spliceUrlParam<T extends Record<string, unknown>>(
params: T,
covert?: SpliceUrlParamOptions | boolean
): string

declare interface SpliceUrlParamOptions {
covert?: boolean
encode?: boolean
withQuestionsMark?: boolean
} +
+ +

Secure parsing of JSON strings

+
+

support BigInt since v5.17.1

+
+
    +
  • +

    Since: 5.16.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
dataJSON stringstring-true-
covertWhether to convert databooleantrue/falsefalsetrue
+
    +
  • +

    Returns: Object

    +
  • +
  • +

    Example:

    +
  • +
+
safeParse('100')
// 100

safeParse('{"a":"undefined","b":"NaN","c":"Infinity","d":"9007199254740993"}')
// { b: NaN, c: Infinity, d: 9007199254740993n } +
+ +
    +
  • Types:
  • +
+
declare function safeParse(data: string, covert?: boolean): any
+
+ +

Secure stringify of JSON Object

+
+

support BigInt since v5.17.1

+
+
    +
  • +

    Since: 5.16.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
dataJSON Objectany-true-
covertWhether to convert databooleantrue/falsefalsetrue
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
safeStringify(100)
// "100"

safeStringify(undefined)
// "undefined"

safeStringify(NaN)
// "NaN"

safeStringify(Infinity)
// "Infinity"

safeStringify({ a: undefined, b: NaN, c: Infinity, d: BigInt(Number.MAX_SAFE_INTEGER) + 2n })
// {"a":"undefined","b":"NaN","c":"Infinity","d":"9007199254740993"} +
+ +
    +
  • Types:
  • +
+
declare function safeStringify(data: any, covert?: boolean): string
+
+ +

Get the URL parameter in the form of a directory

+
+

It will be refactored and renamed getDirParams in the next major release.

+
+
    +
  • +

    Since: 1.0.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urlhttp urlobject-true-
+
    +
  • +

    Returns: object

    +
  • +
  • +

    Example:

    +
  • +
+
//
+
+ +
    +
  • Types:
  • +
+
declare interface DirParamType {
path?: string[]
host?: string
}

declare function getDirParam(url: string): DirParamType +
+ +

Get a single query parameter (behind "#")

+
    +
  • +

    Since: 5.0.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
keykey namestring-true-
urlpass in the url stringstring-falselocation.href
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
getQueryParam('key1')
// key1 => xxx

getQueryParam('key1', 'https://test.com?key1=100#/home?key1=200')
// key1 => 200 +
+ +
    +
  • Types:
  • +
+
declare function getQueryParam(key: string): string | undefined

declare function getQueryParam(key: string, url: string): string | undefined +
+ +

Get all query parameters (behind "#"). (If covert is passed true: Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)

+
    +
  • +

    Since: 5.0.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urlpass in the url stringstring-falselocation.href
covertConverts a specific string to a corresponding valuebooleantrue/falsefalsefalse
+
    +
  • +

    Returns: object

    +
  • +
  • +

    Example:

    +
  • +
+
getQueryParams('https://test.com?key1=100#/home?key1=200')
// \{"key1":"200"\}

getQueryParams('https://test.com?key1=100#/home?key1=200', true)
// \{"key1":200\}

getQueryParams(true)
// \{"key1":200\} +
+ +
    +
  • Types:
  • +
+
declare function getQueryParams(url?: string, covert?: boolean): Record<string, unknown> | null
+
+ +

Get a single URL parameter (from the "location.search", before "#")

+
    +
  • +

    Since: 5.0.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
keykey namestring-true-
urlpass in the url stringstring-falselocation.href
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
getUrlParam('key1')
// key1 => xxx

getUrlParam('key1', 'https://test.com?key1=100#/home?key1=200')
// key1 => 100 +
+ +
    +
  • Types:
  • +
+
declare function getUrlParam(key: string): string | undefined

declare function getUrlParam(key: string, url: string): string | undefined +
+ +

Get all URL parameters (from the "location.search", before "#"). (If covert is passed true: Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)

+
    +
  • +

    Since: 5.0.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urlpass in the url stringstring-falselocation.href
covertConverts a specific string to a corresponding valuebooleantrue/falsefalsefalse
+
    +
  • +

    Returns: object

    +
  • +
  • +

    Example:

    +
  • +
+
getUrlParams('https://test.com?key1=100#/home?key1=200')
// \{"key1":"100"\}

getUrlParams('https://test.com?key1=100#/home?key1=200', true)
// \{"key1":100\}

getUrlParams(true)
// \{"key1":100\} +
+ +
    +
  • Types:
  • +
+
declare function getUrlParams(url?: string, covert?: boolean): Record<string, unknown> | null
+
+ +

Get the cache, if the deposited is Object, the retrieved is also Object, no need to convert again

+
    +
  • +

    Since: 1.0.2

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namecache key namestring-true-
+
    +
  • +

    Returns: any

    +
  • +
  • +

    Example:

    +
  • +
+
import { getCache, setCache } from 'js-cool'

const data1 = 100
const data2 = { a: 10 }
const data3 = null

setCache('data1', data1)
setCache('data2', data2)
setCache('data3', data3)

getCache('data1') // 100
getCache('data2') // {a:10}
getCache('data3') // null

getCache('data4') // null +
+ +
    +
  • Types:
  • +
+
declare function getCache(name: string): any
+
+ +

Set the cache, if the deposited is Object, the retrieved is also Object, no need to convert again

+
    +
  • +

    Since: 1.0.2

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namecache key namestring-true-
valuecache data, can be passed directly into Objectany-true-
secondscache time (seconds)number-false-
+
    +
  • +

    Returns: void

    +
  • +
  • +

    Example:

    +
  • +
+
import { getCache, setCache } from 'js-cool'

const data1 = 100
const data2 = { a: 10 }
const data3 = null

setCache('data1', data1)
setCache('data2', data2, 10)

getCache('data1') // 100
getCache('data2') // {a:10}

setTimeout(() => {
getCache('data2') // null
}, 15000) +
+ +
    +
  • Types:
  • +
+
declare function setCache<T = unknown>(name: string, value: T, seconds?: number | string): void
+
+ +

Delete localStorage

+
    +
  • +

    Since: 1.0.2

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namecache key namestring-true-
+
    +
  • +

    Returns: void

    +
  • +
  • +

    Example:

    +
  • +
+
delCache('data')
+
+ +
    +
  • Types:
  • +
+
declare function delCache(name: string): void
+
+ +

Get the session, if the deposited is Object, the retrieved is also Object, no need to convert again

+
    +
  • +

    Since: 1.0.2

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namesession key namestring-true-
+
    +
  • +

    Returns: any

    +
  • +
  • +

    Example:

    +
  • +
+
const data1 = 100
const data2 = { a: 10 }
const data3 = null

setSession('data1', data1)
setSession('data2', data2)
setSession('data3', data3)

getSession('data1') // 100
getSession('data2') // {a:10}
getSession('data3') // null

getSession('data4') // null +
+ +
    +
  • Types:
  • +
+
declare function getSession(name: string): any
+
+ +

Set the session, if the deposited is Object, the retrieved is also Object, no need to convert again

+
    +
  • +

    Since: 1.0.2

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namesession key namestring-true-
valuesession data, can be passed directly into Objectany-true-
secondssession time (seconds)number-false-
+
    +
  • +

    Returns: void

    +
  • +
  • +

    Example:

    +
  • +
+
import { getSession, setSession } from 'js-cool'

const data1 = 100
const data2 = { a: 10 }
const data3 = null

setSession('data1', data1)
setSession('data2', data2, 10)

getSession('data1') // 100
getSession('data2') // {a:10}

setTimeout(() => {
getSession('data2') // null
}, 15000) +
+ +
    +
  • Types:
  • +
+
declare function setSession<T = unknown>(name: string, value: T, seconds?: number | string): void
+
+ +

Delete sessionStorage

+
    +
  • +

    Since: 1.0.2

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namesession key namestring-true-
+
    +
  • +

    Returns: void

    +
  • +
  • +

    Example:

    +
  • +
+
delSession('data')
+
+ +
    +
  • Types:
  • +
+
declare function delSession(name: string): void
+
+ +

Get cookie by name

+
    +
  • +

    Since: 1.0.2

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namecookie key namestring-true-
+
    +
  • +

    Returns: any

    +
  • +
  • +

    Example:

    +
  • +
+
getCookie('data1') // 100
+
+ +
    +
  • Types:
  • +
+
declare function getCookie(name: string): string
+
+ +

Get all cookies

+
    +
  • +

    Since: 5.6.0

    +
  • +
  • +

    Arguments: 'none'

    +
  • +
  • +

    Returns: object

    +
  • +
  • +

    Example:

    +
  • +
+
getCookies()
// { token: 'xxx', name: 'saqqdy' } +
+ +
    +
  • Types:
  • +
+
declare function getCookies(): Record<string, string>
+
+ +

Set cookie

+
    +
  • +

    Since: 1.0.2

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namecookie key namestring-true-
valuecookie data, can be passed directly into Objectany-true-
secondscookie time (seconds)number-false-
pathcookie pathstring-false/
samesiteSameSite typestringStrict/Lax /NonefalseNone
+
    +
  • +

    Returns: void

    +
  • +
  • +

    Example:

    +
  • +
+
import { getCookie, setCookie } from 'js-cool'

const data1 = 100
const data2 = 200

setCookie('data1', data1)
setCookie('data2', data2, 10)

getCookie('data1') // 100
getCookie('data2') // 200

setTimeout(() => {
getCookie('data2') // null
}, 15000) +
+ +
    +
  • Types:
  • +
+
declare function setCookie<T extends string | number | boolean>(
name: string,
value: T,
seconds: string | number,
path?: string,
samesite?: boolean
): void +
+ +

Delete cookie

+
    +
  • +

    Since: 1.0.2

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namecookie key namestring-true-
+
    +
  • +

    Returns: void

    +
  • +
  • +

    Example:

    +
  • +
+
delCookie('data')
+
+ +
    +
  • Types:
  • +
+
declare function delCookie(name: string): void
+
+ +

convert strings, numbers to base64

+
    +
  • +

    Since: 1.0.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputthe string to be encodedstring/number-true-
+
    +
  • +

    Returns: void

    +
  • +
  • +

    Example:

    +
  • +
+
encodeBase64('data')
+
+ +
    +
  • Types:
  • +
+
declare function encodeBase64(name: string): string
+
+ +

base64 decoding

+
    +
  • +

    Since: 1.0.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputthe string to be decodedstring/number-true-
+
    +
  • +

    Returns: void

    +
  • +
  • +

    Example:

    +
  • +
+
decodeBase64('data')
+
+ +
    +
  • Types:
  • +
+
declare function decodeBase64(name: string): string
+
+ +

convert strings, numbers to utf8

+
    +
  • +

    Since: 1.0.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputthe string to be encodedstring/number-true-
+
    +
  • +

    Returns: void

    +
  • +
  • +

    Example:

    +
  • +
+
encodeUtf8('data')
+
+ +
    +
  • Types:
  • +
+
declare function encodeUtf8(name: string): string
+
+ +

utf8 decoding

+
    +
  • +

    Since: 1.0.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputthe string to be decodedstring/number-true-
+
    +
  • +

    Returns: void

    +
  • +
  • +

    Example:

    +
  • +
+
decodeUtf8('data')
+
+ +
    +
  • Types:
  • +
+
declare function decodeUtf8(name: string): string
+
+ +

stop bubbling

+
    +
  • +

    Since: 1.0.2

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
edom's event objectEvent-true-
+
    +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
stopBubble(event)
+
+ +
    +
  • Types:
  • +
+
declare function stopBubble(e: Event): boolean
+
+ +

stop default events

+
    +
  • +

    Since: 1.0.2

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
edom's event objectEvent-true-
+
    +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
stopDefault(event)
+
+ +
    +
  • Types:
  • +
+
declare function stopDefault(e: Event): boolean
+
+ +

event delegate, support multiple delegates

+
    +
  • +

    Since: 1.0.2

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
elementjs dom objectHTMLElement-true-
typeThe type of the event. No need to add onstring-true-
handlerCallback methodfunction-true-
+
    +
  • +

    Returns: void

    +
  • +
  • +

    Example:

    +
  • +
+
addEvent(document, 'click', functionName)
+
+ +
    +
  • Types:
  • +
+
declare function addEvent(element: AnyObject, type: string, handler: AnyFunction): void
+
+ +

removeEvent removes the event delegate created by addEvent

+
    +
  • +

    Since: 1.0.2

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
elementjs dom objectHTMLElement-true-
typeThe type of the event. No need to add onstring-true-
handlerCallback methodfunction-true-
+
    +
  • +

    Returns: void

    +
  • +
  • +

    Example:

    +
  • +
+
removeEvent(document, 'click', functionName)
+
+ +
    +
  • Types:
  • +
+
declare function removeEvent(element: AnyObject, type: string, handler: AnyFunction): void
+
+ +

Get slide to top and bottom return 'top' 'bottom', recommend using limit flow

+
    +
  • +

    Since: 1.0.2

    +
  • +
  • +

    Arguments: none

    +
  • +
  • +

    Returns: 'top' | 'bottom' | undefined

    +
  • +
  • +

    Example:

    +
  • +
+
getScrollPosition() // ‘bottom’
+
+ +
    +
  • Types:
  • +
+
declare function getScrollPosition(): string | void
+
+ +

return the next zIndex value

+
+

change mix defaults to 0

+
+
    +
  • +

    Since: 1.0.2

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
minminimum valuenumber-false0
maxmaximum valuenumber-false-
+
    +
  • +

    Returns: number

    +
  • +
  • +

    Example:

    +
  • +
+
nextIndex() // 1

nextIndex(1000) // 1001

nextIndex(10, 100) // 100 +
+ +
    +
  • Types:
  • +
+
declare function nextIndex(min?: number, max?: number): number
+
+ +

return the next version, Only version types with no more than 3 digits are supported. (Follow the npm version rules)

+
    +
  • +

    Since: 5.10.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
versionversion(like: 1.0.0)string-true-
typeversion typemajor | minor | patch | premajor | preminor | prepatch | prerelease-falsepatch
preidprerelease idstring-false''
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
nextVersion('1.2.33') // 1.2.34

nextVersion('1.2.33', 'major') // 2.0.0

nextVersion('1.2.33', 'premajor', 'alpha') // 2.0.0-alpha.1 +
+ +
    +
  • Types:
  • +
+
declare function nextVersion(
version: string,
type?: 'major' | 'minor' | 'patch' | 'premajor' | 'preminor' | 'prepatch' | 'prerelease',
preid?: string
): string +
+ +

punctual setInterval

+
+

v5.23.0 got returns of PunctualTimerReturns

+
+
    +
  • +

    Since: 5.18.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
handlerA function to be executed after the timer expires.function-true-
delayThe time, in milliseconds that the timer should wait before the specified function or code is executed. If this parameter is omitted, a value of 0 is used, meaning execute "immediately", or more accurately, the next event cycle.number-true-
...argsAdditional arguments which are passed through to the function specified by handler.any[]-false-
+
    +
  • +

    Returns: PunctualTimerReturns

    +
  • +
  • +

    Example:

    +
  • +
+
const printDate = () => console.log(new Date())
const timer = punctualTimer(printDate, 1000)
console.log(timer.count) // 10
timer.clear() // clear punctualTimer or use clearTimeout(timer.timer) +
+ +
    +
  • Types:
  • +
+
declare function punctualTimer<TArgs extends any[]>(
handler: (args: void) => void,
delay: number,
[...args]?: TArgs
): PunctualTimerReturns

declare function punctualTimer<TArgs extends any[]>(
handler: (...args: TArgs) => void,
delay: number,
[...args]?: TArgs
): PunctualTimerReturns

declare interface PunctualTimerReturns {
count: number
timer: number | null
clear: () => void
} +
+ +

Convert an object to a promise like api

+
    +
  • +

    Since: 5.10.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
originaloriginal objectobject-true-
resolverresolver functionFunction-true-
+
    +
  • +

    Returns: T & PromiseLike<T>

    +
  • +
  • +

    Example:

    +
  • +
+
import { promiseFactory, waiting } from 'js-cool'

function promise() {
const stats = {
value: 100
}

const resolver = () =>
new Promise(resolve =>
waiting(2000).then(() => {
stats.value = 200
resolve(stats)
})
)

return promiseFactory(stats, resolver)
}

const res = promise()
// res => 100
const res = await promise()
// res => 200 +
+ +
    +
  • Types:
  • +
+
declare function promiseFactory<T extends object>(
original: T,
resolver: () => Promise<any>
): T & PromiseLike<T> +
+ +

truncate a few decimal places, not 0 for shortage

+
    +
  • +

    Since: 1.0.2

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
numberthe number of digits to be processednumber/string-true-
nthe number of decimal places to keepnumber-false2
+
    +
  • +

    Returns: string | number

    +
  • +
  • +

    Example:

    +
  • +
+
fixNumber('100.888')
// 100.88

fixNumber('100.8', 2)
// 100.8

fixNumber('100.8888', 3)
// 100.888 +
+ +
    +
  • Types:
  • +
+
declare function fixNumber(number: string | number, n?: number): number
+
+ +

Replacing specific data in a template string, support ${xxxx} {{xxxx}} and {xxxx}

+
    +
  • +

    Since: 5.9.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
tmpTemplate stringstring-true-
dataTemplate data of map functionFunction| Object-true-
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
const tmp = "My name is ${name}, I'm ${age} years old."
mapTemplate(tmp, {
name: 'saqqdy',
age: 18
})
// My name is saqqdy, I'm 18 years old.

mapTemplate(tmp, key => ({ name: 'saqqdy', age: 28 })[key])
// My name is saqqdy, I'm 28 years old.

const tmp1 = "My name is {{name}}, I'm {{age}} years old."
mapTemplate(tmp1, {
name: 'saqqdy',
age: 18
})
// My name is saqqdy, I'm 18 years old. +
+ +
    +
  • Types:
  • +
+
declare function mapTemplate(
tmp: string,
data: ((value: string) => unknown) | Record<string, unknown>
): string +
+ +

deep copy & merge objects

+
    +
  • +

    Since: 1.0.2

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
targetboolean or array or objectboolean/ArrayOneMore<ExtendData>-true-
...argsarray or objectArrayOneMore<ExtendData>-true-
+
    +
  • +

    Returns: array | object

    +
  • +
  • +

    Example:

    +
  • +
+
extend(true, {}, {})
+
+ +
    +
  • Types:
  • +
+
declare function extend(
target: ExtendObjectData,
...args: ArrayOneMore<ExtendObjectData>
): ExtendObjectData

declare function extend(target: boolean, ...args: ArrayOneMore<ExtendObjectData>): ExtendObjectData

declare function extend(
target: ExtendArrayData,
...args: ArrayOneMore<ExtendArrayData>
): ExtendArrayData

declare function extend(target: boolean, ...args: ArrayOneMore<ExtendArrayData>): ExtendArrayData

declare type ExtendArrayData = any[]

declare type ExtendData = ExtendArrayData | ExtendObjectData

declare type ExtendObjectData = Record<string, any> +
+ +

deep copy (Buffer, Promise, Set, Map are not supported)

+
    +
  • +

    Since: 5.15.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
sourcesource objectany-true-
+
    +
  • +

    Returns: object

    +
  • +
  • +

    Example:

    +
  • +
+
const source = { a: 100, reg: /\d+/g, arr: [1, 2] }
const res = clone(source)
// { a: 100, reg: /\d+/g, arr: [1, 2] } +
+ +
    +
  • Types:
  • +
+
declare function clone<T = any>(parent: T): T
+
+ +

anti-dither throttling

+
    +
  • +

    Since: 1.0.2

    +
  • +
  • +

    Arguments: none

    +
  • +
  • +

    Returns: void

    +
  • +
  • +

    Example:

    +
  • +
+
const delay = new Delay()

delay.register('key', () => {
//
}) +
+ +
    +
  • Types:
  • +
+
declare function delay(): {
map: any
register(id: string, fn: AnyFunction, time: number, boo: boolean): void
destroy(id: string): void
} +
+ +

Get the target type

+
    +
  • +

    Since: 1.0.2

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
targetany targetany-true-
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
getType({}) // object
getType([]) // array
getType(new Promise()) // promise
getType(new Date()) // date
getType(async () => {}) // function
getType(navigator) // navigator
getType(global) // global
getType(window) // window
getType(Symbol('')) // symbol +
+ +
    +
  • Types:
  • +
+
declare function getType<T = any>(
target: T
):
| 'string'
| 'number'
| 'bigint'
| 'boolean'
| 'symbol'
| 'undefined'
| 'object'
| 'function'
| 'window'
| 'error'
| 'promise'
| 'math'
| 'document'
| 'navigator'
| 'global'
| 'array'
| 'date'
| 'regexp'
| 'null' +
+ +

Determine file type based on link suffix

+
    +
  • +

    Since: 5.11.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urlfile urlstring-true-
+
    +
  • +

    Returns: object

    +
  • +
  • +

    Example:

    +
  • +
+
getFileType('/name.png')
// { "suffix": "png", "type": "image" }

getFileType('/name.PDF')
// { "suffix": "pdf", "type": "pdf" }

getFileType('/name.xyz')
// { "suffix": "xyz", "type": "other" } +
+ +
    +
  • Types:
  • +
+
declare function getFileType(url: string): {
suffix: string
type: 'audio' | 'video' | 'image' | 'other' | 'word' | 'txt' | 'excel' | 'pdf' | 'ppt' | 'zip'
} +
+ +

Sorter factory function

+
    +
  • +

    Since: 5.14.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
localesA string with a BCP 47 language tag, or an array of such stringsstring Array-false-
optionsAn object adjusting the output format.Intl.CollatorOptions-false-
+
    +
  • +

    Returns: Function

    +
  • +
  • +

    Example:

    +
  • +
+
const items = ['啊我', '波拉', 'abc', 0, 3, '10', ',11', 13, null, '阿吧', 'ABB', 'BDD', 'ACD', 'ä']

items.sort(
sorter('zh-Hans-CN', {
ignorePunctuation: true,
sensitivity: 'variant',
numeric: true
})
)
// [ 0, 3, "10", ",11", 13, "ä", "ABB", "abc", "ACD", "BDD", null, "阿吧", "啊我", "波拉" ] +
+ +
    +
  • Types:
  • +
+
declare function sorter(
locales?: string | string[],
options?: Intl.CollatorOptions
): <T = string, P = string>(a: T, b: P) => number +
+ +

Sort Chinese by Chinese phonetic alphabet

+
    +
  • +

    Since: 5.14.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
aThe first element for comparison.any-true-
bThe second element for comparison.any-true-
optionsAn object adjusting the output format.Intl.CollatorOptions-false-
+
    +
  • +

    Returns: number

    +
  • +
  • +

    Example:

    +
  • +
+
const items = ['啊我', '波拉', 'abc', 0, 3, '10', ',11', 13, null, '阿吧', 'ABB', 'BDD', 'ACD', 'ä']

items.sort(sortPinyin)
// [ ",11", 0, "10", 13, 3, "ä", "ABB", "abc", "ACD", "BDD", null, "阿吧", "啊我", "波拉" ]

items.sort((a, b) => sortPinyin(a, b, { ignorePunctuation: true, numeric: true }))
// [ 0, 3, "10", ",11", 13, "ä", "ABB", "abc", "ACD", "BDD", null, "阿吧", "啊我", "波拉" ] +
+ +
    +
  • Types:
  • +
+
declare function sortPinyin<T = string, P = string>(
a: T,
b: P,
options?: Intl.CollatorOptions
): number +
+ +

Data cleaning methods

+
    +
  • +

    Since: 1.0.2

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
datathe object to be cleanedobject-true-
mapthe data queue to be cleaned, can be passed as array or objectarray/object-true-
nullFixthe value returned if there is no corresponding property, the default does not return the propertyany-false-
+
    +
  • +

    Returns: any

    +
  • +
  • +

    Example:

    +
  • +
+
//
+
+ +
    +
  • Types:
  • +
+
declare function cleanData(data: any, map: any[] | AnyObject, nullFix?: any): any
+
+ +

Several ways of file downloading:

+
    +
  1. For file formats that some browsers do not recognize. Enter the file URL in the address bar, window.location.href = URL, window.open(URL);
  2. +
  3. using a tag download attribute (or js create a tag);
  4. +
  5. browser-recognizable pdf, txt files, back-end compatible with handling attachment;
  6. +
  7. add token in the header for authenticated download, use XmlHttpRequest to want to backend to launch the request
  8. +
+
    +
  • +

    Since: 1.0.5

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urlurl linkstring-true-
filenamefile namestring-true-
typedownload typestringhref/open/download/requestfalsedownload
+
    +
  • +

    Returns: void

    +
  • +
  • +

    Example:

    +
  • +
+
download('https://unpkg.com/browse/js-cool@5.2.0/dist/index.global.prod.js')
+
+ +
    +
  • Types:
  • +
+
declare function download(url: string, filename: string, type?: string): void
+
+ +

tree object depth lookup

+
    +
  • +

    Since: 5.0.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
treetree objectarray/object-true-
expressionrequired Query methodany-true-
keySetoptional Default subclass name, query nameSearchKeySet-true-
numberoptional Number of lookups, if not passed, query allnumber-false-
+
    +
  • +

    Returns: any

    +
  • +
  • +

    Example:

    +
  • +
+
//
+
+ +
    +
  • Types:
  • +
+
declare function searchObject(
tree: object | any[],
expression: any,
keySet: SearchKeySet,
number?: number
): any[] +
+ +

Open link in new tab (file jump download if browser can't parse)

+
    +
  • +

    Since: 1.0.6

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urlhttp urlstring-true-
+
    +
  • +

    Returns: boolean | undefined

    +
  • +
  • +

    Example:

    +
  • +
+
openUrl('https://www.saqqdy.com/js-cool')
+
+ +
    +
  • Types:
  • +
+
declare function openUrl(url: string): void
+
+ +

copy to clipboard

+
    +
  • +

    Since: 5.0.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
valueany valueany-true-
+
    +
  • +

    Returns: boolean | undefined

    +
  • +
  • +

    Example:

    +
  • +
+
copy('10000')
+
+ +
    +
  • Types:
  • +
+
declare function copy(value: string): boolean | undefined
+
+ +

Digital thousandths division

+
    +
  • +

    Since: 3.0.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
numthe numberstring/number-true-
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
toThousands(10000) // '10,000'
+
+ +
    +
  • Types:
  • +
+
declare function toThousands(num: string | number): string
+
+ +

return true if the provided predicate function returns true for all elements in a set, otherwise return false

+
    +
  • +

    Since: 1.0.9

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
arrthe target arrayarray-true-
fnthe judgment methodfunction-true-
+
    +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
all([4, 2, 3], x => x > 1)
// true +
+ +
    +
  • Types:
  • +
+
declare const all: <T = unknown>(arr: T[], fn: AnyFunction) => boolean
+
+ +

Returns true if the provided predicate function returns true for at least one element of a set, false otherwise

+
    +
  • +

    Since: 1.0.9

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
arrthe target arrayarray-true-
fnthe judgment methodfunction-true-
+
    +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
any([0, 1, 2, 0], x => x >= 2)
// true +
+ +
    +
  • Types:
  • +
+
declare const any: <T = unknown>(arr: T[], fn: AnyFunction) => boolean
+
+ +

generate uuid on browser side, use v4 method

+
    +
  • +

    Since: 1.0.9

    +
  • +
  • +

    Arguments: none

    +
  • +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
uuid() // '4222fcfe-5721-4632-bede-6043885be57d'
+
+ +
    +
  • Types:
  • +
+
declare const uuid: () => string
+
+ +

Converts a comma-separated string of values (CSV) to a 2D array.

+
    +
  • +

    Since: 1.0.9

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
datacsv datastring-true-
delimiterdelimiterstring-false','
omitFirstRowthe first row is the table header databoolean-falsefalse
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
CSVToArray('a,b\\nc,d') // `[['a','b'],['c','d']]`
CSVToArray('a;b\\\nc;d', ';') // `[['a','b'],['c','d']]`
CSVToArray('col1,col2\\\na,b\\\nc,d', ',', true) // `[['a','b'],['c','d']]` +
+ +
    +
  • Types:
  • +
+
declare const CSVToArray: (data: string, delimiter?: string, omitFirstRow?: boolean) => string[][]
+
+ +

Converts a two-dimensional array to a comma-separated string of values (CSV).

+
    +
  • +

    Since: 1.0.9

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
arrjson dataarray-true-
delimiterdelimiterstring-false','
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
arrayToCSV([
['a', 'b'],
['c', 'd']
])
// '"a", "b" \n "c", "d"'

arrayToCSV(
[
['a', 'b'],
['c', 'd']
],
';'
)
// '"a"; "b"\n "c"; "d"'

arrayToCSV([
['a', '"b" great'],
['c', 3.1415]
])
// '"a", """b"" great"\n "c",3.1415' +
+ +
    +
  • Types:
  • +
+
declare function arrayToCSV<T extends unknown[][]>(data: T, delimiter?: string): string
+
+ +

Converts a comma-separated string of values (CSV) to an array of 2D objects. The first line of the string is used as the header line.

+
    +
  • +

    Since: 1.0.9

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
datacsv datastring-true-
delimiterdelimiterstring-false','
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
CSVToJSON('col1,col2\\na,b\\\nc,d')
// `[{'col1': 'a', 'col2': 'b'}, {'col1': 'c', 'col2': 'd'}]`

CSVToJSON('col1;col2\\\na;b\\\nc;d', ';')
// `[{'col1': 'a', 'col2': 'b'}, {'col1': 'c', 'col2': 'd'}]` +
+ +
    +
  • Types:
  • +
+
declare function CSVToJSON(data: string, delimiter?: string): any[]
+
+ +

Converts an array of objects to a comma-separated value (CSV) string containing only the specified columns.

+
    +
  • +

    Since: 1.0.9

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
arrjson dataarray-true-
columnsthe specified columnsarray-true-
delimiterdelimiterstring-false','
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
JSONToCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b']) // 'a,b\n "1", "2"\n "3", "4"\n "6",""\n"", "7"'
JSONToCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b'], ';') // 'a;b\n "1"; "2"\n "3"; "4"\n "6";""\n""; "7"' +
+ +
    +
  • Types:
  • +
+
declare const JSONToCSV: (arr: any[], columns: any[], delimiter?: string) => string
+
+ +

Converts RGB component values to color codes.

+
    +
  • +

    Since: 1.0.9

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
rthe 1st value of RGBnumber-true-
gRGB's 2nd valuenumber-true-
bRGB's 3nd valuenumber-true-
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
RGBToHex(255, 165, 1) // 'ffa501'
+
+ +
    +
  • Types:
  • +
+
declare const RGBToHex: (r: number, g: number, b: number) => string
+
+ +

Find the intersection of multiple arrays

+
    +
  • +

    Since: 2.2.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
...arrarray targetsarray-true-
+
    +
  • +

    Returns: array

    +
  • +
  • +

    Example:

    +
  • +
+
intersect([1, 2], [2, 3, 4], [2, 8], [2, '33']) // [2]
+
+ +
    +
  • Types:
  • +
+
declare function intersect<T = unknown>(...args: T[][]): T[]
+
+ +

Find the concatenation of multiple arrays

+
    +
  • +

    Since: 2.2.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
...arrarray targetsarray-true-
+
    +
  • +

    Returns: array

    +
  • +
  • +

    Example:

    +
  • +
+
union([1, 2], [2, '33']) // [1, 2, '33']
+
+ +
    +
  • Types:
  • +
+
declare function union<T = unknown>(...args: T[][]): T[]
+
+ +

Find the set of differences of multiple arrays that belong to A but not to B/C/D... of the elements of

+
    +
  • +

    Since: 2.2.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
...arrarray targetsarray-true-
+
    +
  • +

    Returns: array

    +
  • +
  • +

    Example:

    +
  • +
+
minus([1, 2], [2, '33'], [2, 4]) // [1]
+
+ +
    +
  • Types:
  • +
+
declare function minus<T = unknown>(...args: T[][]): T[]
+
+ +

Find the complement of multiple arrays

+
    +
  • +

    Since: 2.2.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
...arrarray targetsarray-true-
+
    +
  • +

    Returns: array

    +
  • +
  • +

    Example:

    +
  • +
+
complement([1, 2], [2, '33'], [2]) // [1, '33']
+
+ +
    +
  • Types:
  • +
+
declare function complement<T = unknown>(...args: T[][]): T[]
+
+ +

Whether the array contains the specified element

+
    +
  • +

    Since: 2.2.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
arrarray targetarray-true-
itemany array memberany-true-
+
    +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
contains([1, 2], 2) // true
contains([1, 2], 3) // false +
+ +
    +
  • Types:
  • +
+
declare function contains(arr: any[], item: any): boolean
+
+ +

Array de-duplication

+
    +
  • +

    Since: 2.2.1

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
arrarray targetarray-true-
+
    +
  • +

    Returns: array

    +
  • +
  • +

    Example:

    +
  • +
+
unique([1, 2, 2, '33']) // [1, 2, '33']
+
+ +
    +
  • Types:
  • +
+
declare function unique<T = unknown>(arr: T[]): T[]
+
+ +

ipv6 address completion

+
    +
  • +

    Since: 2.2.2

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
ipip addressstring-true-
+
    +
  • +

    Returns: string

    +
  • +
  • +

    Example:

    +
  • +
+
fillIPv6('2409:8005:800::2') // '2409:8005:0800:0000:0000:0000:0000:0002'
fillIPv6('2409:8005:800::1c') // '2409:8005:0800:0000:0000:0000:0000:001c' +
+ +
    +
  • Types:
  • +
+
declare function fillIPv6(ip: string): string
+
+ +

Get array, object property values based on path string

+
+

v5.19.0 support defaultValue

+
+
    +
  • +

    Since: 2.2.4

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
targettarget array, objectarray/object-true-
propquery target, can pass functionstring/function-true-
defaultValuedefault valueany-false-
+
    +
  • +

    Returns: any

    +
  • +
  • +

    Example:

    +
  • +
+
const target = {
a: 1,
b: [
{
c: 2,
d: NaN
}
]
}
getProperty(target, 'a') // 1
getProperty(target, 'd', 100) // 100
getProperty(target, 'b[0].c') // 2
getProperty(target, 'b[0].d', 100) // 100
getProperty(target, () => 'a') // 1 +
+ +
    +
  • Types:
  • +
+
export declare function getProperty<T extends Record<string, any>>(
target: T,
prop:
| string
| {
(): string
},
defaultValue?: any
): any

export declare function getProperty<T extends Array<any>>(
target: T,
prop:
| string
| {
(): string
},
defaultValue?: any
): any +
+ +

Set array, object property values based on path string

+
    +
  • +

    Since: 2.7.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
targettarget array, objectarray/object-true-
propset target, support function, 'a' | 'a[1].c'string/function-true-
valuevalueany-true-
+
    +
  • +

    Returns: any

    +
  • +
  • +

    Example:

    +
  • +
+
const target = {
a: 1,
b: [
{
c: 2
}
]
}
setProperty(target, 'a', 2)
setProperty(target, 'b[0].c', 3)
setProperty(target, () => 'a', 100) +
+ +
    +
  • Types:
  • +
+
declare function setProperty(
target: any,
prop:
| string
| {
(): string
},
value: any
): any +
+ +

load resources dynamically, support js, images, css links, css style strings

+
    +
  • +

    Since: 2.8.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urllink to the resource, type must be passed when passing in styleStringstring-true-
optionsparameters: attrs, props, forceSourceOptions-false-
+
    +
  • +

    Returns: boolean | imageUrl

    +
  • +
  • +

    Example:

    +
  • +
+
loadSource('/source/url', options)
+
+ +
    +
  • Types:
  • +
+
import { ImageAttributes } from 'mount-image'
import { LinkAttributes } from 'mount-css'
import { ScriptAttributes } from 'mount-script'
import { StyleAttributes } from 'mount-style'

declare function loadSource(
url: string,
option: SourceFileType | SourceOptions
): Promise<boolean | string>

declare type SourceFileType = 'js' | 'img' | 'css' | 'style' | string

declare interface SourceOptions {
type: SourceFileType
attrs?: LinkAttributes | StyleAttributes | ScriptAttributes | ImageAttributes
props?: LinkAttributes | StyleAttributes | ScriptAttributes | ImageAttributes
force?: boolean
} +
+ +

dynamically load css link resources

+
    +
  • +

    Since: 2.8.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urlresource urlstring-true-
optionsparameters: attrs, props, forceCssOptions-false-
+
    +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
mountCss('/source/url', options)
+
+ +
    +
  • Types:
  • +
+
declare interface CssOptions {
attrs?: LinkAttributes
props?: LinkAttributes
force?: boolean
}

declare interface HTMLLinkElementEX extends HTMLLinkElement {
onreadystatechange?: any
readyState?: 'loaded' | 'complete'
}

declare type LinkAttributes = Pick<
HTMLLinkElement,
| 'as'
| 'charset'
| 'crossOrigin'
| 'disabled'
| 'href'
| 'hreflang'
| 'imageSizes'
| 'imageSrcset'
| 'integrity'
| 'media'
| 'referrerPolicy'
| 'rel'
| 'rev'
| 'target'
| 'type'
>

declare function mountCss(src: string, option?: CssOptions): Promise<boolean> +
+ +

load image resource dynamically

+
    +
  • +

    Since: 2.8.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urlresource urlstring-true-
optionsparameters: attrs, props, forceImgOptions-false-
+
    +
  • +

    Returns: boolean | imageUrl

    +
  • +
  • +

    Example:

    +
  • +
+
mountImg('/source/url', options)
+
+ +
    +
  • Types:
  • +
+
declare interface HTMLImageElementEX extends HTMLImageElement {
onreadystatechange?: any
readyState?: 'loaded' | 'complete'
}

declare type ImageAttributes = Pick<
HTMLImageElement,
| 'align'
| 'alt'
| 'border'
| 'crossOrigin'
| 'decoding'
| 'height'
| 'hspace'
| 'isMap'
| 'loading'
| 'longDesc'
| 'lowsrc'
| 'name'
| 'referrerPolicy'
| 'sizes'
| 'src'
| 'srcset'
| 'useMap'
| 'vspace'
| 'width'
>

declare interface ImgOptions {
attrs?: ImageAttributes
props?: ImageAttributes
force?: boolean
}

declare function mountImage(src: string, option?: ImgOptions): Promise<boolean | string> +
+ +

load js link resources dynamically

+
    +
  • +

    Since: 2.8.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urlresource urlstring-true-
optionsparameters: attrs, props, forceJsOptions-false-
+
    +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
mountJs('/source/url', options)
+
+ +
    +
  • Types:
  • +
+
declare interface HTMLScriptElementEX extends HTMLScriptElement {
onreadystatechange?: any
readyState?: 'loaded' | 'complete'
}

declare interface JsOptions {
attrs?: ScriptAttributes
props?: ScriptAttributes
force?: boolean
}

declare function mountJs(src: string, option?: JsOptions): Promise<boolean>

declare type ScriptAttributes = Pick<
HTMLScriptElement,
| 'async'
| 'charset'
| 'crossOrigin'
| 'defer'
| 'event'
| 'htmlFor'
| 'integrity'
| 'noModule'
| 'referrerPolicy'
| 'src'
| 'text'
| 'type'
> +
+ +

load css styles dynamically

+
    +
  • +

    Since: 2.8.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urlresource urlstring-true-
optionsparameters: attrs, props, forceStyleOptions-false-
+
    +
  • +

    Returns: boolean

    +
  • +
  • +

    Example:

    +
  • +
+
mountStyle('/source/url', options)
+
+ +
    +
  • Types:
  • +
+
declare function mountStyle(css: string, option?: StyleOptions): Promise<boolean>

declare type StyleAttributes = Pick<HTMLStyleElement, 'disabled' | 'media' | 'type'>

declare interface StyleOptions {
attrs?: StyleAttributes
props?: StyleAttributes
} +
+ +

Image preloading

+
    +
  • +

    Since: 5.5.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
imagesimages urlstring array-true-
+
    +
  • +

    Returns: void

    +
  • +
  • +

    Example:

    +
  • +
+
preloader('path/of/image')

preloader(['path/of/image']) +
+ +
    +
  • Types:
  • +
+
declare function preloader(images: string): HTMLImageElement

declare function preloader(images: string[]): Record<string, HTMLImageElement> +
+ +
+

v5.8.1 Support throw on timeout

+
+

waiting for a while

+
    +
  • +

    Since: 5.5.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
millisecondswaiting time (milliseconds)number-true-
throwOnTimeoutthrow on timeoutboolean-falsefalse
+
    +
  • +

    Returns: Promise<void>

    +
  • +
  • +

    Example:

    +
  • +
+
waiting(2000)

await waiting(2000, true)
// reject +
+ +
    +
  • Types:
  • +
+
declare function waiting(milliseconds: number, throwOnTimeout?: boolean): Promise<void>
+
+ +

Async await wrapper for easy error handling

+
+

v5.7.0 Extend awaitTo to support passing in multiple promises

+
+
    +
  • +

    Since: 5.2.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
promisepromise functionPromise Promise[]-true-
...promisesPromise rest paramsPromise[]-false-
+
    +
  • +

    Returns: [Error, undefined] or [null, data | data[]]

    +
  • +
  • +

    Example:

    +
  • +
+
import { awaitTo as to } from 'js-cool'

// 1. simple use
const [err, data] = await to(new Promise())
if (err) {
// handle request error
}

// 2. Pass in multiple promises
const [err, data] = await to(promise1, promise2)
// or
const [err, data] = await to([promise1, promise2]) +
+ +
    +
  • Types:
  • +
+
declare function awaitTo<T, E = Error>(promise: Promise<T>): Promise<[E, undefined] | [null, T]>

declare function awaitTo<P extends readonly unknown[] | [], E = Error>(
promise: PromiseAll<P>
): Promise<[E, undefined] | [null, P]>

declare function awaitTo<T, P extends readonly unknown[] | [], E = Error>(
promise: Promise<T>,
...promises: PromiseAll<P>
): Promise<[E, undefined] | [null, [T, ...P]]>

export declare type PromiseAll<P extends readonly unknown[] | []> = {
-readonly [K in keyof P]: Promise<P[K]>
} +
+ +

arrayBuffer to base64

+
+

v5.19.1 remove default params of mime

+
+
    +
  • +

    Since: 5.13.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputarrayBuffer dataArrayBuffer-true-
mimeimage mimeString-false-
+
    +
  • +

    Returns: String

    +
  • +
  • +

    Example:

    +
  • +
+
arrayBufferToBase64(arrayBuffer, 'image/png')
// data:image/png;base64,xxxxxxxxxxxx

arrayBufferToBase64(arrayBuffer)
// xxxxxxxxxxxx +
+ +
    +
  • Types:
  • +
+
declare function arrayBufferToBase64(input: ArrayBuffer, mime?: string): string
+
+ +

arrayBuffer to blob

+
    +
  • +

    Since: 5.13.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputarrayBuffer dataArrayBuffer-true-
mimeimage mimeString-falseimage/png
+
    +
  • +

    Returns: Blob

    +
  • +
  • +

    Example:

    +
  • +
+
arrayBufferToBlob(arrayBuffer, 'image/png')
// Blob +
+ +
    +
  • Types:
  • +
+
declare function arrayBufferToBlob(input: ArrayBuffer, mime?: string): Blob
+
+ +

base64 to arrayBuffer

+
    +
  • +

    Since: 5.13.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputbase64 stringString-true-
+
    +
  • +

    Returns: ArrayBuffer

    +
  • +
  • +

    Example:

    +
  • +
+
base64ToArrayBuffer(base64)
// ArrayBuffer +
+ +
    +
  • Types:
  • +
+
declare function base64ToArrayBuffer(input: string): ArrayBuffer
+
+ +

base64 to blob

+
    +
  • +

    Since: 5.13.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputbase64 stringString-true-
+
    +
  • +

    Returns: Blob

    +
  • +
  • +

    Example:

    +
  • +
+
base64ToBlob(base64)
// Blob +
+ +
    +
  • Types:
  • +
+
declare function base64ToBlob(input: string): Blob
+
+ +

base64 to file

+
    +
  • +

    Since: 5.13.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputbase64 stringString-true-
fileNamefile nameString-true-
+
    +
  • +

    Returns: File

    +
  • +
  • +

    Example:

    +
  • +
+
base64ToFile(base64, 'image.png')
// File +
+ +
    +
  • Types:
  • +
+
declare function base64ToFile(input: string, fileName: string): File
+
+ +

blob to arrayBuffer

+
    +
  • +

    Since: 5.13.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputblob dataBlob-true-
+
    +
  • +

    Returns: ArrayBuffer

    +
  • +
  • +

    Example:

    +
  • +
+
blobToArrayBuffer(blob).then(data => {
// ArrayBuffer
}) +
+ +
    +
  • Types:
  • +
+
declare function blobToArrayBuffer(input: Blob): Promise<ArrayBuffer | null>
+
+ +

blob to base64

+
    +
  • +

    Since: 5.13.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputblob dataBlob-true-
+
    +
  • +

    Returns: String

    +
  • +
  • +

    Example:

    +
  • +
+
blobToBase64(blob).then(data => {
// data:image/png;base64,xxxxxxxxxxxx
}) +
+ +
    +
  • Types:
  • +
+
declare function blobToBase64(input: Blob): Promise<string | null>
+
+ +

blob to url

+
    +
  • +

    Since: 5.13.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputblob dataBlob-true-
+
    +
  • +

    Returns: Object

    +
  • +
  • +

    Example:

    +
  • +
+
blobToUrl(blob)
// blob:xxxxxxx +
+ +
    +
  • Types:
  • +
+
declare function blobToUrl(input: Blob): string
+
+ +

file to base64

+
    +
  • +

    Since: 5.13.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputfile dataFile-true-
+
    +
  • +

    Returns: String

    +
  • +
  • +

    Example:

    +
  • +
+
fileToBase64(file).then(data => {
// data:image/png;base64,xxxxxxxxxxxx
}) +
+ +
    +
  • Types:
  • +
+
declare function fileToBase64(input: File): Promise<string | null>
+
+ +

svg to blob

+
    +
  • +

    Since: 5.13.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputsvg stringString-true-
+
    +
  • +

    Returns: Blob

    +
  • +
  • +

    Example:

    +
  • +
+
svgToBlob(svg)
// Blob +
+ +
    +
  • Types:
  • +
+
declare function svgToBlob(input: string): Blob
+
+ +

url to blob

+
    +
  • +

    Since: 5.13.0

    +
  • +
  • +

    Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputurlString-true-
+
    +
  • +

    Returns: Blob

    +
  • +
  • +

    Example:

    +
  • +
+
urlToBlob(url).then(blob => {
// Blob
}) +
+ +
    +
  • Types:
  • +
+
declare function urlToBlob(input: string): Promise<Blob | null>
+
+ +

Please open an issue here.

+

MIT

+
diff --git a/interfaces/AnyFunction.html b/interfaces/AnyFunction.html new file mode 100644 index 0000000..ea313d6 --- /dev/null +++ b/interfaces/AnyFunction.html @@ -0,0 +1 @@ +AnyFunction | JS-COOL DOCS - v5.23.1

Interface AnyFunction

Hierarchy (View Summary)

  • Parameters

    • ...args: any[]

    Returns any

Indexable

  • [key: string]: any
diff --git a/interfaces/ArrayOne.html b/interfaces/ArrayOne.html new file mode 100644 index 0000000..af1bc37 --- /dev/null +++ b/interfaces/ArrayOne.html @@ -0,0 +1,2 @@ +ArrayOne | JS-COOL DOCS - v5.23.1

Interface ArrayOne<T>

interface ArrayOne<T> {
    "0": T;
}

Type Parameters

  • T

Properties

0 +

Properties

"0": T
diff --git a/interfaces/BrowserVersion.html b/interfaces/BrowserVersion.html new file mode 100644 index 0000000..745bae2 --- /dev/null +++ b/interfaces/BrowserVersion.html @@ -0,0 +1,3 @@ +BrowserVersion | JS-COOL DOCS - v5.23.1

Interface BrowserVersion

interface BrowserVersion {
    name:
        | "Safari"
        | "Chrome"
        | "IE"
        | "Edge"
        | "Firefox"
        | "Firefox Focus"
        | "Chromium"
        | "Opera"
        | "Vivaldi"
        | "Yandex"
        | "Arora"
        | "Lunascape"
        | "QupZilla"
        | "Coc Coc"
        | "Kindle"
        | "Iceweasel"
        | "Konqueror"
        | "Iceape"
        | "SeaMonkey"
        | "Epiphany"
        | "360"
        | "360SE"
        | "360EE"
        | "Maxthon"
        | "QQBrowser"
        | "QQ"
        | "Baidu"
        | "UC"
        | "Sogou"
        | "Liebao"
        | "LBBROWSER"
        | "2345Explorer"
        | "115Browser"
        | "TheWorld"
        | "XiaoMi"
        | "Vivo"
        | "Quark"
        | "Qiyu"
        | "Wechat"
        | "WechatWork"
        | "Taobao"
        | "Alipay"
        | "Weibo"
        | "Douban"
        | "Suning"
        | "iQiYi"
        | "DingTalk"
        | "Huawei";
    version: string;
}

Properties

Properties

name:
    | "Safari"
    | "Chrome"
    | "IE"
    | "Edge"
    | "Firefox"
    | "Firefox Focus"
    | "Chromium"
    | "Opera"
    | "Vivaldi"
    | "Yandex"
    | "Arora"
    | "Lunascape"
    | "QupZilla"
    | "Coc Coc"
    | "Kindle"
    | "Iceweasel"
    | "Konqueror"
    | "Iceape"
    | "SeaMonkey"
    | "Epiphany"
    | "360"
    | "360SE"
    | "360EE"
    | "Maxthon"
    | "QQBrowser"
    | "QQ"
    | "Baidu"
    | "UC"
    | "Sogou"
    | "Liebao"
    | "LBBROWSER"
    | "2345Explorer"
    | "115Browser"
    | "TheWorld"
    | "XiaoMi"
    | "Vivo"
    | "Quark"
    | "Qiyu"
    | "Wechat"
    | "WechatWork"
    | "Taobao"
    | "Alipay"
    | "Weibo"
    | "Douban"
    | "Suning"
    | "iQiYi"
    | "DingTalk"
    | "Huawei"
version: string
diff --git a/interfaces/DirParamType.html b/interfaces/DirParamType.html new file mode 100644 index 0000000..7e561d6 --- /dev/null +++ b/interfaces/DirParamType.html @@ -0,0 +1,3 @@ +DirParamType | JS-COOL DOCS - v5.23.1

Interface DirParamType

interface DirParamType {
    path?: string[];
    host?: string;
}

Properties

Properties

path?: string[]
host?: string
diff --git a/interfaces/JSONArray.html b/interfaces/JSONArray.html new file mode 100644 index 0000000..a93c536 --- /dev/null +++ b/interfaces/JSONArray.html @@ -0,0 +1,222 @@ +JSONArray | JS-COOL DOCS - v5.23.1

Interface JSONArray

interface JSONArray {
    find<S extends JSONValue>(
        predicate: (
            value: JSONValue,
            index: number,
            obj: JSONValue[],
        ) => value is S,
        thisArg?: any,
    ): undefined | S;
    find(
        predicate: (
            value: JSONValue,
            index: number,
            obj: JSONValue[],
        ) => unknown,
        thisArg?: any,
    ): JSONValue;
    findIndex(
        predicate: (
            value: JSONValue,
            index: number,
            obj: JSONValue[],
        ) => unknown,
        thisArg?: any,
    ): number;
    fill(value: JSONValue, start?: number, end?: number): this;
    copyWithin(target: number, start: number, end?: number): this;
    "[iterator]"(): ArrayIterator<JSONValue>;
    entries(): ArrayIterator<[number, JSONValue]>;
    keys(): ArrayIterator<number>;
    values(): ArrayIterator<JSONValue>;
    "[unscopables]": {
        find?: any;
        findIndex?: any;
        fill?: any;
        copyWithin?: any;
        "[iterator]"?: any;
        entries?: any;
        keys?: any;
        values?: any;
        "[unscopables]"?: boolean;
        includes?: any;
        flatMap?: any;
        flat?: any;
        at?: any;
        findLast?: any;
        findLastIndex?: any;
        toReversed?: any;
        toSorted?: any;
        toSpliced?: any;
        with?: any;
        length?: boolean;
        toString?: any;
        toLocaleString?: any;
        pop?: any;
        push?: any;
        concat?: any;
        join?: any;
        reverse?: any;
        shift?: any;
        slice?: any;
        sort?: any;
        splice?: any;
        unshift?: any;
        indexOf?: any;
        lastIndexOf?: any;
        every?: any;
        some?: any;
        forEach?: any;
        map?: any;
        filter?: any;
        reduce?: any;
        reduceRight?: any;
        [key: number]: undefined | boolean;
    };
    includes(searchElement: JSONValue, fromIndex?: number): boolean;
    flatMap<U, This = undefined>(
        callback: (
            this: This,
            value: JSONValue,
            index: number,
            array: JSONValue[],
        ) => U | readonly U[],
        thisArg?: This,
    ): U[];
    flat<A, D extends number = 1>(this: A, depth?: D): FlatArray<A, D>[];
    at(index: number): JSONValue;
    findLast<S extends JSONValue>(
        predicate: (
            value: JSONValue,
            index: number,
            array: JSONValue[],
        ) => value is S,
        thisArg?: any,
    ): undefined | S;
    findLast(
        predicate: (
            value: JSONValue,
            index: number,
            array: JSONValue[],
        ) => unknown,
        thisArg?: any,
    ): JSONValue;
    findLastIndex(
        predicate: (
            value: JSONValue,
            index: number,
            array: JSONValue[],
        ) => unknown,
        thisArg?: any,
    ): number;
    toReversed(): JSONValue[];
    toSorted(compareFn?: (a: JSONValue, b: JSONValue) => number): JSONValue[];
    toSpliced(
        start: number,
        deleteCount: number,
        ...items: JSONValue[],
    ): JSONValue[];
    toSpliced(start: number, deleteCount?: number): JSONValue[];
    with(index: number, value: JSONValue): JSONValue[];
    length: number;
    toString(): string;
    toLocaleString(): string;
    toLocaleString(
        locales: string | string[],
        options?: NumberFormatOptions & DateTimeFormatOptions,
    ): string;
    pop(): JSONValue;
    push(...items: JSONValue[]): number;
    concat(...items: ConcatArray<JSONValue>[]): JSONValue[];
    concat(...items: (JSONValue | ConcatArray<JSONValue>)[]): JSONValue[];
    join(separator?: string): string;
    reverse(): JSONValue[];
    shift(): JSONValue;
    slice(start?: number, end?: number): JSONValue[];
    sort(compareFn?: (a: JSONValue, b: JSONValue) => number): this;
    splice(start: number, deleteCount?: number): JSONValue[];
    splice(
        start: number,
        deleteCount: number,
        ...items: JSONValue[],
    ): JSONValue[];
    unshift(...items: JSONValue[]): number;
    indexOf(searchElement: JSONValue, fromIndex?: number): number;
    lastIndexOf(searchElement: JSONValue, fromIndex?: number): number;
    every<S extends JSONValue>(
        predicate: (
            value: JSONValue,
            index: number,
            array: JSONValue[],
        ) => value is S,
        thisArg?: any,
    ): this is S[];
    every(
        predicate: (
            value: JSONValue,
            index: number,
            array: JSONValue[],
        ) => unknown,
        thisArg?: any,
    ): boolean;
    some(
        predicate: (
            value: JSONValue,
            index: number,
            array: JSONValue[],
        ) => unknown,
        thisArg?: any,
    ): boolean;
    forEach(
        callbackfn: (
            value: JSONValue,
            index: number,
            array: JSONValue[],
        ) => void,
        thisArg?: any,
    ): void;
    map<U>(
        callbackfn: (value: JSONValue, index: number, array: JSONValue[]) => U,
        thisArg?: any,
    ): U[];
    filter<S extends JSONValue>(
        predicate: (
            value: JSONValue,
            index: number,
            array: JSONValue[],
        ) => value is S,
        thisArg?: any,
    ): S[];
    filter(
        predicate: (
            value: JSONValue,
            index: number,
            array: JSONValue[],
        ) => unknown,
        thisArg?: any,
    ): JSONValue[];
    reduce(
        callbackfn: (
            previousValue: JSONValue,
            currentValue: JSONValue,
            currentIndex: number,
            array: JSONValue[],
        ) => JSONValue,
    ): JSONValue;
    reduce(
        callbackfn: (
            previousValue: JSONValue,
            currentValue: JSONValue,
            currentIndex: number,
            array: JSONValue[],
        ) => JSONValue,
        initialValue: JSONValue,
    ): JSONValue;
    reduce<U>(
        callbackfn: (
            previousValue: U,
            currentValue: JSONValue,
            currentIndex: number,
            array: JSONValue[],
        ) => U,
        initialValue: U,
    ): U;
    reduceRight(
        callbackfn: (
            previousValue: JSONValue,
            currentValue: JSONValue,
            currentIndex: number,
            array: JSONValue[],
        ) => JSONValue,
    ): JSONValue;
    reduceRight(
        callbackfn: (
            previousValue: JSONValue,
            currentValue: JSONValue,
            currentIndex: number,
            array: JSONValue[],
        ) => JSONValue,
        initialValue: JSONValue,
    ): JSONValue;
    reduceRight<U>(
        callbackfn: (
            previousValue: U,
            currentValue: JSONValue,
            currentIndex: number,
            array: JSONValue[],
        ) => U,
        initialValue: U,
    ): U;
    [n: number]: JSONValue;
}

Hierarchy

Indexable

Properties

"[unscopables]": {
    find?: any;
    findIndex?: any;
    fill?: any;
    copyWithin?: any;
    "[iterator]"?: any;
    entries?: any;
    keys?: any;
    values?: any;
    "[unscopables]"?: boolean;
    includes?: any;
    flatMap?: any;
    flat?: any;
    at?: any;
    findLast?: any;
    findLastIndex?: any;
    toReversed?: any;
    toSorted?: any;
    toSpliced?: any;
    with?: any;
    length?: boolean;
    toString?: any;
    toLocaleString?: any;
    pop?: any;
    push?: any;
    concat?: any;
    join?: any;
    reverse?: any;
    shift?: any;
    slice?: any;
    sort?: any;
    splice?: any;
    unshift?: any;
    indexOf?: any;
    lastIndexOf?: any;
    every?: any;
    some?: any;
    forEach?: any;
    map?: any;
    filter?: any;
    reduce?: any;
    reduceRight?: any;
    [key: number]: undefined | boolean;
}

Is an object whose properties have the value 'true' +when they will be absent when used in a 'with' statement.

+

Type declaration

  • [key: number]: undefined | boolean
  • Optional Readonly[unscopables]?: boolean

    Is an object whose properties have the value 'true' +when they will be absent when used in a 'with' statement.

    +
  • Optionallength?: boolean

    Gets or sets the length of the array. This is a number one higher than the highest index in the array.

    +
length: number

Gets or sets the length of the array. This is a number one higher than the highest index in the array.

+

Methods

  • Returns the value of the first element in the array where predicate is true, and undefined +otherwise.

    +

    Type Parameters

    Parameters

    • predicate: (value: JSONValue, index: number, obj: JSONValue[]) => value is S

      find calls predicate once for each element of the array, in ascending +order, until it finds one where predicate returns true. If such an element is found, find +immediately returns that element value. Otherwise, find returns undefined.

      +
    • OptionalthisArg: any

      If provided, it will be used as the this value for each invocation of +predicate. If it is not provided, undefined is used instead.

      +

    Returns undefined | S

  • Parameters

    • predicate: (value: JSONValue, index: number, obj: JSONValue[]) => unknown
    • OptionalthisArg: any

    Returns JSONValue

  • Returns the index of the first element in the array where predicate is true, and -1 +otherwise.

    +

    Parameters

    • predicate: (value: JSONValue, index: number, obj: JSONValue[]) => unknown

      find calls predicate once for each element of the array, in ascending +order, until it finds one where predicate returns true. If such an element is found, +findIndex immediately returns that element index. Otherwise, findIndex returns -1.

      +
    • OptionalthisArg: any

      If provided, it will be used as the this value for each invocation of +predicate. If it is not provided, undefined is used instead.

      +

    Returns number

  • Changes all array elements from start to end index to a static value and returns the modified array

    +

    Parameters

    • value: JSONValue

      value to fill array section with

      +
    • Optionalstart: number

      index to start filling the array at. If start is negative, it is treated as +length+start where length is the length of the array.

      +
    • Optionalend: number

      index to stop filling the array at. If end is negative, it is treated as +length+end.

      +

    Returns this

  • Returns the this object after copying a section of the array identified by start and end +to the same array starting at position target

    +

    Parameters

    • target: number

      If target is negative, it is treated as length+target where length is the +length of the array.

      +
    • start: number

      If start is negative, it is treated as length+start. If end is negative, it +is treated as length+end.

      +
    • Optionalend: number

      If not specified, length of the this object is used as its default value.

      +

    Returns this

  • Iterator

    +

    Returns ArrayIterator<JSONValue>

  • Returns an iterable of key, value pairs for every entry in the array

    +

    Returns ArrayIterator<[number, JSONValue]>

  • Returns an iterable of keys in the array

    +

    Returns ArrayIterator<number>

  • Returns an iterable of values in the array

    +

    Returns ArrayIterator<JSONValue>

  • Determines whether an array includes a certain element, returning true or false as appropriate.

    +

    Parameters

    • searchElement: JSONValue

      The element to search for.

      +
    • OptionalfromIndex: number

      The position in this array at which to begin searching for searchElement.

      +

    Returns boolean

  • Calls a defined callback function on each element of an array. Then, flattens the result into +a new array. +This is identical to a map followed by flat with depth 1.

    +

    Type Parameters

    • U
    • This = undefined

    Parameters

    • callback: (
          this: This,
          value: JSONValue,
          index: number,
          array: JSONValue[],
      ) => U | readonly U[]

      A function that accepts up to three arguments. The flatMap method calls the +callback function one time for each element in the array.

      +
    • OptionalthisArg: This

      An object to which the this keyword can refer in the callback function. If +thisArg is omitted, undefined is used as the this value.

      +

    Returns U[]

  • Returns a new array with all sub-array elements concatenated into it recursively up to the +specified depth.

    +

    Type Parameters

    • A
    • D extends number = 1

    Parameters

    • this: A
    • Optionaldepth: D

      The maximum recursion depth

      +

    Returns FlatArray<A, D>[]

  • Returns the item located at the specified index.

    +

    Parameters

    • index: number

      The zero-based index of the desired code unit. A negative index will count back from the last item.

      +

    Returns JSONValue

  • Returns the value of the last element in the array where predicate is true, and undefined +otherwise.

    +

    Type Parameters

    Parameters

    • predicate: (value: JSONValue, index: number, array: JSONValue[]) => value is S

      findLast calls predicate once for each element of the array, in descending +order, until it finds one where predicate returns true. If such an element is found, findLast +immediately returns that element value. Otherwise, findLast returns undefined.

      +
    • OptionalthisArg: any

      If provided, it will be used as the this value for each invocation of +predicate. If it is not provided, undefined is used instead.

      +

    Returns undefined | S

  • Parameters

    • predicate: (value: JSONValue, index: number, array: JSONValue[]) => unknown
    • OptionalthisArg: any

    Returns JSONValue

  • Returns the index of the last element in the array where predicate is true, and -1 +otherwise.

    +

    Parameters

    • predicate: (value: JSONValue, index: number, array: JSONValue[]) => unknown

      findLastIndex calls predicate once for each element of the array, in descending +order, until it finds one where predicate returns true. If such an element is found, +findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.

      +
    • OptionalthisArg: any

      If provided, it will be used as the this value for each invocation of +predicate. If it is not provided, undefined is used instead.

      +

    Returns number

  • Returns a copy of an array with its elements reversed.

    +

    Returns JSONValue[]

  • Returns a copy of an array with its elements sorted.

    +

    Parameters

    • OptionalcompareFn: (a: JSONValue, b: JSONValue) => number

      Function used to determine the order of the elements. It is expected to return +a negative value if the first argument is less than the second argument, zero if they're equal, and a positive +value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.

      +
      [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]
      +
      + +

    Returns JSONValue[]

  • Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array.

    +

    Parameters

    • start: number

      The zero-based location in the array from which to start removing elements.

      +
    • deleteCount: number

      The number of elements to remove.

      +
    • ...items: JSONValue[]

      Elements to insert into the copied array in place of the deleted elements.

      +

    Returns JSONValue[]

    The copied array.

    +
  • Copies an array and removes elements while returning the remaining elements.

    +

    Parameters

    • start: number

      The zero-based location in the array from which to start removing elements.

      +
    • OptionaldeleteCount: number

      The number of elements to remove.

      +

    Returns JSONValue[]

    A copy of the original array with the remaining elements.

    +
  • Copies an array, then overwrites the value at the provided index with the +given value. If the index is negative, then it replaces from the end +of the array.

    +

    Parameters

    • index: number

      The index of the value to overwrite. If the index is +negative, then it replaces from the end of the array.

      +
    • value: JSONValue

      The value to write into the copied array.

      +

    Returns JSONValue[]

    The copied array with the updated value.

    +
  • Returns a string representation of an array.

    +

    Returns string

  • Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.

    +

    Returns string

  • Parameters

    • locales: string | string[]
    • Optionaloptions: NumberFormatOptions & DateTimeFormatOptions

    Returns string

  • Removes the last element from an array and returns it. +If the array is empty, undefined is returned and the array is not modified.

    +

    Returns JSONValue

  • Appends new elements to the end of an array, and returns the new length of the array.

    +

    Parameters

    • ...items: JSONValue[]

      New elements to add to the array.

      +

    Returns number

  • Combines two or more arrays. +This method returns a new array without modifying any existing arrays.

    +

    Parameters

    • ...items: ConcatArray<JSONValue>[]

      Additional arrays and/or items to add to the end of the array.

      +

    Returns JSONValue[]

  • Combines two or more arrays. +This method returns a new array without modifying any existing arrays.

    +

    Parameters

    • ...items: (JSONValue | ConcatArray<JSONValue>)[]

      Additional arrays and/or items to add to the end of the array.

      +

    Returns JSONValue[]

  • Adds all the elements of an array into a string, separated by the specified separator string.

    +

    Parameters

    • Optionalseparator: string

      A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.

      +

    Returns string

  • Reverses the elements in an array in place. +This method mutates the array and returns a reference to the same array.

    +

    Returns JSONValue[]

  • Removes the first element from an array and returns it. +If the array is empty, undefined is returned and the array is not modified.

    +

    Returns JSONValue

  • Returns a copy of a section of an array. +For both start and end, a negative index can be used to indicate an offset from the end of the array. +For example, -2 refers to the second to last element of the array.

    +

    Parameters

    • Optionalstart: number

      The beginning index of the specified portion of the array. +If start is undefined, then the slice begins at index 0.

      +
    • Optionalend: number

      The end index of the specified portion of the array. This is exclusive of the element at the index 'end'. +If end is undefined, then the slice extends to the end of the array.

      +

    Returns JSONValue[]

  • Sorts an array in place. +This method mutates the array and returns a reference to the same array.

    +

    Parameters

    • OptionalcompareFn: (a: JSONValue, b: JSONValue) => number

      Function used to determine the order of the elements. It is expected to return +a negative value if the first argument is less than the second argument, zero if they're equal, and a positive +value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.

      +
      [11,2,22,1].sort((a, b) => a - b)
      +
      + +

    Returns this

  • Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.

    +

    Parameters

    • start: number

      The zero-based location in the array from which to start removing elements.

      +
    • OptionaldeleteCount: number

      The number of elements to remove.

      +

    Returns JSONValue[]

    An array containing the elements that were deleted.

    +
  • Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.

    +

    Parameters

    • start: number

      The zero-based location in the array from which to start removing elements.

      +
    • deleteCount: number

      The number of elements to remove.

      +
    • ...items: JSONValue[]

      Elements to insert into the array in place of the deleted elements.

      +

    Returns JSONValue[]

    An array containing the elements that were deleted.

    +
  • Inserts new elements at the start of an array, and returns the new length of the array.

    +

    Parameters

    • ...items: JSONValue[]

      Elements to insert at the start of the array.

      +

    Returns number

  • Returns the index of the first occurrence of a value in an array, or -1 if it is not present.

    +

    Parameters

    • searchElement: JSONValue

      The value to locate in the array.

      +
    • OptionalfromIndex: number

      The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.

      +

    Returns number

  • Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.

    +

    Parameters

    • searchElement: JSONValue

      The value to locate in the array.

      +
    • OptionalfromIndex: number

      The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.

      +

    Returns number

  • Determines whether all the members of an array satisfy the specified test.

    +

    Type Parameters

    Parameters

    • predicate: (value: JSONValue, index: number, array: JSONValue[]) => value is S

      A function that accepts up to three arguments. The every method calls +the predicate function for each element in the array until the predicate returns a value +which is coercible to the Boolean value false, or until the end of the array.

      +
    • OptionalthisArg: any

      An object to which the this keyword can refer in the predicate function. +If thisArg is omitted, undefined is used as the this value.

      +

    Returns this is S[]

  • Determines whether all the members of an array satisfy the specified test.

    +

    Parameters

    • predicate: (value: JSONValue, index: number, array: JSONValue[]) => unknown

      A function that accepts up to three arguments. The every method calls +the predicate function for each element in the array until the predicate returns a value +which is coercible to the Boolean value false, or until the end of the array.

      +
    • OptionalthisArg: any

      An object to which the this keyword can refer in the predicate function. +If thisArg is omitted, undefined is used as the this value.

      +

    Returns boolean

  • Determines whether the specified callback function returns true for any element of an array.

    +

    Parameters

    • predicate: (value: JSONValue, index: number, array: JSONValue[]) => unknown

      A function that accepts up to three arguments. The some method calls +the predicate function for each element in the array until the predicate returns a value +which is coercible to the Boolean value true, or until the end of the array.

      +
    • OptionalthisArg: any

      An object to which the this keyword can refer in the predicate function. +If thisArg is omitted, undefined is used as the this value.

      +

    Returns boolean

  • Performs the specified action for each element in an array.

    +

    Parameters

    • callbackfn: (value: JSONValue, index: number, array: JSONValue[]) => void

      A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.

      +
    • OptionalthisArg: any

      An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

      +

    Returns void

  • Calls a defined callback function on each element of an array, and returns an array that contains the results.

    +

    Type Parameters

    • U

    Parameters

    • callbackfn: (value: JSONValue, index: number, array: JSONValue[]) => U

      A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.

      +
    • OptionalthisArg: any

      An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

      +

    Returns U[]

  • Returns the elements of an array that meet the condition specified in a callback function.

    +

    Type Parameters

    Parameters

    • predicate: (value: JSONValue, index: number, array: JSONValue[]) => value is S

      A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

      +
    • OptionalthisArg: any

      An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

      +

    Returns S[]

  • Returns the elements of an array that meet the condition specified in a callback function.

    +

    Parameters

    • predicate: (value: JSONValue, index: number, array: JSONValue[]) => unknown

      A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

      +
    • OptionalthisArg: any

      An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

      +

    Returns JSONValue[]

  • Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

    +

    Parameters

    • callbackfn: (
          previousValue: JSONValue,
          currentValue: JSONValue,
          currentIndex: number,
          array: JSONValue[],
      ) => JSONValue

      A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

      +

    Returns JSONValue

  • Parameters

    Returns JSONValue

  • Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

    +

    Type Parameters

    • U

    Parameters

    • callbackfn: (
          previousValue: U,
          currentValue: JSONValue,
          currentIndex: number,
          array: JSONValue[],
      ) => U

      A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

      +
    • initialValue: U

      If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

      +

    Returns U

  • Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

    +

    Parameters

    • callbackfn: (
          previousValue: JSONValue,
          currentValue: JSONValue,
          currentIndex: number,
          array: JSONValue[],
      ) => JSONValue

      A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

      +

    Returns JSONValue

  • Parameters

    Returns JSONValue

  • Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

    +

    Type Parameters

    • U

    Parameters

    • callbackfn: (
          previousValue: U,
          currentValue: JSONValue,
          currentIndex: number,
          array: JSONValue[],
      ) => U

      A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

      +
    • initialValue: U

      If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

      +

    Returns U

diff --git a/interfaces/OsVersion.html b/interfaces/OsVersion.html new file mode 100644 index 0000000..cd44c3a --- /dev/null +++ b/interfaces/OsVersion.html @@ -0,0 +1,3 @@ +OsVersion | JS-COOL DOCS - v5.23.1

Interface OsVersion

interface OsVersion {
    name:
        | "Windows"
        | "MacOS"
        | "Android"
        | "iOS"
        | "WindowsPhone"
        | "Debian"
        | "WebOS"
        | "Harmony";
    version: string;
}

Properties

Properties

name:
    | "Windows"
    | "MacOS"
    | "Android"
    | "iOS"
    | "WindowsPhone"
    | "Debian"
    | "WebOS"
    | "Harmony"
version: string
diff --git a/interfaces/PlainObject.html b/interfaces/PlainObject.html new file mode 100644 index 0000000..bdf49de --- /dev/null +++ b/interfaces/PlainObject.html @@ -0,0 +1 @@ +PlainObject | JS-COOL DOCS - v5.23.1

Interface PlainObject

Indexable

diff --git a/interfaces/PunctualTimerReturns.html b/interfaces/PunctualTimerReturns.html new file mode 100644 index 0000000..22f320a --- /dev/null +++ b/interfaces/PunctualTimerReturns.html @@ -0,0 +1,4 @@ +PunctualTimerReturns | JS-COOL DOCS - v5.23.1

Interface PunctualTimerReturns

interface PunctualTimerReturns {
    count: number;
    timer: null | number;
    clear: () => void;
}

Properties

Properties

count: number
timer: null | number
clear: () => void
diff --git a/interfaces/RandomStringOptions.html b/interfaces/RandomStringOptions.html new file mode 100644 index 0000000..90c3f02 --- /dev/null +++ b/interfaces/RandomStringOptions.html @@ -0,0 +1,7 @@ +RandomStringOptions | JS-COOL DOCS - v5.23.1

Interface RandomStringOptions

interface RandomStringOptions {
    length?: number;
    charTypes?: RandomStringCharType | ArrayOneMore<RandomStringCharType>;
    noConfuse?: boolean;
    strict?: boolean;
}

Properties

length?: number
noConfuse?: boolean

Elimination of confusing characters: oOLl,9gq,Vv,Uu,I1

+
strict?: boolean

The generated random string must contain each of the listed character types

+
diff --git a/interfaces/SearchKeySet.html b/interfaces/SearchKeySet.html new file mode 100644 index 0000000..d7fbc20 --- /dev/null +++ b/interfaces/SearchKeySet.html @@ -0,0 +1,3 @@ +SearchKeySet | JS-COOL DOCS - v5.23.1

Interface SearchKeySet

interface SearchKeySet {
    childName: string;
    keyName: string;
    [prop: string]: any;
}

Indexable

  • [prop: string]: any

Properties

Properties

childName: string
keyName: string
diff --git a/interfaces/SpliceUrlParamOptions.html b/interfaces/SpliceUrlParamOptions.html new file mode 100644 index 0000000..d1612cf --- /dev/null +++ b/interfaces/SpliceUrlParamOptions.html @@ -0,0 +1,4 @@ +SpliceUrlParamOptions | JS-COOL DOCS - v5.23.1

Interface SpliceUrlParamOptions

interface SpliceUrlParamOptions {
    covert?: boolean;
    encode?: boolean;
    withQuestionsMark?: boolean;
}

Properties

covert?: boolean
encode?: boolean
withQuestionsMark?: boolean
diff --git a/interfaces/Version-1.html b/interfaces/Version-1.html new file mode 100644 index 0000000..ca74b6f --- /dev/null +++ b/interfaces/Version-1.html @@ -0,0 +1,6 @@ +Version | JS-COOL DOCS - v5.23.1

Interface Version

interface Version {
    major: number;
    minor: number;
    patch: number;
    preid: string;
    release?: number;
}

Properties

Properties

major: number
minor: number
patch: number
preid: string
release?: number
diff --git a/interfaces/WindowSizeObj.html b/interfaces/WindowSizeObj.html new file mode 100644 index 0000000..17e653c --- /dev/null +++ b/interfaces/WindowSizeObj.html @@ -0,0 +1,3 @@ +WindowSizeObj | JS-COOL DOCS - v5.23.1

Interface WindowSizeObj

interface WindowSizeObj {
    width: number;
    height: number;
}

Properties

Properties

width: number
height: number
diff --git a/media/CHANGELOG.md b/media/CHANGELOG.md new file mode 100644 index 0000000..0b2c2ba --- /dev/null +++ b/media/CHANGELOG.md @@ -0,0 +1,407 @@ +# Change logs + +## 2025.01.17 v5.23.1 + +1. docs work +2. upgrade all packages + +## 2024.11.18 v5.23.0 + +1. `punctualTimer` got returns of PunctualTimerReturns + +## 2024.11.15 v5.22.1 + +1. fix bugs of `nextVersion` + +## 2024.10.16 v5.22.0 + +1. new `isNumberBrowser` function, see: [isNumberBrowser](https://github.com/saqqdy/js-cool#isnumberbrowser) +2. Default value of agent string for `getOsVersion` and `getAppVersion` changed to navigator.appVersion. + +## 2024.08.27 v5.21.2 + +1. `pattern` support mac/ip4/ip4_pri + +## 2024.08.12 v5.21.1 + +1. `osVersion` support Harmony + +## 2024.08.09 v5.21.0 + +1. `spliceUrlParam` Breaking change: SpliceUrlParamOptions + +## 2024.08.09 v5.20.0 + +1. `spliceUrlParam` Breaking change: remove encodeURIComponent + +## 2024.05.30 v5.19.2 + +1. upgrade `await-to-done`, fix types + +## 2024.04.29 v5.19.1 + +1. remove default params of `arrayBufferToBase64` + +## 2024.04.27 v5.19.0 + +1. `getProperty` support defaultValue +2. fix types +3. upgrade all packages + +## 2024.03.11 v5.18.1 + +1. fix types +2. fix export error + +## 2024.03.07 v5.18.0 + +1. new `punctualTimer` function, see: [punctualTimer](https://github.com/saqqdy/js-cool#punctualtimer) + +## 2024.01.21 v5.17.1 + +1. `safeParse` `safeStringify` supports converting bigint + +## 2024.01.22 v5.17.0 + +1. `randomColor` supports a range of custom color values, which can be used to customize the generation of dark, light, warm, etc. + +## 2024.01.21 v5.16.0 + +1. new `safeParse` `safeStringify` function +2. upgrade all packages + +## 2023.11.13 v5.15.2 + +1. move `awaitTo` to `await-to-done` function, see: [await-to-done](https://github.com/saqqdy/await-to-done) +2. fix circle require + +## 2023.11.06 v5.15.0 + +1. new `clone` function, see: [clone](https://github.com/saqqdy/js-cool#clone) +2. new `isDate` function, see: [isDate](https://github.com/saqqdy/js-cool#isdate) +3. new `isRegExp` function, see: [isRegExp](https://github.com/saqqdy/js-cool#isregexp) + +## 2023.11.01 v5.14.1 + +1. docs work + +## 2023.10.31 v5.14.0 + +1. new `sorter` function, see: [sorter](https://github.com/saqqdy/js-cool#sorter) +2. new `sortPinyin` function, see: [sortPinyin](https://github.com/saqqdy/js-cool#sortpinyin) +3. upgrade all packages + +## 2023.10.27 v5.13.0 + +1. new `arrayBufferToBase64` function, see: [arrayBufferToBase64](https://github.com/saqqdy/js-cool#arraybuffertobase64) +2. new `arrayBufferToBlob` function, see: [arrayBufferToBlob](https://github.com/saqqdy/js-cool#arraybuffertoblob) +3. new `base64ToArrayBuffer` function, see: [base64ToArrayBuffer](https://github.com/saqqdy/js-cool#base64toarraybuffer) +4. new `base64ToBlob` function, see: [base64ToBlob](https://github.com/saqqdy/js-cool#base64toblob) +5. new `base64ToFile` function, see: [base64ToFile](https://github.com/saqqdy/js-cool#base64tofile) +6. new `blobToArrayBuffer` function, see: [blobToArrayBuffer](https://github.com/saqqdy/js-cool#blobtoarraybuffer) +7. new `blobToBase64` function, see: [blobToBase64](https://github.com/saqqdy/js-cool#blobtobase64) +8. new `blobToUrl` function, see: [blobToUrl](https://github.com/saqqdy/js-cool#blobtourl) +9. new `fileToBase64` function, see: [fileToBase64](https://github.com/saqqdy/js-cool#filetobase64) +10. new `svgToBlob` function, see: [svgToBlob](https://github.com/saqqdy/js-cool#svgtoblob) +11. new `urlToBlob` function, see: [urlToBlob](https://github.com/saqqdy/js-cool#urltoblob) +12. new `inNodeJs` function, see: [inNodeJs](https://github.com/saqqdy/js-cool#innodejs) + +## 2023.10.09 v5.12.0 + +1. new `isEqual` function, see: [isEqual](https://github.com/saqqdy/js-cool#isequal) +2. upgrade all packages + +## 2023.10.09 v5.11.0 + +1. new `getFileType` function, see: [getFileType](https://github.com/saqqdy/js-cool#getfiletype) +2. upgrade all packages + +## 2023.09.23 v5.10.0 + +1. new `nextVersion` function, see: [nextVersion](https://github.com/saqqdy/js-cool#nextversion) +2. new `promiseFactory` function, see: [promiseFactory](https://github.com/saqqdy/js-cool#promiseFactory) + +## 2023.09.20 v5.9.0 + +1. new `mapTemplate` function, see: [mapTemplate](https://github.com/saqqdy/js-cool#maptemplate) + +## 2023.09.16 v5.8.1 + +1. `waiting` support throw on timeout [API Docs](https://www.saqqdy.com/js-cool#waiting) + +## 2023.09.11 v5.8.0 + +1. `compareVersion` support tag version [API Docs](https://www.saqqdy.com/js-cool#compareversion) + +## 2023.09.06 v5.7.2 + +1. fix regexp bug of appVersion + +## 2023.09.01 v5.7.1 + +1. revert nextIndex function + +## 2023.08.22 v5.7.0 + +1. new `isIterable` function, see: [isIterable](https://github.com/saqqdy/js-cool#isiterable) +2. Extend awaitTo to support passing in multiple promises, see: [awaitTo](https://github.com/saqqdy/js-cool#awaitto) +3. fix types +4. upgrade all packages + +## 2023.08.18 v5.6.0 + +1. new `getCookies` function, see: [getCookies](https://github.com/saqqdy/js-cool#getcookies) +2. some improvements for getType/getSession/getCache/fixNumber +3. fix bugs: toThousands/parseUrlParam +4. new pattern.number/nextIndex +5. deprecated getScrollPosition +6. fix types + +## 2023.08.10 v5.5.0 + +1. new `preloader` `escape` `unescape` `randomColor` `isDarkMode` `waiting` function, see: [preloader](https://github.com/saqqdy/js-cool#preloader), [escape](https://github.com/saqqdy/js-cool#escape), [unescape](https://github.com/saqqdy/js-cool#unescape), [randomColor](https://github.com/saqqdy/js-cool#randomcolor), [isDarkMode](https://github.com/saqqdy/js-cool#isdarkmode), [waiting](https://github.com/saqqdy/js-cool#waiting) + +## 2023.08.05 v5.4.0 + +1. new `shuffle` `randomNumbers` function, see: [shuffle](https://github.com/saqqdy/js-cool#shuffle), [randomNumbers](https://github.com/saqqdy/js-cool#randomnumbers) +2. Band new randomString function, see: [randomString](https://github.com/saqqdy/js-cool#randomstring) + +## 2023.08.02 v5.3.2 + +1. Optimize usage of `getQueryParams` `getUrlParams` +2. upgrade all packages + +## 2023.07.31 v5.3.1 + +1. fix appVersion bug + +## 2023.07.18 v5.3.0 + +1. new `spliceUrlParam` function +2. deprecated `isDigitals` +3. fix types & bugs +4. docs work + +## 2023.07.17 v5.2.0 + +1. new `awaitTo` `fingerprint` `browserVersion` function +2. fix bugs of `osVersion` +3. deprecated `trim` `pattern` `getDirParam` +4. docs work + +## 2023.07.07 v5.1.0 + +1. add `appVersion` `osVersion` +2. deprecated `getOsVersion` `getAppVersion` + +## 2023.07.05 v5.0.0 + +1. add `copy` `getQueryParam` `getQueryParams` `getUrlParams` function +2. change the params of `getUrlParam` +3. add `isWindow` function +4. add `isObject` `isArray` function +5. remove `getRandomStrWidthSpecialChar` +6. remove `getParameter` +7. remove `getIsAppVersionLastest`, use `compareVersion` instead +8. `searchTreeObject` rename to `searchObject` +9. `getRandomNum` rename to `randomNumber` +10. `getRandomStr` rename to `randomString` +11. upgrade all packages + +## 2023.06.14 v4.7.0 + +1. add `compareVersion` [API Docs](https://www.saqqdy.com/js-cool#compareversion) +2. upgrade all packages + +## 2023.06.06 v4.6.0 + +1. drop `textareaInsertText` & `textareaMoveToEnd`, If you still need to use it, we using [grace-textarea](https://github.com/saqqdy/grace-textarea) + +## 2023.06.05 v4.5.0 + +1. add `inBrowser` [API Docs](https://www.saqqdy.com/js-cool#inbrowser) +2. some translate work +3. upgrade all packages + +## 2023.05.31 v4.4.1 + +1. fix esm module + +## 2023.05.23 v4.4.0 + +1. fix outputs +2. fix exports + +## 2023.05.22 v4.3.0 + +1. fix export default +2. fix types +3. upgrade all packages + +## 2023.05.21 v4.2.0 + +1. use `use-downloads` +2. some translate work + +## 2023.05.20 v4.1.0 + +1. use `load-source` `mount-css` `mount-image` `mount-script` `mount-style` +2. some translate work + +## 2023.05.18 v4.0.0 + +1. split `csv` into `arrayToCSV` `CSVToArray` `CSVToJSON` `JSONToCSV` +2. split `cache` into `setCache` `getCache` `delCache` +3. split `session`into `setSession` `getSession` `delSession` +4. split `cookie` into `setCookie` `getCookie` `delCookie` +5. drop `tslib` package +6. new build scripts & output + +## 2023.04.07 v3.1.0 + +1. Optimize build output by removing `tslib` from the package + +## 2023.04.06 v3.0.0 + +1. remove `imgAdapt` `imgChoose` `throttle` `debounce` `enWxJumpLink` `enWxJumpLinkOld` `deWxJumpLink` `deWxJumpLinkOld` `clearHtmlExpSN` ` clearHtmlN` `clearHtmlNS` `clearHtmlTag` `formatTime` `formatTimeStr` `getFileType` `clearBr` +2. move `arrayToCSV` `CSVToArray` `CSVToJSON` `JSONToCSV` to `csv` +3. move `setCache` `getCache` `delCache` to `cache` +4. move `setSession` `getSession` `delSession` to `session` +5. move `setCookie` `getCookie` `delCookie` to `cookie` +6. add `isPlainObject` function +7. support `const addEvent = require('js-cool/addEvent')` This introduction method +8. build product differentiate between esnext and es5, default output esnext +9. `splitThousand` => `toThousands` +10. `getWindowSize` => `windowSize` +11. new `extend` function + +## 2022.12.13 v2.8.0 + +1. `loadSource` `mountCss` `mountImg` `mountJs` `mountStyle` new support for passing in custom properties, adjusting the input form, and improving the ts type, fixing IE compatibility issues +2. dependency package upgrade + +## 2022.12.07 v2.7.1 + +Extend the types supported by `getType` method. + +## 2022.12.04 v2.7.0 + +1. add `setProperty` method +2. fix getProperty bug + +## 2022.12.04 v2.6.0 + +1. add `loadSource` `mountCss` `mountImg` `mountJs` `mountStyle` 5 methods +2. upgrade the dependency package + +## 2022.09.10 v2.5.0 + +1. adjust exports export method, focus on supporting node esm mode +2. optimize build scripts +3. upgrade dependency packages + +## 2022.08.23 v2.4.0 + +1. upgrade dependency packages +2. optimize the build process + +## 2022.03.12 v2.3.2 + +1. upgrade dependency packages +2. optimize the documentation + +## 2022.02.25 v2.3.1 + +1. fix `tslib` package issue + +## 2021.11.11 v2.3.0 + +1. export module to keep default +2. upgrade dependency package + +## 2021.10.23 v2.2.4 + +1. add getProperty method + +## 2021.10.19 v2.2.3 + +1. improve fillIPv6 method + +## 2021.10.18 v2.2.2 + +1. add fillIPv6 method + +## 2021.10.15 v2.2.1 + +1. add methods to find the intersection, concatenation, difference and complement of multiple arrays +2. add contains method +3. add a unique method for de-duplication + +## 2021.09.21 v2.1.3 + +1. build output banner + +## 2021.09.10 v2.1.2 + +1. improve typescript types +2. upgrade dependency package + +## 2021.09.02 v2.1.1 + +1. refine typescript types + +## 2021.08.29 v2.1.0 + +1. add build es module + +## 2021.08.28 v2.0.1 + +1. fix several issues +2. optimize code, optimize documentation + +## 2021.08.26 v2.0.0 + +1. refactor all the code to typescript +2. rewrite method comments according to tsdoc specification + +## 2021.07.26 v1.1.0 + +1. use webpack to build umd package + +## 2021.03.03 v1.0.9 + +1. add all/any/RGBToHex/uuid methods +2. add CSV to object conversion methods: arrayToCSV/CSVToArray/CSVToJSON/JSONtoCSV + +## 2021.03.02 v1.0.8 + +1. add splitThousand method + +## 2021.03.01 v1.0.7 + +1. fix nextIndex bug + +## 2021.02.18 v1.0.6 + +1. add openUrl method + +## 2021.02.18 v1.0.5 + +1. add download/searchTreeObject method + +## 2021.02.08 v1.0.4 + +1. update getCookie/setCookie methods + +## 2021.02.01 v1.0.3 + +1. handle bugs + +## 2021.01.23 v1.0.2 + +1. add nextIndex,fixNumber,delay,extend,getType,isArray,cleanData,getCache,setCache,delCache +2. delete getLocal,setLocal,delLocal + +## 2020.12.14 v1.0.1 + +1. create project diff --git a/media/LICENSE b/media/LICENSE new file mode 100644 index 0000000..d2570ec --- /dev/null +++ b/media/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2018 saqqdy + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/media/README-zh_CN.md b/media/README-zh_CN.md new file mode 100644 index 0000000..d5497ef --- /dev/null +++ b/media/README-zh_CN.md @@ -0,0 +1,227 @@ +
+ +# js-cool + +这是一个 Javascript 常用方法库 + +[![NPM version][npm-image]][npm-url] +[![Codacy Badge][codacy-image]][codacy-url] +[![tree shaking][tree-shaking-image]][tree-shaking-url] +![typescript][typescript-url] +[![Test coverage][codecov-image]][codecov-url] +[![npm download][download-image]][download-url] +[![gzip][gzip-image]][gzip-url] +[![License][license-image]][license-url] + +[![Sonar][sonar-image]][sonar-url] + +
+ +
+ +### **[Documentation](https://www.saqqdy.com/js-cool)** • **[Change Log](./CHANGELOG.md)** + +**使用其他语言阅读:[English](./README.md) | 简体中文** + +
+ +## 安装 + +```bash +# 使用pnpm安装 +pnpm install js-cool + +# 使用npm安装 +npm install --save js-cool +``` + +## 使用 + +### ES6 模块方式引入 + +```js +import { osVersion } from 'js-cool' + +osVersion() +``` + +### Node.js require + +```js +const { osVersion } = require('js-cool') + +osVersion() +``` + +2. 使用 CDN 引入 + +```html + + +``` + +## 所有方法汇总 + +```js +const functionList = { + // 全局参数 + client, // client方法返回一个浏览器判断结果对象 + pattern, // pattern返回一些常用的正则 + // String扩展、数组方法 + trim, // 根据传参来去除空格 + clearAttr, // 去除HTML标签所有属性 + clearHtml, // 去除HTML标签 + escape, // 转义HTML特殊字符 + unescape, // 还原转义HTML特殊字符 + getNumber, // 获取字符串中的数字 + camel2Dash, // 将驼峰字符串转成-间隔且全小写的Dash模式 + dash2Camel, // 将-间隔且全小写的Dash模式转成驼峰字符串 + randomColor, // 生成随机16进制颜色 + randomNumber, // 获取随机整数 + randomNumbers, // 获取总和固定的n个随机整数 + randomString, // 获取随机字符串 + shuffle, // 打乱字符串或数组的顺序 + fingerprint, // 生成浏览器指纹 + getCHSLength, // 获取字符串长度,中文算2个字符 + cutCHSString, // 截取字符串,中文算2个字节 + // 获取一下状态 + isDigitals, // 是否为由数字组成的字符串 + isExitsFunction, // 是否存在指定函数 + isExitsVariable, // 是否存在指定变量 + isEqual, // 比较2个对象是否相等 + isWindow, // 是否window对象 + isPlainObject, // 是否plainObject + isDarkMode, // 是否暗色模式 + isObject, // 是否object类型 + isDate, // 是否日期类型 + isRegExp, // 是否正则类型 + isArray, // 判断是否数组 + isIterable, // 判断是否可迭代对象 + inBrowser, // 判断是否在浏览器端运行 + inNodeJs, // 判断是否在nodejs环境运行 + isNumberBrowser, // 判断是否360浏览器 + windowSize, // windowSize获取窗口大小 + getAppVersion, // 获取APP版本号(deprecated) + appVersion, // 获取APP版本号 + getOsVersion, // 获取系统版本(deprecated) + osVersion, // 获取系统名称和版本 + browserVersion, // 获取浏览器版本 + compareVersion, // 版本号大小对比 + parseUrlParam, // 解析url参数(key1=value1&key2=value2) + spliceUrlParam, // 拼接URL参数(仅支持单层) + safeParse, // 安全解析JSON字符串 + safeStringify, // 安全转换JSON对象为字符串 + getDirParam, // 获取目录形式URL参数 + getQueryParam, // 获取query参数(#后面) + getQueryParams, // 获取所有query参数(#后面) + getUrlParam, // 获取单个URL参数 + getUrlParams, // 获取所有URL参数 + // 缓存、cookie、session + getCache, // 读取localStorage + setCache, // 写入localStorage + delCache, // 删除localStorage + getSession, // 读取sessionStorage + setSession, // 写入sessionStorage + delSession, // 删除sessionStorage + getCookie, // 读取cookie + getCookies, // 读取所有cookie + setCookie, // 写入cookie + delCookie, // 删除cookie + // 编码与解码 + encodeBase64, // 字符串、数字转base64 + encodeUtf8, // 编码Utf8 + decodeBase64, // base64解码 + decodeUtf8, // 解码Utf8 + // 事件委托、其他事件方法 + stopBubble, // 阻止冒泡 + stopDefault, // 阻止默认事件 + addEvent, // 事件委托,支持多次委托 + removeEvent, // removeEvent移除由addEvent创建的事件委托 + getScrollPosition, // 获取滑动到顶部和底部 返回'top' 'bottom',建议使用限流 + // 工具类 + nextIndex, // 返回下一个zIndex值 + nextVersion, // 返回下一个版本号 + punctualTimer, // 准时的setInterval + promiseFactory, // 将一个对象转换为promise like api + fixNumber, // 截取小数点后几位,不足的不补0 + mapTemplate, // 替换模板字符串的特定数据 + extend, // 深拷贝&合并对象 + clone, // 深拷贝 (不支持Buffer、Promise、Set、Map) + delay, // 防抖节流 + getType, // 获取目标类型 + getFileType, // 根据链接后缀判断文件类型 + sorter, // 排序工厂函数 + sortPinyin, // 中文按拼音排序 + cleanData, // 清洗数据 + download, // 文件下载 + searchObject, // 对象查找 + openUrl, // 新标签页打开链接(浏览器不能解析的文件跳转下载) + copy, // 复制到剪贴板 + toThousands, // 千分位分割方法 + all, // 如果所提供的谓词函数对一个集合中的所有元素都返回true,则返回true,否则返回false。 + any, // 如果所提供的谓词函数对一个集合中的至少一个元素返回true,则返回true,否则返回false。 + uuid, // 浏览器端生成uuid,采用v4方法 + CSVToArray, // csv与json、array相互转换 + arrayToCSV, // csv与json、array相互转换 + CSVToJSON, // csv与json、array相互转换 + JSONToCSV, // csv与json、array相互转换 + RGBToHex, // 将RGB组件的值转换为颜色代码。 + intersect, // 多个数组求交集 + union, // 求多个数组的并集 + minus, // 求多个数组的差集,属于A但不属于B/C/D...的元素 + complement, // 多个数组求补集 + contains, // 数组是否包含指定元素 + unique, // 数组去重 + fillIPv6, // ipv6地址补全 + getProperty, // 根据路径字符串获取数组、对象属性值 + setProperty, // 根据路径字符串设置数组、对象属性值 + loadSource, // 动态加载资源,支持js、图片、css链接、css样式字符串 + mountCss, // 动态加载css链接资源 + mountImg, // 动态加载图片资源 + mountJs, // 动态加载js链接资源 + mountStyle, // 动态加载css样式 + preloader, // 图片预加载 + waiting, // 等待一段时间 + awaitTo, // 替代try catch处理promise错误 + // 二进制 + arrayBufferToBase64, // arrayBuffer转Base64 + arrayBufferToBlob, // arrayBuffer转Blob + base64ToArrayBuffer, // base64转ArrayBuffer + base64ToBlob, // base64转Blob + base64ToFile, // base64转File + blobToArrayBuffer, // blob转ArrayBuffer + blobToBase64, // blob转Base64 + blobToUrl, // blob转Url + fileToBase64, // file转Base64 + svgToBlob, // svg转Blob + urlToBlob // url转Blob +} +``` + +## 问题和支持 + +请提交一个 issue [here](https://github.com/saqqdy/js-cool/issues). + +## License + +[MIT](LICENSE) + +[npm-image]: https://img.shields.io/npm/v/js-cool.svg?style=flat-square +[npm-url]: https://npmjs.org/package/js-cool +[codacy-image]: https://app.codacy.com/project/badge/Grade/f70d4880e4ad4f40aa970eb9ee9d0696 +[codacy-url]: https://www.codacy.com/gh/saqqdy/js-cool/dashboard?utm_source=github.com&utm_medium=referral&utm_content=saqqdy/js-cool&utm_campaign=Badge_Grade +[tree-shaking-image]: https://badgen.net/bundlephobia/tree-shaking/js-cool +[tree-shaking-url]: https://bundlephobia.com/package/js-cool +[typescript-url]: https://badgen.net/badge/icon/typescript?icon=typescript&label +[codecov-image]: https://img.shields.io/codecov/c/github/saqqdy/js-cool.svg?style=flat-square +[codecov-url]: https://codecov.io/github/saqqdy/js-cool?branch=master +[download-image]: https://img.shields.io/npm/dm/js-cool.svg?style=flat-square +[download-url]: https://npmjs.org/package/js-cool +[gzip-image]: http://img.badgesize.io/https://unpkg.com/js-cool/dist/index.global.prod.js?compression=gzip&label=gzip%20size:%20JS +[gzip-url]: http://img.badgesize.io/https://unpkg.com/js-cool/dist/index.global.prod.js?compression=gzip&label=gzip%20size:%20JS +[license-image]: https://img.shields.io/badge/License-MIT-blue.svg +[license-url]: LICENSE +[sonar-image]: https://sonarcloud.io/api/project_badges/quality_gate?project=saqqdy_js-cool +[sonar-url]: https://sonarcloud.io/dashboard?id=saqqdy_js-cool diff --git a/modules.html b/modules.html new file mode 100644 index 0000000..e8c7436 --- /dev/null +++ b/modules.html @@ -0,0 +1 @@ +JS-COOL DOCS - v5.23.1

JS-COOL DOCS - v5.23.1

Interfaces

BrowserVersion
DirParamType
PlainObject
JSONArray
Version
OsVersion
PunctualTimerReturns
RandomStringOptions
SearchKeySet
SpliceUrlParamOptions
AnyFunction
ArrayOne
WindowSizeObj

Type Aliases

ExtendArrayData
ExtendObjectData
ExtendData
Primitive
JSONValue
RandomStringCharType
AnyObject
ArrayOneMore
ArrayTwoMore
PickRequired
OmitRequired
PickPartial
OmitPartial
MaybePromiseOrGetter

Variables

inBrowser
inNodeJs
default
version
pattern

Functions

awaitTo
loadSource
mountCss
mountImg
mountJs
mountStyle
download
CSVToArray
CSVToJSON
JSONToCSV
RGBToHex
addEvent
all
any
appVersion
arrayBufferToBase64
arrayBufferToBlob
arrayToCSV
base64ToArrayBuffer
base64ToBlob
base64ToFile
blobToArrayBuffer
blobToBase64
blobToUrl
browserVersion
camel2Dash
cleanData
clearAttr
clearHtml
client
clone
compareVersion
complement
contains
copy
cutCHSString
dash2Camel
decodeBase64
decodeUtf8
delCache
delCookie
delSession
delay
encodeBase64
encodeUtf8
escape
extend
fileToBase64
fillIPv6
fingerprint
fixNumber
getAppVersion
getCHSLength
getCache
getCookie
getCookies
getDirParam
getFileType
getNumber
getOsVersion
getProperty
getQueryParam
getQueryParams
getScrollPosition
getSession
getType
getUrlParam
getUrlParams
intersect
isArray
isDarkMode
isDate
isDigitals
isEqual
isExitsFunction
isExitsVariable
isIterable
isNumberBrowser
isObject
isPlainObject
isRegExp
isWindow
mapTemplate
minus
nextIndex
nextVersion
openUrl
osVersion
parseUrlParam
preloader
promiseFactory
punctualTimer
randomColor
randomNumber
randomNumbers
randomString
removeEvent
safeParse
safeStringify
searchObject
setCache
setCookie
setProperty
setSession
shuffle
sortPinyin
sorter
spliceUrlParam
stopBubble
stopDefault
svgToBlob
toThousands
trim
unescape
union
unique
upperFirst
urlToBlob
uuid
waiting
windowSize
diff --git a/out.json b/out.json new file mode 100644 index 0000000..4814fde --- /dev/null +++ b/out.json @@ -0,0 +1,63163 @@ +{ + "id": 0, + "name": "JS-COOL DOCS", + "variant": "project", + "kind": 1, + "flags": {}, + "children": [ + { + "id": 27, + "name": "awaitTo", + "variant": "declaration", + "kind": 64, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "line": 20, + "character": 17 + }, + { + "fileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "line": 22, + "character": 17 + }, + { + "fileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "line": 24, + "character": 17 + } + ], + "signatures": [ + { + "id": 28, + "name": "awaitTo", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Async await wrapper for easy error handling" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\r\nconst bar = () => new Promise((resolve, reject) => {})\r\nconst foo = () => new Promise((resolve, reject) => {})\r\n;(async () => {\r\n\t const [err, data] = await awaitToDone(bar())\r\n\t const [err1, data1] = await awaitToDone(bar(), foo())\r\n\t const [err2, data2] = await awaitToDone([bar(), foo()])\r\n})()\r\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.0" + } + ] + }, + { + "tag": "@author", + "content": [ + { + "kind": "text", + "text": "saqqdy" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "line": 20, + "character": 17 + } + ], + "typeParameters": [ + { + "id": 29, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + } + }, + { + "id": 30, + "name": "E", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "default": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 31, + "name": "promise", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Promise" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 29, + "name": "T", + "package": "await-to-done", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "tuple", + "elements": [ + { + "type": "reference", + "target": 30, + "name": "E", + "package": "await-to-done", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + { + "type": "tuple", + "elements": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "target": 29, + "name": "T", + "package": "await-to-done", + "refersToTypeParameter": true + } + ] + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + }, + { + "id": 32, + "name": "awaitTo", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Async await wrapper for easy error handling" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\r\nconst bar = () => new Promise((resolve, reject) => {})\r\nconst foo = () => new Promise((resolve, reject) => {})\r\n;(async () => {\r\n\t const [err, data] = await awaitToDone(bar())\r\n\t const [err1, data1] = await awaitToDone(bar(), foo())\r\n\t const [err2, data2] = await awaitToDone([bar(), foo()])\r\n})()\r\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.0" + } + ] + }, + { + "tag": "@author", + "content": [ + { + "kind": "text", + "text": "saqqdy" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "line": 22, + "character": 17 + } + ], + "typeParameters": [ + { + "id": 33, + "name": "P", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "tuple" + }, + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + } + ] + } + }, + { + "id": 34, + "name": "E", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "default": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 35, + "name": "promise", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Promise" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "PromiseAll" + }, + "typeArguments": [ + { + "type": "reference", + "target": 33, + "name": "P", + "package": "await-to-done", + "refersToTypeParameter": true + } + ], + "name": "PromiseAll", + "package": "await-to-done" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "tuple", + "elements": [ + { + "type": "reference", + "target": 34, + "name": "E", + "package": "await-to-done", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + { + "type": "tuple", + "elements": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "target": 33, + "name": "P", + "package": "await-to-done", + "refersToTypeParameter": true + } + ] + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + }, + { + "id": 36, + "name": "awaitTo", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Async await wrapper for easy error handling" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\r\nconst bar = () => new Promise((resolve, reject) => {})\r\nconst foo = () => new Promise((resolve, reject) => {})\r\n;(async () => {\r\n\t const [err, data] = await awaitToDone(bar())\r\n\t const [err1, data1] = await awaitToDone(bar(), foo())\r\n\t const [err2, data2] = await awaitToDone([bar(), foo()])\r\n})()\r\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.0" + } + ] + }, + { + "tag": "@author", + "content": [ + { + "kind": "text", + "text": "saqqdy" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "line": 24, + "character": 17 + } + ], + "typeParameters": [ + { + "id": 37, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + } + }, + { + "id": 38, + "name": "P", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "tuple" + }, + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + } + ] + } + }, + { + "id": 39, + "name": "E", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "default": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 40, + "name": "promise", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Promise" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 37, + "name": "T", + "package": "await-to-done", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + }, + { + "id": 41, + "name": "promises", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Promise rest params" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "PromiseAll" + }, + "typeArguments": [ + { + "type": "reference", + "target": 38, + "name": "P", + "package": "await-to-done", + "refersToTypeParameter": true + } + ], + "name": "PromiseAll", + "package": "await-to-done" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "tuple", + "elements": [ + { + "type": "reference", + "target": 39, + "name": "E", + "package": "await-to-done", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + { + "type": "tuple", + "elements": [ + { + "type": "literal", + "value": null + }, + { + "type": "tuple", + "elements": [ + { + "type": "reference", + "target": 37, + "name": "T", + "package": "await-to-done", + "refersToTypeParameter": true + }, + { + "type": "rest", + "elementType": { + "type": "reference", + "target": 38, + "name": "P", + "package": "await-to-done", + "refersToTypeParameter": true + } + } + ] + } + ] + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 2, + "name": "loadSource", + "variant": "declaration", + "kind": 64, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "line": 13, + "character": 17 + } + ], + "signatures": [ + { + "id": 3, + "name": "loadSource", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Dynamic loading of resources, support js, images, css links, css style strings" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- true|false|imgUrl" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "line": 13, + "character": 17 + } + ], + "parameters": [ + { + "id": 4, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "link to the resource, type must be passed when passing in styleString" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5, + "name": "option", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parameters: attrs, props, force" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "SourceOptions" + }, + "name": "SourceOptions", + "package": "load-source" + } + ] + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 6, + "name": "mountCss", + "variant": "declaration", + "kind": 64, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "line": 21, + "character": 17 + } + ], + "signatures": [ + { + "id": 7, + "name": "mountCss", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Dynamic loading of css link resources" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "line": 21, + "character": 17 + } + ], + "parameters": [ + { + "id": 8, + "name": "src", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "resource address" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 9, + "name": "option", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parameters: attrs, props, force" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "CssOptions" + }, + "name": "CssOptions", + "package": "mount-css" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 10, + "name": "mountImg", + "variant": "declaration", + "kind": 64, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "line": 21, + "character": 17 + } + ], + "signatures": [ + { + "id": 11, + "name": "mountImg", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Dynamic loading of image resources" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "line": 21, + "character": 17 + } + ], + "parameters": [ + { + "id": 12, + "name": "src", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "resource address" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 13, + "name": "option", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parameters: attrs, props, force" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "ImgOptions" + }, + "name": "ImgOptions", + "package": "mount-image" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 14, + "name": "mountJs", + "variant": "declaration", + "kind": 64, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "line": 19, + "character": 17 + } + ], + "signatures": [ + { + "id": 15, + "name": "mountJs", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Dynamic loading of js linked resources" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "line": 19, + "character": 17 + } + ], + "parameters": [ + { + "id": 16, + "name": "src", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "resource address" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 17, + "name": "option", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parameters: attrs, props, force" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "JsOptions" + }, + "name": "JsOptions", + "package": "mount-script" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 18, + "name": "mountStyle", + "variant": "declaration", + "kind": 64, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "line": 8, + "character": 17 + } + ], + "signatures": [ + { + "id": 19, + "name": "mountStyle", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Dynamic loading of css styles" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- results" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "line": 8, + "character": 17 + } + ], + "parameters": [ + { + "id": 20, + "name": "css", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 21, + "name": "option", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parameters: attrs, props" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "StyleOptions" + }, + "name": "StyleOptions", + "package": "mount-style" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 22, + "name": "download", + "variant": "declaration", + "kind": 64, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/use-downloads@1.5.1/node_modules/use-downloads/dist/index.d.ts", + "line": 21, + "character": 24 + } + ], + "signatures": [ + { + "id": 23, + "name": "download", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Several ways of file downloading:\r\n1. For file formats that some browsers do not recognize. Enter the file URL in the address bar, window.location.href = URL, window.open(URL);\r\n2. using a tag download attribute (or js create a tag);\r\n3. browser-recognizable pdf, txt files, back-end compatible with handling attachment;\r\n4. add token in the header for authenticated download, use XmlHttpRequest to want to backend to launch the request" + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/use-downloads@1.5.1/node_modules/use-downloads/dist/index.d.ts", + "line": 21, + "character": 24 + } + ], + "parameters": [ + { + "id": 24, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "link" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 25, + "name": "filename", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "filename" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 26, + "name": "type", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "download type 'href','open','download','request'" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 868, + "name": "CSVToArray", + "variant": "declaration", + "kind": 64, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts a comma-separated string of values (CSV) to a 2D array." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nCSVToArray('a,b\\\\nc,d')\n// `[['a','b'],['c','d']]`.\n\nCSVToArray('a;b\\\\\\nc;d', ';')\n// `[['a','b'],['c','d']]`.\n\nCSVToArray('col1,col2\\\\\\na,b\\\\\\nc,d', ',', true)\n// `[['a','b'],['c','d']]`.\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.9" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/CSVToArray.ts", + "line": 21, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/CSVToArray.ts#L21" + } + ], + "signatures": [ + { + "id": 869, + "name": "CSVToArray", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/CSVToArray.ts", + "line": 21, + "character": 19, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/CSVToArray.ts#L21" + } + ], + "parameters": [ + { + "id": 870, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "csv data" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 871, + "name": "delimiter", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "separator, default ','" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "','" + }, + { + "id": 872, + "name": "omitFirstRow", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the first row is the table header data, default false" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + } + ] + }, + { + "id": 878, + "name": "CSVToJSON", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/CSVToJSON.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/CSVToJSON.ts#L17" + } + ], + "signatures": [ + { + "id": 879, + "name": "CSVToJSON", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts a comma-separated string of values (CSV) to an array of 2D objects. The first line of the string is used as the header line." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nCSVToJSON('col1,col2\\\\na,b\\\\\\nc,d')\n// `[{'col1': 'a', 'col2': 'b'}, {'col1': 'c', 'col2': 'd'}]`.\n\nCSVToJSON('col1;col2\\\\\\na;b\\\\\\nc;d', ';')\n// `[{'col1': 'a', 'col2': 'b'}, {'col1': 'c', 'col2': 'd'}]`.\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.9" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- json" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/CSVToJSON.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/CSVToJSON.ts#L17" + } + ], + "parameters": [ + { + "id": 880, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "csv data" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 881, + "name": "delimiter", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "delimiter, default ','" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "','" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ] + }, + { + "id": 882, + "name": "JSONToCSV", + "variant": "declaration", + "kind": 64, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts an array of objects to a comma-separated value (CSV) string containing only the specified columns." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nJSONToCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b'])\n// 'a,b\\n \"1\", \"2\"\\n \"3\", \"4\"\\n \"6\",\"\"\\n\"\", \"7\"'\n\nJSONToCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b'], ';')\n// 'a;b\\n \"1\"; \"2\"\\n \"3\"; \"4\"\\n \"6\";\"\"\\n\"\"; \"7\"'\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.9" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/JSONToCSV.ts", + "line": 18, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/JSONToCSV.ts#L18" + } + ], + "signatures": [ + { + "id": 883, + "name": "JSONToCSV", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- CSV data" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/JSONToCSV.ts", + "line": 18, + "character": 18, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/JSONToCSV.ts#L18" + } + ], + "parameters": [ + { + "id": 884, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 885, + "name": "columns", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the specified columns" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 886, + "name": "delimiter", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "delimiter, default ','" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "','" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 887, + "name": "RGBToHex", + "variant": "declaration", + "kind": 64, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts RGB component values to color codes." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nRGBToHex(255, 165, 1)\n// 'ffa501'\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.9" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/RGBToHex.ts", + "line": 15, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/RGBToHex.ts#L15" + } + ], + "signatures": [ + { + "id": 888, + "name": "RGBToHex", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- hex value" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/RGBToHex.ts", + "line": 15, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/RGBToHex.ts#L15" + } + ], + "parameters": [ + { + "id": 889, + "name": "r", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the 1st value of RGB" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 890, + "name": "g", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "RGB's 2nd value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 891, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "RGB's 3rd value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 702, + "name": "addEvent", + "variant": "declaration", + "kind": 64, + "flags": {}, + "children": [ + { + "id": 707, + "name": "guid", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/addEvent.ts", + "line": 37, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/addEvent.ts#L37" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 707 + ] + } + ], + "sources": [ + { + "fileName": "src/addEvent.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/addEvent.ts#L13" + }, + { + "fileName": "src/addEvent.ts", + "line": 37, + "character": 0, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/addEvent.ts#L37" + } + ], + "signatures": [ + { + "id": 703, + "name": "addEvent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "addEvent() event delegate, supports multiple delegates" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/addEvent.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/addEvent.ts#L13" + } + ], + "parameters": [ + { + "id": 704, + "name": "element", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "js dom object" + } + ] + }, + "type": { + "type": "reference", + "target": 986, + "name": "AnyObject", + "package": "js-cool" + } + }, + { + "id": 705, + "name": "type", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The event type. No need to add on" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 706, + "name": "handler", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "callback method" + } + ] + }, + "type": { + "type": "reference", + "target": 987, + "name": "AnyFunction", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 856, + "name": "all", + "variant": "declaration", + "kind": 64, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns true if the provided predicate function returns true for all elements in a set, otherwise it returns false." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nall([4, 2, 3], x => x > 1)\n// true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.9" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/all.ts", + "line": 16, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/all.ts#L16" + } + ], + "signatures": [ + { + "id": 857, + "name": "all", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the result of the judgment" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/all.ts", + "line": 16, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/all.ts#L16" + } + ], + "typeParameters": [ + { + "id": 858, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 859, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the target array" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 858, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + }, + { + "id": 860, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the judgment method" + } + ] + }, + "type": { + "type": "reference", + "target": 987, + "name": "AnyFunction", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 861, + "name": "any", + "variant": "declaration", + "kind": 64, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns true if the provided predicate function returns true for at least one element of a set, otherwise it returns false." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nany([0, 1, 2, 0], x => x >= 2)\n// true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.9" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/any.ts", + "line": 15, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/any.ts#L15" + } + ], + "signatures": [ + { + "id": 862, + "name": "any", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the result of the judgment" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/any.ts", + "line": 15, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/any.ts#L15" + } + ], + "typeParameters": [ + { + "id": 863, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 864, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the target array" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 863, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + }, + { + "id": 865, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the judgment method" + } + ] + }, + "type": { + "type": "reference", + "target": 987, + "name": "AnyFunction", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 555, + "name": "appVersion", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/appVersion.ts#L20" + }, + { + "fileName": "src/appVersion.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/appVersion.ts#L21" + }, + { + "fileName": "src/appVersion.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/appVersion.ts#L22" + }, + { + "fileName": "src/appVersion.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/appVersion.ts#L23" + }, + { + "fileName": "src/appVersion.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/appVersion.ts#L24" + } + ], + "signatures": [ + { + "id": 556, + "name": "appVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the APP version from navigator.userAgent, support 'x.x.x' & 'x.x.x-tagname.x'" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'\nappVersion('Chrome') // 114.0.0.0\nappVersion('Safari') // 537.36\nappVersion('appname', false) // null\nappVersion('appname') // 1.0.0-beta.8\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.1.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "string|null" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/appVersion.ts#L20" + } + ], + "parameters": [ + { + "id": 557, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "app name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 558, + "name": "appVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the APP version from navigator.userAgent, support 'x.x.x' & 'x.x.x-tagname.x'" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'\nappVersion('Chrome') // 114.0.0.0\nappVersion('Safari') // 537.36\nappVersion('appname', false) // null\nappVersion('appname') // 1.0.0-beta.8\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.1.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "string|null" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/appVersion.ts#L21" + } + ], + "parameters": [ + { + "id": 559, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "app name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 560, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua or any ua like string, allowed to be undefined, default is navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 561, + "name": "appVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the APP version from navigator.userAgent, support 'x.x.x' & 'x.x.x-tagname.x'" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'\nappVersion('Chrome') // 114.0.0.0\nappVersion('Safari') // 537.36\nappVersion('appname', false) // null\nappVersion('appname') // 1.0.0-beta.8\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.1.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "string|null" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/appVersion.ts#L22" + } + ], + "parameters": [ + { + "id": 562, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "app name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 563, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua or any ua like string, allowed to be undefined, default is navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 564, + "name": "appVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the APP version from navigator.userAgent, support 'x.x.x' & 'x.x.x-tagname.x'" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'\nappVersion('Chrome') // 114.0.0.0\nappVersion('Safari') // 537.36\nappVersion('appname', false) // null\nappVersion('appname') // 1.0.0-beta.8\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.1.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "string|null" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/appVersion.ts#L23" + } + ], + "parameters": [ + { + "id": 565, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "app name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 566, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua or any ua like string, allowed to be undefined, default is navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 567, + "name": "ignoreCase", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "whether to ignore case" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + }, + { + "id": 950, + "name": "arrayBufferToBase64", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/arrayBufferToBase64.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/arrayBufferToBase64.ts#L17" + } + ], + "signatures": [ + { + "id": 951, + "name": "arrayBufferToBase64", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrayBuffer to base64" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\narrayBufferToBase64(arrayBuffer, 'image/png')\n// data:image/png;base64,xxxxxxxxxxxx\n\narrayBufferToBase64(arrayBuffer)\n// xxxxxxxxxxxx\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- base64" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/arrayBufferToBase64.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/arrayBufferToBase64.ts#L17" + } + ], + "parameters": [ + { + "id": 952, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrayBuffer" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + } + }, + { + "id": 953, + "name": "mime", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "image mime, eq: image/png" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 954, + "name": "arrayBufferToBlob", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/arrayBufferToBlob.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/arrayBufferToBlob.ts#L9" + } + ], + "signatures": [ + { + "id": 955, + "name": "arrayBufferToBlob", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrayBuffer to blob" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- blob" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/arrayBufferToBlob.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/arrayBufferToBlob.ts#L9" + } + ], + "parameters": [ + { + "id": 956, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrayBuffer" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + } + }, + { + "id": 957, + "name": "mime", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "image mime, default: image/png" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "'image/png'" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ] + }, + { + "id": 873, + "name": "arrayToCSV", + "variant": "declaration", + "kind": 64, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts a two-dimensional array to a comma-separated string of values (CSV)." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\narrayToCSV([['a', 'b'], ['c', 'd']])\n// '\"a\", \"b\" \\n \"c\", \"d\"'\n\narrayToCSV([['a', 'b'], ['c', 'd']], ';')\n// '\"a\"; \"b\"\\n \"c\"; \"d\"'\n\narrayToCSV([['a', '\"b\" great'], ['c', 3.1415]])\n// '\"a\", \"\"\"b\"\" great\"\\n \"c\",3.1415'\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.9" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/arrayToCSV.ts", + "line": 20, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/arrayToCSV.ts#L20" + } + ], + "signatures": [ + { + "id": 874, + "name": "arrayToCSV", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "CSV data" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/arrayToCSV.ts", + "line": 20, + "character": 19, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/arrayToCSV.ts#L20" + } + ], + "typeParameters": [ + { + "id": 875, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + } + } + ], + "parameters": [ + { + "id": 876, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 875, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 877, + "name": "delimiter", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "delimiter, default ','" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "','" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 958, + "name": "base64ToArrayBuffer", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/base64ToArrayBuffer.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/base64ToArrayBuffer.ts#L10" + } + ], + "signatures": [ + { + "id": 959, + "name": "base64ToArrayBuffer", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 to arrayBuffer" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- arrayBuffer" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/base64ToArrayBuffer.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/base64ToArrayBuffer.ts#L10" + } + ], + "parameters": [ + { + "id": 960, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + } + ], + "name": "Uint8Array", + "package": "typescript" + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/@types+node@22.10.7/node_modules/@types/node/buffer.buffer.d.ts", + "qualifiedName": "__global.Buffer" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + } + ], + "name": "Buffer", + "package": "@types/node", + "qualifiedName": "__global.Buffer" + } + ] + } + } + ] + }, + { + "id": 961, + "name": "base64ToBlob", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/base64ToBlob.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/base64ToBlob.ts#L10" + } + ], + "signatures": [ + { + "id": 962, + "name": "base64ToBlob", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 to blob" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- blob" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/base64ToBlob.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/base64ToBlob.ts#L10" + } + ], + "parameters": [ + { + "id": 963, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ] + }, + { + "id": 964, + "name": "base64ToFile", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/base64ToFile.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/base64ToFile.ts#L11" + } + ], + "signatures": [ + { + "id": 965, + "name": "base64ToFile", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 to file" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the BASE64 encoding" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/base64ToFile.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/base64ToFile.ts#L11" + } + ], + "parameters": [ + { + "id": 966, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 967, + "name": "fileName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "file name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "File" + }, + "name": "File", + "package": "typescript" + } + } + ] + }, + { + "id": 968, + "name": "blobToArrayBuffer", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/blobToArrayBuffer.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/blobToArrayBuffer.ts#L8" + } + ], + "signatures": [ + { + "id": 969, + "name": "blobToArrayBuffer", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob to arrayBuffer" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- arrayBuffer" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/blobToArrayBuffer.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/blobToArrayBuffer.ts#L8" + } + ], + "parameters": [ + { + "id": 970, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 971, + "name": "blobToBase64", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/blobToBase64.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/blobToBase64.ts#L8" + } + ], + "signatures": [ + { + "id": 972, + "name": "blobToBase64", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob to base64" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- base64 string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/blobToBase64.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/blobToBase64.ts#L8" + } + ], + "parameters": [ + { + "id": 973, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 974, + "name": "blobToUrl", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/blobToUrl.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/blobToUrl.ts#L8" + } + ], + "signatures": [ + { + "id": 975, + "name": "blobToUrl", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob to blobUrl" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- blobUrl" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/blobToUrl.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/blobToUrl.ts#L8" + } + ], + "parameters": [ + { + "id": 976, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 582, + "name": "BrowserVersion", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 583, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/browserVersion.ts", + "line": 4, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/browserVersion.ts#L4" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "Safari" + }, + { + "type": "literal", + "value": "Chrome" + }, + { + "type": "literal", + "value": "IE" + }, + { + "type": "literal", + "value": "Edge" + }, + { + "type": "literal", + "value": "Firefox" + }, + { + "type": "literal", + "value": "Firefox Focus" + }, + { + "type": "literal", + "value": "Chromium" + }, + { + "type": "literal", + "value": "Opera" + }, + { + "type": "literal", + "value": "Vivaldi" + }, + { + "type": "literal", + "value": "Yandex" + }, + { + "type": "literal", + "value": "Arora" + }, + { + "type": "literal", + "value": "Lunascape" + }, + { + "type": "literal", + "value": "QupZilla" + }, + { + "type": "literal", + "value": "Coc Coc" + }, + { + "type": "literal", + "value": "Kindle" + }, + { + "type": "literal", + "value": "Iceweasel" + }, + { + "type": "literal", + "value": "Konqueror" + }, + { + "type": "literal", + "value": "Iceape" + }, + { + "type": "literal", + "value": "SeaMonkey" + }, + { + "type": "literal", + "value": "Epiphany" + }, + { + "type": "literal", + "value": "360" + }, + { + "type": "literal", + "value": "360SE" + }, + { + "type": "literal", + "value": "360EE" + }, + { + "type": "literal", + "value": "Maxthon" + }, + { + "type": "literal", + "value": "QQBrowser" + }, + { + "type": "literal", + "value": "QQ" + }, + { + "type": "literal", + "value": "Baidu" + }, + { + "type": "literal", + "value": "UC" + }, + { + "type": "literal", + "value": "Sogou" + }, + { + "type": "literal", + "value": "Liebao" + }, + { + "type": "literal", + "value": "LBBROWSER" + }, + { + "type": "literal", + "value": "2345Explorer" + }, + { + "type": "literal", + "value": "115Browser" + }, + { + "type": "literal", + "value": "TheWorld" + }, + { + "type": "literal", + "value": "XiaoMi" + }, + { + "type": "literal", + "value": "Vivo" + }, + { + "type": "literal", + "value": "Quark" + }, + { + "type": "literal", + "value": "Qiyu" + }, + { + "type": "literal", + "value": "Wechat" + }, + { + "type": "literal", + "value": "WechatWork" + }, + { + "type": "literal", + "value": "Taobao" + }, + { + "type": "literal", + "value": "Alipay" + }, + { + "type": "literal", + "value": "Weibo" + }, + { + "type": "literal", + "value": "Douban" + }, + { + "type": "literal", + "value": "Suning" + }, + { + "type": "literal", + "value": "iQiYi" + }, + { + "type": "literal", + "value": "DingTalk" + }, + { + "type": "literal", + "value": "Huawei" + } + ] + } + }, + { + "id": 584, + "name": "version", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/browserVersion.ts", + "line": 53, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/browserVersion.ts#L53" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 583, + 584 + ] + } + ], + "sources": [ + { + "fileName": "src/browserVersion.ts", + "line": 3, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/browserVersion.ts#L3" + } + ] + }, + { + "id": 579, + "name": "browserVersion", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/browserVersion.ts", + "line": 68, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/browserVersion.ts#L68" + } + ], + "signatures": [ + { + "id": 580, + "name": "browserVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the browser name and version" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```\n// Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Ap…KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36\nbrowserVersion() // \\{ name: 'Chrome', version: '114.0.0.0' \\}\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.2.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "BrowserVersion|null" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/browserVersion.ts", + "line": 68, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/browserVersion.ts#L68" + } + ], + "parameters": [ + { + "id": 581, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua or any ua like string, allowed to be undefined, default is navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 582, + "name": "BrowserVersion", + "package": "js-cool" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + }, + { + "id": 101, + "name": "camel2Dash", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/camel2Dash.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/camel2Dash.ts#L8" + } + ], + "signatures": [ + { + "id": 102, + "name": "camel2Dash", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts humped strings to -spaced and all lowercase Dash pattern" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the converted string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/camel2Dash.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/camel2Dash.ts#L8" + } + ], + "parameters": [ + { + "id": 103, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be converted" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 831, + "name": "cleanData", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/cleanData.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/cleanData.ts#L17" + } + ], + "signatures": [ + { + "id": 832, + "name": "cleanData", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Data cleaning methods" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the cleaned object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/cleanData.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/cleanData.ts#L17" + } + ], + "parameters": [ + { + "id": 833, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the object to be cleaned, must be passed" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 834, + "name": "map", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the data queue to be cleaned, can be passed as array or object" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + }, + { + "type": "reference", + "target": 986, + "name": "AnyObject", + "package": "js-cool" + } + ] + } + }, + { + "id": 835, + "name": "nullFix", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 86, + "name": "clearAttr", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/clearAttr.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/clearAttr.ts#L8" + } + ], + "signatures": [ + { + "id": 87, + "name": "clearAttr", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Remove all attributes of HTML tags" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "newString" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/clearAttr.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/clearAttr.ts#L8" + } + ], + "parameters": [ + { + "id": 88, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 89, + "name": "clearHtml", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/clearHtml.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/clearHtml.ts#L8" + } + ], + "signatures": [ + { + "id": 90, + "name": "clearHtml", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Removing HTML tags" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "newString" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/clearHtml.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/clearHtml.ts#L8" + } + ], + "parameters": [ + { + "id": 91, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "string with html tags" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 42, + "name": "client", + "variant": "declaration", + "kind": 64, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The client method returns a browser judgment result: " + }, + { + "kind": "code", + "text": "`{ ANDROID: true, GECKO: true, GLSH_APP: false, IE: false, IOS: false, IPAD: false, IPHONE: false, MOBILE: true, MOBILEDEVICE. true, OPERA: false, QQ: false, QQBROWSER: false, TRIDENT: false, WEBKIT: true, WEIXIN: false }`" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "Will be refactored for the next major release" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/client.ts", + "line": 10, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L10" + } + ], + "signatures": [ + { + "id": 43, + "name": "client", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the common ua match table, if name is passed, then returns whether the terminal matches true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/client.ts", + "line": 10, + "character": 15, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L10" + } + ], + "parameters": [ + { + "id": 44, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, e.g. pass in MicroMessenger to return whether it is the built-in browser of Weixin" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "''" + }, + { + "id": 45, + "name": "userAgent", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, pass in a custom ua, default takes the browser's navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "navigator.userAgent" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reflection", + "declaration": { + "id": 46, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 47, + "name": "IE", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 16, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L16" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 48, + "name": "GECKO", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 17, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L17" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 49, + "name": "WEBKIT", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 18, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L18" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 50, + "name": "OPERA", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 19, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L19" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 51, + "name": "TRIDENT", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 20, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L20" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 52, + "name": "MOBILE", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 21, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L21" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 53, + "name": "IOS", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 23, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L23" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 54, + "name": "ANDROID", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 24, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L24" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 55, + "name": "IPHONE", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 25, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L25" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 56, + "name": "IPAD", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 26, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L26" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 57, + "name": "QQBROWSER", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 28, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L28" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 58, + "name": "WEIXIN", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 29, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L29" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 59, + "name": "QQ", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 30, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L30" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExpMatchArray" + }, + "name": "RegExpMatchArray", + "package": "typescript" + } + ] + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59 + ] + } + ], + "sources": [ + { + "fileName": "src/client.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L15" + } + ] + } + } + ] + } + } + ] + }, + { + "id": 787, + "name": "clone", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/clone.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/clone.ts#L18" + } + ], + "signatures": [ + { + "id": 788, + "name": "clone", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "deep clone (Buffer, Promise, Set, Map are not supported)" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst source = { a: 100, reg: /\\d+/g, arr: [1, 2] }\nconst res = clone(source)\n// { a: 100, reg: /\\d+/g, arr: [1, 2] }\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.15.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- new object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/clone.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/clone.ts#L18" + } + ], + "typeParameters": [ + { + "id": 789, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "parameters": [ + { + "id": 790, + "name": "parent", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "source object" + } + ] + }, + "type": { + "type": "reference", + "target": 789, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 789, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ] + }, + { + "id": 585, + "name": "compareVersion", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/compareVersion.ts", + "line": 48, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/compareVersion.ts#L48" + } + ], + "signatures": [ + { + "id": 586, + "name": "compareVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Version number size comparison, tag version: rc \\> beta \\> alpha \\> other" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ncompareVersion('1.11.0', '1.9.9')\n// => 1: 1=Version 1.11.0 is newer than 1.9.9\n\ncompareVersion('1.11.0', '1.11.0')\n// => 0: 0=Versions 1.11.0 and 1.11.0 are the same\n\ncompareVersion('1.11.0', '1.99.0')\n// => -1: -1=Version 1.11.0 is older than 1.99.0\n\ncompareVersion('1.0.0.0.0.10', '1.0')\n// => -1\n\n// compare tag version: rc > beta > alpha > other\ncompareVersion('1.11.0', '1.11.0-beta.1')\n// => -1\n\ncompareVersion('1.11.0-beta.1', '1.11.0')\n// => -1\n\ncompareVersion('1.11.0-beta.10', '1.11.0-beta.10')\n// => 0\n\ncompareVersion('1.11.0-alpha.10', '1.11.0-beta.1')\n// => -1\n\ncompareVersion('1.11.0-alpha.10', '1.11.0-rc.1')\n// => -1\n\ncompareVersion('1.11.0-tag.10', '1.11.0-alpha.1')\n// => -1\n\ncompareVersion('1.11.0-tag.10', '1.11.0-tag.1')\n// => 1\n\ncompareVersion('1.11.0-release.10', '1.11.0-tag.1')\n// => 1\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "4.7.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "1/0/-1" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/compareVersion.ts", + "line": 48, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/compareVersion.ts#L48" + } + ], + "parameters": [ + { + "id": 587, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "input version" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 588, + "name": "compare", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "compare version" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": -1 + }, + { + "type": "literal", + "value": 0 + }, + { + "type": "literal", + "value": 1 + } + ] + } + } + ] + }, + { + "id": 904, + "name": "complement", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/complement.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/complement.ts#L16" + } + ], + "signatures": [ + { + "id": 905, + "name": "complement", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Find the complement of multiple arrays" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ncomplement([1, 2], [2, '33'], [2]) // [1, '33']\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "2.2.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/complement.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/complement.ts#L16" + } + ], + "typeParameters": [ + { + "id": 906, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 907, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arguments" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "reference", + "target": 906, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 906, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ] + }, + { + "id": 908, + "name": "contains", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/contains.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/contains.ts#L14" + } + ], + "signatures": [ + { + "id": 909, + "name": "contains", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the array contains the specified element" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ncontains([1, 2], 2) // true\ncontains([1, 2], 3) // false\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "2.2.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "boolean" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/contains.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/contains.ts#L14" + } + ], + "parameters": [ + { + "id": 910, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the target array" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 911, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the target to find" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 850, + "name": "copy", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/copy.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/copy.ts#L10" + } + ], + "signatures": [ + { + "id": 851, + "name": "copy", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "copy to clipboard" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is Object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/copy.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/copy.ts#L10" + } + ], + "parameters": [ + { + "id": 852, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "boolean" + } + ] + } + } + ] + }, + { + "id": 150, + "name": "cutCHSString", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/cutCHSString.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/cutCHSString.ts#L10" + } + ], + "signatures": [ + { + "id": 151, + "name": "cutCHSString", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Intercept string, Chinese counts as 2 bytes" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the intercepted string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/cutCHSString.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/cutCHSString.ts#L10" + } + ], + "parameters": [ + { + "id": 152, + "name": "str", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be intercepted" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 153, + "name": "len", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "str.length" + }, + { + "id": 154, + "name": "hasDot", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 104, + "name": "dash2Camel", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/dash2Camel.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/dash2Camel.ts#L8" + } + ], + "signatures": [ + { + "id": 105, + "name": "dash2Camel", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts -spaced and all lowercase Dash patterns to humped strings" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the converted string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/dash2Camel.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/dash2Camel.ts#L8" + } + ], + "parameters": [ + { + "id": 106, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be converted" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 690, + "name": "decodeBase64", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/decodeBase64.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/decodeBase64.ts#L11" + } + ], + "signatures": [ + { + "id": 691, + "name": "decodeBase64", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 decoding" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "decoded string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/decodeBase64.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/decodeBase64.ts#L11" + } + ], + "parameters": [ + { + "id": 692, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be decoded" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 693, + "name": "decodeUtf8", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/decodeUtf8.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/decodeUtf8.ts#L8" + } + ], + "signatures": [ + { + "id": 694, + "name": "decodeUtf8", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Decoding Utf8" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "decoded string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/decodeUtf8.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/decodeUtf8.ts#L8" + } + ], + "parameters": [ + { + "id": 695, + "name": "utftext", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 653, + "name": "delCache", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/delCache.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delCache.ts#L7" + } + ], + "signatures": [ + { + "id": 654, + "name": "delCache", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Delete localStorage" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/delCache.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delCache.ts#L7" + } + ], + "parameters": [ + { + "id": 655, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 681, + "name": "delCookie", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/delCookie.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delCookie.ts#L9" + } + ], + "signatures": [ + { + "id": 682, + "name": "delCookie", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Delete cookie" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/delCookie.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delCookie.ts#L9" + } + ], + "parameters": [ + { + "id": 683, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cookie name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 665, + "name": "delSession", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/delSession.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delSession.ts#L7" + } + ], + "signatures": [ + { + "id": 666, + "name": "delSession", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Delete sessionStorage" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/delSession.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delSession.ts#L7" + } + ], + "parameters": [ + { + "id": 667, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 791, + "name": "delay", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delay.ts#L9" + } + ], + "signatures": [ + { + "id": 792, + "name": "delay", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "debounce & throttle" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "class" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delay.ts#L9" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 793, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 794, + "name": "map", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 11, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delay.ts#L11" + } + ], + "type": { + "type": "intrinsic", + "name": "any" + }, + "defaultValue": "..." + }, + { + "id": 795, + "name": "register", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 12, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delay.ts#L12" + } + ], + "signatures": [ + { + "id": 796, + "name": "register", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 12, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delay.ts#L12" + } + ], + "parameters": [ + { + "id": 797, + "name": "id", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 798, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 987, + "name": "AnyFunction", + "package": "js-cool" + } + }, + { + "id": 799, + "name": "time", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 800, + "name": "boo", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 801, + "name": "destroy", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 43, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delay.ts#L43" + } + ], + "signatures": [ + { + "id": 802, + "name": "destroy", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 43, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delay.ts#L43" + } + ], + "parameters": [ + { + "id": 803, + "name": "id", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 794 + ] + }, + { + "title": "Methods", + "children": [ + 795, + 801 + ] + } + ], + "sources": [ + { + "fileName": "src/delay.ts", + "line": 10, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delay.ts#L10" + } + ] + } + } + } + ] + }, + { + "id": 684, + "name": "encodeBase64", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/encodeBase64.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/encodeBase64.ts#L11" + } + ], + "signatures": [ + { + "id": 685, + "name": "encodeBase64", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "String, number to base64" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the BASE64 encoding" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/encodeBase64.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/encodeBase64.ts#L11" + } + ], + "parameters": [ + { + "id": 686, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be encoded" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 687, + "name": "encodeUtf8", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/encodeUtf8.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/encodeUtf8.ts#L8" + } + ], + "signatures": [ + { + "id": 688, + "name": "encodeUtf8", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Encoding Utf8" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the UTF-8 encoding" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/encodeUtf8.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/encodeUtf8.ts#L8" + } + ], + "parameters": [ + { + "id": 689, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 92, + "name": "escape", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/escape.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/escape.ts#L13" + } + ], + "signatures": [ + { + "id": 93, + "name": "escape", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Escaping HTML Special Characters" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nescape('
test
string
')\n// '<div>test<br />string</div>'\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.5.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- newString" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/escape.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/escape.ts#L13" + } + ], + "parameters": [ + { + "id": 94, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "string with html tags" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 784, + "name": "ExtendArrayData", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 5, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/extend.ts#L5" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 785, + "name": "ExtendObjectData", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 7, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/extend.ts#L7" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 786, + "name": "ExtendData", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 9, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/extend.ts#L9" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 784, + "name": "ExtendArrayData", + "package": "js-cool" + }, + { + "type": "reference", + "target": 785, + "name": "ExtendObjectData", + "package": "js-cool" + } + ] + } + }, + { + "id": 771, + "name": "extend", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 41, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/extend.ts#L41" + }, + { + "fileName": "src/extend.ts", + "line": 42, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/extend.ts#L42" + }, + { + "fileName": "src/extend.ts", + "line": 43, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/extend.ts#L43" + }, + { + "fileName": "src/extend.ts", + "line": 44, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/extend.ts#L44" + }, + { + "fileName": "src/extend.ts", + "line": 45, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/extend.ts#L45" + } + ], + "signatures": [ + { + "id": 772, + "name": "extend", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "deep copy & merge objects" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 41, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/extend.ts#L41" + } + ], + "parameters": [ + { + "id": 773, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "boolean | ExtendData" + } + ] + }, + "type": { + "type": "reference", + "target": 785, + "name": "ExtendObjectData", + "package": "js-cool" + } + }, + { + "id": 774, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ArrayOneMore" + } + ] + }, + "type": { + "type": "reference", + "target": 995, + "typeArguments": [ + { + "type": "reference", + "target": 785, + "name": "ExtendObjectData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 785, + "name": "ExtendObjectData", + "package": "js-cool" + } + }, + { + "id": 775, + "name": "extend", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "deep copy & merge objects" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 42, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/extend.ts#L42" + } + ], + "parameters": [ + { + "id": 776, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "boolean | ExtendData" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 777, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ArrayOneMore" + } + ] + }, + "type": { + "type": "reference", + "target": 995, + "typeArguments": [ + { + "type": "reference", + "target": 785, + "name": "ExtendObjectData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 785, + "name": "ExtendObjectData", + "package": "js-cool" + } + }, + { + "id": 778, + "name": "extend", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "deep copy & merge objects" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 43, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/extend.ts#L43" + } + ], + "parameters": [ + { + "id": 779, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "boolean | ExtendData" + } + ] + }, + "type": { + "type": "reference", + "target": 784, + "name": "ExtendArrayData", + "package": "js-cool" + } + }, + { + "id": 780, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ArrayOneMore" + } + ] + }, + "type": { + "type": "reference", + "target": 995, + "typeArguments": [ + { + "type": "reference", + "target": 784, + "name": "ExtendArrayData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 784, + "name": "ExtendArrayData", + "package": "js-cool" + } + }, + { + "id": 781, + "name": "extend", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "deep copy & merge objects" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 44, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/extend.ts#L44" + } + ], + "parameters": [ + { + "id": 782, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "boolean | ExtendData" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 783, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ArrayOneMore" + } + ] + }, + "type": { + "type": "reference", + "target": 995, + "typeArguments": [ + { + "type": "reference", + "target": 784, + "name": "ExtendArrayData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 784, + "name": "ExtendArrayData", + "package": "js-cool" + } + } + ] + }, + { + "id": 977, + "name": "fileToBase64", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/fileToBase64.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/fileToBase64.ts#L10" + } + ], + "signatures": [ + { + "id": 978, + "name": "fileToBase64", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "file to base64" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- base64 string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/fileToBase64.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/fileToBase64.ts#L10" + } + ], + "parameters": [ + { + "id": 979, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "file data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "File" + }, + "name": "File", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 916, + "name": "fillIPv6", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/fillIPv6.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/fillIPv6.ts#L15" + } + ], + "signatures": [ + { + "id": 917, + "name": "fillIPv6", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Read full IPv6" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nfillIPv6('2409:8005:800::2')\n// '2409:8005:0800:0000:0000:0000:0000:0002'\n\nfillIPv6('2409:8005:800::1c')\n// '2409:8005:0800:0000:0000:0000:0000:001c'\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "2.2.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/fillIPv6.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/fillIPv6.ts#L15" + } + ], + "parameters": [ + { + "id": 918, + "name": "ip", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 144, + "name": "fingerprint", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/fingerprint.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/fingerprint.ts#L10" + } + ], + "signatures": [ + { + "id": 145, + "name": "fingerprint", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Generating Browser Fingerprints" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.2.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- fingerprint" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/fingerprint.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/fingerprint.ts#L10" + } + ], + "parameters": [ + { + "id": 146, + "name": "domain", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "key string, default: location.host" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ] + }, + { + "id": 760, + "name": "fixNumber", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/fixNumber.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/fixNumber.ts#L22" + } + ], + "signatures": [ + { + "id": 761, + "name": "fixNumber", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Intercept the decimal places, do not fill in the missing 0" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nfixNumber('100.888')\n// 100.88\n\nfixNumber('100.8', 2)\n// 100.8\n\nfixNumber('100.8888', 3)\n// 100.888\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the new number" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/fixNumber.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/fixNumber.ts#L22" + } + ], + "parameters": [ + { + "id": 762, + "name": "number", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the number of digits to be processed, required" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 763, + "name": "n", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the number of decimal places to keep, default is 2" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "2" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + }, + { + "id": 550, + "name": "getAppVersion", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getAppVersion.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getAppVersion.ts#L11" + } + ], + "signatures": [ + { + "id": 551, + "name": "getAppVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the APP version number" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "please use 'appVersion' instead" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "null/true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getAppVersion.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getAppVersion.ts#L11" + } + ], + "parameters": [ + { + "id": 552, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "app name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 553, + "name": "withApp", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "whether to bring the name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 554, + "name": "userAgent", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua, allowed to be undefined, default is navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + }, + { + "id": 147, + "name": "getCHSLength", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getCHSLength.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getCHSLength.ts#L13" + } + ], + "signatures": [ + { + "id": 148, + "name": "getCHSLength", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the length of the text, Chinese counts as 2 bytes" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetCHSLength('测试')\n// 2\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- length" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getCHSLength.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getCHSLength.ts#L13" + } + ], + "parameters": [ + { + "id": 149, + "name": "str", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + }, + { + "id": 644, + "name": "getCache", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getCache.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getCache.ts#L24" + } + ], + "signatures": [ + { + "id": 645, + "name": "getCache", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the cache, if the deposited is Object, the retrieved is also Object, no need to convert again" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst data1 = 100\nconst data2 = { a: 10 }\nconst data3 = null\n\nsetCache('data1', data1)\nsetCache('data2', data2)\nsetCache('data3', data3)\n\ngetCache('data1') // 100\ngetCache('data2') // {a:10}\ngetCache('data3') // null\n\ngetCache('data4') // null\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- data, if it's an object, it's also an object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getCache.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getCache.ts#L24" + } + ], + "parameters": [ + { + "id": 646, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cache name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 668, + "name": "getCookie", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getCookie.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getCookie.ts#L13" + } + ], + "signatures": [ + { + "id": 669, + "name": "getCookie", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Read cookie by name" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetCookie('data1')\n// 100\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the cookie string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getCookie.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getCookie.ts#L13" + } + ], + "parameters": [ + { + "id": 670, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cookie name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 671, + "name": "getCookies", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getCookies.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getCookies.ts#L12" + } + ], + "signatures": [ + { + "id": 672, + "name": "getCookies", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Read all cookies" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetCookies()\n// \\{ token: 'xxx', name: 'saqqdy' \\}\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.6.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the cookie values" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getCookies.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getCookies.ts#L12" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + }, + { + "id": 613, + "name": "DirParamType", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 614, + "name": "path", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/getDirParam.ts", + "line": 2, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getDirParam.ts#L2" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, + { + "id": 615, + "name": "host", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/getDirParam.ts", + "line": 3, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getDirParam.ts#L3" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 614, + 615 + ] + } + ], + "sources": [ + { + "fileName": "src/getDirParam.ts", + "line": 1, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getDirParam.ts#L1" + } + ] + }, + { + "id": 610, + "name": "getDirParam", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getDirParam.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getDirParam.ts#L14" + } + ], + "signatures": [ + { + "id": 611, + "name": "getDirParam", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get directory form URL parameters" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "It will be refactored and renamed getDirParams in the next major release." + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- parameter object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getDirParam.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getDirParam.ts#L14" + } + ], + "parameters": [ + { + "id": 612, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url address" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": 613, + "name": "DirParamType", + "package": "js-cool" + } + } + ] + }, + { + "id": 808, + "name": "getFileType", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getFileType.ts#L19" + } + ], + "signatures": [ + { + "id": 809, + "name": "getFileType", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine file type based on link suffix" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetFileType('/name.png')\n// { \"suffix\": \"png\", \"type\": \"image\" }\n\ngetFileType('/name.PDF')\n// { \"suffix\": \"pdf\", \"type\": \"pdf\" }\n\ngetFileType('/name.xyz')\n// { \"suffix\": \"xyz\", \"type\": \"other\" }\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.11.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getFileType.ts#L19" + } + ], + "parameters": [ + { + "id": 810, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "file url" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 811, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 812, + "name": "suffix", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 48, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getFileType.ts#L48" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 813, + "name": "type", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 49, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getFileType.ts#L49" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "audio" + }, + { + "type": "literal", + "value": "video" + }, + { + "type": "literal", + "value": "image" + }, + { + "type": "literal", + "value": "other" + }, + { + "type": "literal", + "value": "word" + }, + { + "type": "literal", + "value": "txt" + }, + { + "type": "literal", + "value": "excel" + }, + { + "type": "literal", + "value": "pdf" + }, + { + "type": "literal", + "value": "ppt" + }, + { + "type": "literal", + "value": "zip" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 812, + 813 + ] + } + ], + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 47, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getFileType.ts#L47" + } + ] + } + } + } + ] + }, + { + "id": 98, + "name": "getNumber", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getNumber.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getNumber.ts#L16" + } + ], + "signatures": [ + { + "id": 99, + "name": "getNumber", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the number in the string" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetNumber('Chrome123.33')\n// '123.33'.\n\ngetNumber('234test.88')\n// '234.88'.\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- a pure numeric string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getNumber.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getNumber.ts#L16" + } + ], + "parameters": [ + { + "id": 100, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in a string with a number" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 568, + "name": "getOsVersion", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getOsVersion.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getOsVersion.ts#L21" + } + ], + "signatures": [ + { + "id": 569, + "name": "getOsVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the phone system version" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```\ngetOsVersion('iPhone')\n// '13.2.3'\n\ngetOsVersion('iPhone', true)\n// 'iPhone/13.2.3'\n```" + } + ] + }, + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "please use 'osVersion' instead" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- null/true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getOsVersion.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getOsVersion.ts#L21" + } + ], + "parameters": [ + { + "id": 570, + "name": "osName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "system type string Android, iPod, iWatch or iPhone" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 571, + "name": "withOS", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "whether to bring the name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 572, + "name": "userAgent", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua, allowed to be undefined, default takes navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + }, + { + "id": 919, + "name": "getProperty", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getProperty.ts#L25" + }, + { + "fileName": "src/getProperty.ts", + "line": 30, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getProperty.ts#L30" + }, + { + "fileName": "src/getProperty.ts", + "line": 35, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getProperty.ts#L35" + } + ], + "signatures": [ + { + "id": 920, + "name": "getProperty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get array, object property values based on path string" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst target = {\n a: 1,\n b: [{\n c: 2\n d: NaN\n }]\n}\ngetProperty(target, 'a') // 1\ngetProperty(target, 'd', 100) // 100\ngetProperty(target, 'b[0].c') // 2\ngetProperty(target, 'b[0].d', 100) // 100\ngetProperty(target, () => 'a') // 1\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "2.2.4" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getProperty.ts#L25" + } + ], + "typeParameters": [ + { + "id": 921, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 922, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "target array, object" + } + ] + }, + "type": { + "type": "reference", + "target": 921, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 923, + "name": "prop", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "query target, can pass function" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reflection", + "declaration": { + "id": 924, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 27, + "character": 16, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getProperty.ts#L27" + } + ], + "signatures": [ + { + "id": 925, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 27, + "character": 18, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getProperty.ts#L27" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 926, + "name": "defaultValue", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "default value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 927, + "name": "getProperty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get array, object property values based on path string" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst target = {\n a: 1,\n b: [{\n c: 2\n d: NaN\n }]\n}\ngetProperty(target, 'a') // 1\ngetProperty(target, 'd', 100) // 100\ngetProperty(target, 'b[0].c') // 2\ngetProperty(target, 'b[0].d', 100) // 100\ngetProperty(target, () => 'a') // 1\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "2.2.4" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 30, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getProperty.ts#L30" + } + ], + "typeParameters": [ + { + "id": 928, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "parameters": [ + { + "id": 929, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "target array, object" + } + ] + }, + "type": { + "type": "reference", + "target": 928, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 930, + "name": "prop", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "query target, can pass function" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reflection", + "declaration": { + "id": 931, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 32, + "character": 16, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getProperty.ts#L32" + } + ], + "signatures": [ + { + "id": 932, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 32, + "character": 18, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getProperty.ts#L32" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 933, + "name": "defaultValue", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "default value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 616, + "name": "getQueryParam", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParam.ts#L20" + }, + { + "fileName": "src/getQueryParam.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParam.ts#L21" + }, + { + "fileName": "src/getQueryParam.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParam.ts#L22" + } + ], + "signatures": [ + { + "id": 617, + "name": "getQueryParam", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get a single query parameter (behind \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetQueryParam('key1')\n// key1 => xxx\n\ngetQueryParam('key1', 'https://test.com?key1=100#/home?key1=200')\n// key1 => 200\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getQueryParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParam.ts#L20" + } + ], + "parameters": [ + { + "id": 618, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "key name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + }, + { + "id": 619, + "name": "getQueryParam", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get a single query parameter (behind \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetQueryParam('key1')\n// key1 => xxx\n\ngetQueryParam('key1', 'https://test.com?key1=100#/home?key1=200')\n// key1 => 200\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getQueryParam.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParam.ts#L21" + } + ], + "parameters": [ + { + "id": 620, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "key name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 621, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ] + }, + { + "id": 622, + "name": "getQueryParams", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParams.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParams.ts#L23" + }, + { + "fileName": "src/getQueryParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParams.ts#L24" + }, + { + "fileName": "src/getQueryParams.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParams.ts#L25" + }, + { + "fileName": "src/getQueryParams.ts", + "line": 26, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParams.ts#L26" + } + ], + "signatures": [ + { + "id": 623, + "name": "getQueryParams", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get all URL parameters (behind \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetQueryParams('https://test.com?key1=100#/home?key1=200')\n// \\{\"key1\":\"200\"\\}\n\ngetQueryParams('https://test.com?key1=100#/home?key1=200', true)\n// \\{\"key1\":200\\}\n\ngetQueryParams(true)\n// \\{\"key1\":200\\}\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getQueryParams.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParams.ts#L23" + } + ], + "parameters": [ + { + "id": 624, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 625, + "name": "getQueryParams", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get all URL parameters (behind \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetQueryParams('https://test.com?key1=100#/home?key1=200')\n// \\{\"key1\":\"200\"\\}\n\ngetQueryParams('https://test.com?key1=100#/home?key1=200', true)\n// \\{\"key1\":200\\}\n\ngetQueryParams(true)\n// \\{\"key1\":200\\}\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getQueryParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParams.ts#L24" + } + ], + "parameters": [ + { + "id": 626, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 627, + "name": "getQueryParams", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get all URL parameters (behind \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetQueryParams('https://test.com?key1=100#/home?key1=200')\n// \\{\"key1\":\"200\"\\}\n\ngetQueryParams('https://test.com?key1=100#/home?key1=200', true)\n// \\{\"key1\":200\\}\n\ngetQueryParams(true)\n// \\{\"key1\":200\\}\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getQueryParams.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParams.ts#L25" + } + ], + "parameters": [ + { + "id": 628, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 629, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts a specific string to a corresponding value (Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + }, + { + "id": 713, + "name": "getScrollPosition", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getScrollPosition.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getScrollPosition.ts#L8" + } + ], + "signatures": [ + { + "id": 714, + "name": "getScrollPosition", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get slide to top and bottom return 'top' 'bottom', recommend using limit flow" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "will be removed in the next major release." + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- position" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getScrollPosition.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getScrollPosition.ts#L8" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "literal", + "value": "bottom" + }, + { + "type": "literal", + "value": "top" + } + ] + } + } + ] + }, + { + "id": 656, + "name": "getSession", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getSession.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getSession.ts#L24" + } + ], + "signatures": [ + { + "id": 657, + "name": "getSession", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Read sessionStorage" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst data1 = 100\nconst data2 = { a: 10 }\nconst data3 = null\n\nsetSession('data1', data1)\nsetSession('data2', data2)\nsetSession('data3', data3)\n\ngetSession('data1') // 100\ngetSession('data2') // {a:10}\ngetSession('data3') // null\n\ngetSession('data4') // null\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- sessionStorage" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getSession.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getSession.ts#L24" + } + ], + "parameters": [ + { + "id": 658, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 804, + "name": "getType", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getType.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getType.ts#L8" + } + ], + "signatures": [ + { + "id": 805, + "name": "getType", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the target type" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "type" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getType.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getType.ts#L8" + } + ], + "typeParameters": [ + { + "id": 806, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "parameters": [ + { + "id": 807, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "target" + } + ] + }, + "type": { + "type": "reference", + "target": 806, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "string" + }, + { + "type": "literal", + "value": "number" + }, + { + "type": "literal", + "value": "bigint" + }, + { + "type": "literal", + "value": "boolean" + }, + { + "type": "literal", + "value": "symbol" + }, + { + "type": "literal", + "value": "undefined" + }, + { + "type": "literal", + "value": "object" + }, + { + "type": "literal", + "value": "function" + }, + { + "type": "literal", + "value": "window" + }, + { + "type": "literal", + "value": "error" + }, + { + "type": "literal", + "value": "promise" + }, + { + "type": "literal", + "value": "math" + }, + { + "type": "literal", + "value": "document" + }, + { + "type": "literal", + "value": "navigator" + }, + { + "type": "literal", + "value": "global" + }, + { + "type": "literal", + "value": "array" + }, + { + "type": "literal", + "value": "null" + }, + { + "type": "literal", + "value": "date" + }, + { + "type": "literal", + "value": "regexp" + } + ] + } + } + ] + }, + { + "id": 630, + "name": "getUrlParam", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParam.ts#L20" + }, + { + "fileName": "src/getUrlParam.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParam.ts#L21" + }, + { + "fileName": "src/getUrlParam.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParam.ts#L22" + } + ], + "signatures": [ + { + "id": 631, + "name": "getUrlParam", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get a single URL parameter (from the \"location.search\", before \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetUrlParam('key1')\n// key1 => xxx\n\ngetUrlParam('key1', 'https://test.com?key1=100#/home?key1=200')\n// key1 => 100\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getUrlParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParam.ts#L20" + } + ], + "parameters": [ + { + "id": 632, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "key name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + }, + { + "id": 633, + "name": "getUrlParam", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get a single URL parameter (from the \"location.search\", before \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetUrlParam('key1')\n// key1 => xxx\n\ngetUrlParam('key1', 'https://test.com?key1=100#/home?key1=200')\n// key1 => 100\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getUrlParam.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParam.ts#L21" + } + ], + "parameters": [ + { + "id": 634, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "key name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 635, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ] + }, + { + "id": 636, + "name": "getUrlParams", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParams.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParams.ts#L23" + }, + { + "fileName": "src/getUrlParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParams.ts#L24" + }, + { + "fileName": "src/getUrlParams.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParams.ts#L25" + }, + { + "fileName": "src/getUrlParams.ts", + "line": 26, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParams.ts#L26" + } + ], + "signatures": [ + { + "id": 637, + "name": "getUrlParams", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get all URL parameters (from the \"location.search\", before \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetUrlParams('https://test.com?key1=100#/home?key1=200')\n// \\{\"key1\":\"100\"\\}\n\ngetUrlParams('https://test.com?key1=100#/home?key1=200', true)\n// \\{\"key1\":100\\}\n\ngetUrlParams(true)\n// \\{\"key1\":100\\}\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getUrlParams.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParams.ts#L23" + } + ], + "parameters": [ + { + "id": 638, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 639, + "name": "getUrlParams", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get all URL parameters (from the \"location.search\", before \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetUrlParams('https://test.com?key1=100#/home?key1=200')\n// \\{\"key1\":\"100\"\\}\n\ngetUrlParams('https://test.com?key1=100#/home?key1=200', true)\n// \\{\"key1\":100\\}\n\ngetUrlParams(true)\n// \\{\"key1\":100\\}\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getUrlParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParams.ts#L24" + } + ], + "parameters": [ + { + "id": 640, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 641, + "name": "getUrlParams", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get all URL parameters (from the \"location.search\", before \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetUrlParams('https://test.com?key1=100#/home?key1=200')\n// \\{\"key1\":\"100\"\\}\n\ngetUrlParams('https://test.com?key1=100#/home?key1=200', true)\n// \\{\"key1\":100\\}\n\ngetUrlParams(true)\n// \\{\"key1\":100\\}\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getUrlParams.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParams.ts#L25" + } + ], + "parameters": [ + { + "id": 642, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 643, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts a specific string to a corresponding value (Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + }, + { + "id": 540, + "name": "inBrowser", + "variant": "declaration", + "kind": 32, + "flags": { + "isConst": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if it is running on the browser side" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "4.5.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "boolean" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/inBrowser.ts", + "line": 7, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/inBrowser.ts#L7" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 541, + "name": "inNodeJs", + "variant": "declaration", + "kind": 32, + "flags": { + "isConst": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if it is running on node.js" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "boolean" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/inNodeJs.ts", + "line": 7, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/inNodeJs.ts#L7" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1019, + "name": "default", + "variant": "declaration", + "kind": 32, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 140, + "character": 0, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L140" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1020, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 1021, + "name": "version", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 141, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L141" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "'__VERSION__'" + }, + { + "id": 1022, + "name": "download", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 142, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L142" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1023, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "node_modules/.pnpm/use-downloads@1.5.1/node_modules/use-downloads/dist/index.d.ts", + "line": 21, + "character": 24 + } + ], + "signatures": [ + { + "id": 1024, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Several ways of file downloading:\r\n1. For file formats that some browsers do not recognize. Enter the file URL in the address bar, window.location.href = URL, window.open(URL);\r\n2. using a tag download attribute (or js create a tag);\r\n3. browser-recognizable pdf, txt files, back-end compatible with handling attachment;\r\n4. add token in the header for authenticated download, use XmlHttpRequest to want to backend to launch the request" + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/use-downloads@1.5.1/node_modules/use-downloads/dist/index.d.ts", + "line": 21, + "character": 24 + } + ], + "parameters": [ + { + "id": 1025, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "link" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1026, + "name": "filename", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "filename" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1027, + "name": "type", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "download type 'href','open','download','request'" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1028, + "name": "RGBToHex", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 143, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L143" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1029, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/RGBToHex.ts", + "line": 15, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/RGBToHex.ts#L15" + } + ], + "signatures": [ + { + "id": 1030, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts RGB component values to color codes." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nRGBToHex(255, 165, 1)\n// 'ffa501'\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.9" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- hex value" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/RGBToHex.ts", + "line": 15, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/RGBToHex.ts#L15" + } + ], + "parameters": [ + { + "id": 1031, + "name": "r", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the 1st value of RGB" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1032, + "name": "g", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "RGB's 2nd value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1033, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "RGB's 3rd value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1034, + "name": "addEvent", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 144, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L144" + } + ], + "type": { + "type": "query", + "queryType": { + "type": "reference", + "target": 702, + "name": "addEvent", + "package": "js-cool" + } + } + }, + { + "id": 1035, + "name": "all", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 145, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L145" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1036, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/all.ts", + "line": 16, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/all.ts#L16" + } + ], + "signatures": [ + { + "id": 1037, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns true if the provided predicate function returns true for all elements in a set, otherwise it returns false." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nall([4, 2, 3], x => x > 1)\n// true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.9" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the result of the judgment" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/all.ts", + "line": 16, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/all.ts#L16" + } + ], + "typeParameters": [ + { + "id": 1038, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1039, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the target array" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 858, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + }, + { + "id": 1040, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the judgment method" + } + ] + }, + "type": { + "type": "reference", + "target": 987, + "name": "AnyFunction", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1041, + "name": "any", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 146, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L146" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1042, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/any.ts", + "line": 15, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/any.ts#L15" + } + ], + "signatures": [ + { + "id": 1043, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns true if the provided predicate function returns true for at least one element of a set, otherwise it returns false." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nany([0, 1, 2, 0], x => x >= 2)\n// true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.9" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the result of the judgment" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/any.ts", + "line": 15, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/any.ts#L15" + } + ], + "typeParameters": [ + { + "id": 1044, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1045, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the target array" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 863, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + }, + { + "id": 1046, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the judgment method" + } + ] + }, + "type": { + "type": "reference", + "target": 987, + "name": "AnyFunction", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1047, + "name": "getCache", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 147, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L147" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1048, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getCache.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getCache.ts#L24" + } + ], + "signatures": [ + { + "id": 1049, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the cache, if the deposited is Object, the retrieved is also Object, no need to convert again" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst data1 = 100\nconst data2 = { a: 10 }\nconst data3 = null\n\nsetCache('data1', data1)\nsetCache('data2', data2)\nsetCache('data3', data3)\n\ngetCache('data1') // 100\ngetCache('data2') // {a:10}\ngetCache('data3') // null\n\ngetCache('data4') // null\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- data, if it's an object, it's also an object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getCache.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getCache.ts#L24" + } + ], + "parameters": [ + { + "id": 1050, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cache name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + } + }, + { + "id": 1051, + "name": "setCache", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 148, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L148" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1052, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/setCache.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/setCache.ts#L25" + } + ], + "signatures": [ + { + "id": 1053, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the cache, if the deposited is Object, the retrieved is also Object, no need to convert again" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// set boolean\nsetCache('boolean', true)\n\n// set object\nsetCache('object', { name: 'saqqdy' })\n\n// set number, expires in 20 seconds\nsetCache('number', 666, 20)\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/setCache.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/setCache.ts#L25" + } + ], + "typeParameters": [ + { + "id": 1054, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1055, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cache name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1056, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cache data, can be passed directly into Object" + } + ] + }, + "type": { + "type": "reference", + "target": 649, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1057, + "name": "seconds", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cache time (seconds)" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1058, + "name": "delCache", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 149, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L149" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1059, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/delCache.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delCache.ts#L7" + } + ], + "signatures": [ + { + "id": 1060, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Delete localStorage" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/delCache.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delCache.ts#L7" + } + ], + "parameters": [ + { + "id": 1061, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1062, + "name": "getSession", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 150, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L150" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1063, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getSession.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getSession.ts#L24" + } + ], + "signatures": [ + { + "id": 1064, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Read sessionStorage" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst data1 = 100\nconst data2 = { a: 10 }\nconst data3 = null\n\nsetSession('data1', data1)\nsetSession('data2', data2)\nsetSession('data3', data3)\n\ngetSession('data1') // 100\ngetSession('data2') // {a:10}\ngetSession('data3') // null\n\ngetSession('data4') // null\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- sessionStorage" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getSession.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getSession.ts#L24" + } + ], + "parameters": [ + { + "id": 1065, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + } + }, + { + "id": 1066, + "name": "setSession", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 151, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L151" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1067, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/setSession.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/setSession.ts#L25" + } + ], + "signatures": [ + { + "id": 1068, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Write sessionStorage" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// set boolean\nsetSession('boolean', true)\n\n// set object\nsetSession('object', { name: 'saqqdy' })\n\n// set number, expires in 20 seconds\nsetSession('number', 666, 20)\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/setSession.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/setSession.ts#L25" + } + ], + "typeParameters": [ + { + "id": 1069, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1070, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1071, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Set the value to be stored, either as an object or as a string" + } + ] + }, + "type": { + "type": "reference", + "target": 661, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1072, + "name": "seconds", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the valid time" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1073, + "name": "delSession", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 152, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L152" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1074, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/delSession.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delSession.ts#L7" + } + ], + "signatures": [ + { + "id": 1075, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Delete sessionStorage" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/delSession.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delSession.ts#L7" + } + ], + "parameters": [ + { + "id": 1076, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1077, + "name": "getCookie", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 153, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L153" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1078, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getCookie.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getCookie.ts#L13" + } + ], + "signatures": [ + { + "id": 1079, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Read cookie by name" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetCookie('data1')\n// 100\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the cookie string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getCookie.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getCookie.ts#L13" + } + ], + "parameters": [ + { + "id": 1080, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cookie name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + } + }, + { + "id": 1081, + "name": "getCookies", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 154, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L154" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1082, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getCookies.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getCookies.ts#L12" + } + ], + "signatures": [ + { + "id": 1083, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Read all cookies" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetCookies()\n// \\{ token: 'xxx', name: 'saqqdy' \\}\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.6.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the cookie values" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getCookies.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getCookies.ts#L12" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1084, + "name": "setCookie", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 155, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L155" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1085, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/setCookie.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/setCookie.ts#L22" + } + ], + "signatures": [ + { + "id": 1086, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "setCookie method for writing cookies" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// expires in 86400 seconds\nsetCookie('token', 'xxxxxx')\n\n// set to path\nsetCookie('token', 'xxxxxx', 20, '/app')\n\n// enable samesite\nsetCookie('number', 666, 20, '/', false)\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/setCookie.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/setCookie.ts#L22" + } + ], + "typeParameters": [ + { + "id": 1087, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "intrinsic", + "name": "boolean" + } + ] + } + } + ], + "parameters": [ + { + "id": 1088, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cookie name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1089, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Set the value to be stored, either as an object or as a string" + } + ] + }, + "type": { + "type": "reference", + "target": 675, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1090, + "name": "seconds", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cookie validity default 1 day" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 1091, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "path, default '/'" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "'/'" + }, + { + "id": 1092, + "name": "samesite", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SameSite, default true" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "true" + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1093, + "name": "delCookie", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 156, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L156" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1094, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/delCookie.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delCookie.ts#L9" + } + ], + "signatures": [ + { + "id": 1095, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Delete cookie" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/delCookie.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delCookie.ts#L9" + } + ], + "parameters": [ + { + "id": 1096, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cookie name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1097, + "name": "camel2Dash", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 157, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L157" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1098, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/camel2Dash.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/camel2Dash.ts#L8" + } + ], + "signatures": [ + { + "id": 1099, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts humped strings to -spaced and all lowercase Dash pattern" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the converted string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/camel2Dash.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/camel2Dash.ts#L8" + } + ], + "parameters": [ + { + "id": 1100, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be converted" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1101, + "name": "cleanData", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 158, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L158" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1102, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/cleanData.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/cleanData.ts#L17" + } + ], + "signatures": [ + { + "id": 1103, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Data cleaning methods" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the cleaned object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/cleanData.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/cleanData.ts#L17" + } + ], + "parameters": [ + { + "id": 1104, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the object to be cleaned, must be passed" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 1105, + "name": "map", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the data queue to be cleaned, can be passed as array or object" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + }, + { + "type": "reference", + "target": 986, + "name": "AnyObject", + "package": "js-cool" + } + ] + } + }, + { + "id": 1106, + "name": "nullFix", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + } + }, + { + "id": 1107, + "name": "clearAttr", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 159, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L159" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1108, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/clearAttr.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/clearAttr.ts#L8" + } + ], + "signatures": [ + { + "id": 1109, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Remove all attributes of HTML tags" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "newString" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/clearAttr.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/clearAttr.ts#L8" + } + ], + "parameters": [ + { + "id": 1110, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1111, + "name": "clearHtml", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 160, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L160" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1112, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/clearHtml.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/clearHtml.ts#L8" + } + ], + "signatures": [ + { + "id": 1113, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Removing HTML tags" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "newString" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/clearHtml.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/clearHtml.ts#L8" + } + ], + "parameters": [ + { + "id": 1114, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "string with html tags" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1115, + "name": "escape", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 161, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L161" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1116, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/escape.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/escape.ts#L13" + } + ], + "signatures": [ + { + "id": 1117, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Escaping HTML Special Characters" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nescape('
test
string
')\n// '<div>test<br />string</div>'\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.5.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- newString" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/escape.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/escape.ts#L13" + } + ], + "parameters": [ + { + "id": 1118, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "string with html tags" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1119, + "name": "unescape", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 162, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L162" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1120, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/unescape.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/unescape.ts#L13" + } + ], + "signatures": [ + { + "id": 1121, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Restore HTML Special Characters" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nunescape('<div>test<br />string</div>')\n// '
test
string
'\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.5.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- newString" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/unescape.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/unescape.ts#L13" + } + ], + "parameters": [ + { + "id": 1122, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1123, + "name": "client", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 163, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L163" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1124, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 10, + "character": 15, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L10" + } + ], + "signatures": [ + { + "id": 1125, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The client method returns a browser judgment result: " + }, + { + "kind": "code", + "text": "`{ ANDROID: true, GECKO: true, GLSH_APP: false, IE: false, IOS: false, IPAD: false, IPHONE: false, MOBILE: true, MOBILEDEVICE. true, OPERA: false, QQ: false, QQBROWSER: false, TRIDENT: false, WEBKIT: true, WEIXIN: false }`" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "Will be refactored for the next major release" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the common ua match table, if name is passed, then returns whether the terminal matches true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/client.ts", + "line": 10, + "character": 15, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L10" + } + ], + "parameters": [ + { + "id": 1126, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, e.g. pass in MicroMessenger to return whether it is the built-in browser of Weixin" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "''" + }, + { + "id": 1127, + "name": "userAgent", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, pass in a custom ua, default takes the browser's navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "navigator.userAgent" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reflection", + "declaration": { + "id": 1128, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 1129, + "name": "IE", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 16, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L16" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1130, + "name": "GECKO", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 17, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L17" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1131, + "name": "WEBKIT", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 18, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L18" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1132, + "name": "OPERA", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 19, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L19" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1133, + "name": "TRIDENT", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 20, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L20" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1134, + "name": "MOBILE", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 21, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L21" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1135, + "name": "IOS", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 23, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L23" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1136, + "name": "ANDROID", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 24, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L24" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1137, + "name": "IPHONE", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 25, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L25" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1138, + "name": "IPAD", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 26, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L26" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1139, + "name": "QQBROWSER", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 28, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L28" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1140, + "name": "WEIXIN", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 29, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L29" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1141, + "name": "QQ", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 30, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L30" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExpMatchArray" + }, + "name": "RegExpMatchArray", + "package": "typescript" + } + ] + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 1129, + 1130, + 1131, + 1132, + 1133, + 1134, + 1135, + 1136, + 1137, + 1138, + 1139, + 1140, + 1141 + ] + } + ], + "sources": [ + { + "fileName": "src/client.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/client.ts#L15" + } + ] + } + } + ] + } + } + ] + } + } + }, + { + "id": 1142, + "name": "complement", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 164, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L164" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1143, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/complement.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/complement.ts#L16" + } + ], + "signatures": [ + { + "id": 1144, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Find the complement of multiple arrays" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ncomplement([1, 2], [2, '33'], [2]) // [1, '33']\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "2.2.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/complement.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/complement.ts#L16" + } + ], + "typeParameters": [ + { + "id": 1145, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1146, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arguments" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "reference", + "target": 906, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 906, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 1147, + "name": "contains", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 165, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L165" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1148, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/contains.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/contains.ts#L14" + } + ], + "signatures": [ + { + "id": 1149, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the array contains the specified element" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ncontains([1, 2], 2) // true\ncontains([1, 2], 3) // false\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "2.2.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "boolean" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/contains.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/contains.ts#L14" + } + ], + "parameters": [ + { + "id": 1150, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the target array" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 1151, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the target to find" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1152, + "name": "CSVToArray", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 166, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L166" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1153, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/CSVToArray.ts", + "line": 21, + "character": 19, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/CSVToArray.ts#L21" + } + ], + "signatures": [ + { + "id": 1154, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts a comma-separated string of values (CSV) to a 2D array." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nCSVToArray('a,b\\\\nc,d')\n// `[['a','b'],['c','d']]`.\n\nCSVToArray('a;b\\\\\\nc;d', ';')\n// `[['a','b'],['c','d']]`.\n\nCSVToArray('col1,col2\\\\\\na,b\\\\\\nc,d', ',', true)\n// `[['a','b'],['c','d']]`.\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.9" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/CSVToArray.ts", + "line": 21, + "character": 19, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/CSVToArray.ts#L21" + } + ], + "parameters": [ + { + "id": 1155, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "csv data" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1156, + "name": "delimiter", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "separator, default ','" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "','" + }, + { + "id": 1157, + "name": "omitFirstRow", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the first row is the table header data, default false" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + } + ] + } + } + }, + { + "id": 1158, + "name": "arrayToCSV", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 167, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L167" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1159, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/arrayToCSV.ts", + "line": 20, + "character": 19, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/arrayToCSV.ts#L20" + } + ], + "signatures": [ + { + "id": 1160, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts a two-dimensional array to a comma-separated string of values (CSV)." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\narrayToCSV([['a', 'b'], ['c', 'd']])\n// '\"a\", \"b\" \\n \"c\", \"d\"'\n\narrayToCSV([['a', 'b'], ['c', 'd']], ';')\n// '\"a\"; \"b\"\\n \"c\"; \"d\"'\n\narrayToCSV([['a', '\"b\" great'], ['c', 3.1415]])\n// '\"a\", \"\"\"b\"\" great\"\\n \"c\",3.1415'\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.9" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "CSV data" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/arrayToCSV.ts", + "line": 20, + "character": 19, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/arrayToCSV.ts#L20" + } + ], + "typeParameters": [ + { + "id": 1161, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + } + } + ], + "parameters": [ + { + "id": 1162, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 875, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1163, + "name": "delimiter", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "delimiter, default ','" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "','" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1164, + "name": "CSVToJSON", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 168, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L168" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1165, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/CSVToJSON.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/CSVToJSON.ts#L17" + } + ], + "signatures": [ + { + "id": 1166, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts a comma-separated string of values (CSV) to an array of 2D objects. The first line of the string is used as the header line." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nCSVToJSON('col1,col2\\\\na,b\\\\\\nc,d')\n// `[{'col1': 'a', 'col2': 'b'}, {'col1': 'c', 'col2': 'd'}]`.\n\nCSVToJSON('col1;col2\\\\\\na;b\\\\\\nc;d', ';')\n// `[{'col1': 'a', 'col2': 'b'}, {'col1': 'c', 'col2': 'd'}]`.\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.9" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- json" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/CSVToJSON.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/CSVToJSON.ts#L17" + } + ], + "parameters": [ + { + "id": 1167, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "csv data" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1168, + "name": "delimiter", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "delimiter, default ','" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "','" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ] + } + } + }, + { + "id": 1169, + "name": "JSONToCSV", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 169, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L169" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1170, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/JSONToCSV.ts", + "line": 18, + "character": 18, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/JSONToCSV.ts#L18" + } + ], + "signatures": [ + { + "id": 1171, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts an array of objects to a comma-separated value (CSV) string containing only the specified columns." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nJSONToCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b'])\n// 'a,b\\n \"1\", \"2\"\\n \"3\", \"4\"\\n \"6\",\"\"\\n\"\", \"7\"'\n\nJSONToCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b'], ';')\n// 'a;b\\n \"1\"; \"2\"\\n \"3\"; \"4\"\\n \"6\";\"\"\\n\"\"; \"7\"'\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.9" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- CSV data" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/JSONToCSV.ts", + "line": 18, + "character": 18, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/JSONToCSV.ts#L18" + } + ], + "parameters": [ + { + "id": 1172, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 1173, + "name": "columns", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the specified columns" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 1174, + "name": "delimiter", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "delimiter, default ','" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "','" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1175, + "name": "cutCHSString", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 170, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L170" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1176, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/cutCHSString.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/cutCHSString.ts#L10" + } + ], + "signatures": [ + { + "id": 1177, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Intercept string, Chinese counts as 2 bytes" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the intercepted string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/cutCHSString.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/cutCHSString.ts#L10" + } + ], + "parameters": [ + { + "id": 1178, + "name": "str", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be intercepted" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1179, + "name": "len", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "str.length" + }, + { + "id": 1180, + "name": "hasDot", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1181, + "name": "dash2Camel", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 171, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L171" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1182, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/dash2Camel.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/dash2Camel.ts#L8" + } + ], + "signatures": [ + { + "id": 1183, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts -spaced and all lowercase Dash patterns to humped strings" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the converted string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/dash2Camel.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/dash2Camel.ts#L8" + } + ], + "parameters": [ + { + "id": 1184, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be converted" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1185, + "name": "decodeBase64", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 172, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L172" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1186, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/decodeBase64.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/decodeBase64.ts#L11" + } + ], + "signatures": [ + { + "id": 1187, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 decoding" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "decoded string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/decodeBase64.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/decodeBase64.ts#L11" + } + ], + "parameters": [ + { + "id": 1188, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be decoded" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1189, + "name": "decodeUtf8", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 173, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L173" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1190, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/decodeUtf8.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/decodeUtf8.ts#L8" + } + ], + "signatures": [ + { + "id": 1191, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Decoding Utf8" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "decoded string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/decodeUtf8.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/decodeUtf8.ts#L8" + } + ], + "parameters": [ + { + "id": 1192, + "name": "utftext", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1193, + "name": "delay", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 174, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L174" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1194, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delay.ts#L9" + } + ], + "signatures": [ + { + "id": 1195, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "debounce & throttle" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "class" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delay.ts#L9" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1196, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 1197, + "name": "map", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 11, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delay.ts#L11" + } + ], + "type": { + "type": "intrinsic", + "name": "any" + }, + "defaultValue": "..." + }, + { + "id": 1198, + "name": "register", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 12, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delay.ts#L12" + } + ], + "signatures": [ + { + "id": 1199, + "name": "register", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 12, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delay.ts#L12" + } + ], + "parameters": [ + { + "id": 1200, + "name": "id", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1201, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 987, + "name": "AnyFunction", + "package": "js-cool" + } + }, + { + "id": 1202, + "name": "time", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1203, + "name": "boo", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 1204, + "name": "destroy", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 43, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delay.ts#L43" + } + ], + "signatures": [ + { + "id": 1205, + "name": "destroy", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 43, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delay.ts#L43" + } + ], + "parameters": [ + { + "id": 1206, + "name": "id", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 1197 + ] + }, + { + "title": "Methods", + "children": [ + 1198, + 1204 + ] + } + ], + "sources": [ + { + "fileName": "src/delay.ts", + "line": 10, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/delay.ts#L10" + } + ] + } + } + } + ] + } + } + }, + { + "id": 1207, + "name": "encodeBase64", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 175, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L175" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1208, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/encodeBase64.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/encodeBase64.ts#L11" + } + ], + "signatures": [ + { + "id": 1209, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "String, number to base64" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the BASE64 encoding" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/encodeBase64.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/encodeBase64.ts#L11" + } + ], + "parameters": [ + { + "id": 1210, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be encoded" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1211, + "name": "encodeUtf8", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 176, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L176" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1212, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/encodeUtf8.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/encodeUtf8.ts#L8" + } + ], + "signatures": [ + { + "id": 1213, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Encoding Utf8" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the UTF-8 encoding" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/encodeUtf8.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/encodeUtf8.ts#L8" + } + ], + "parameters": [ + { + "id": 1214, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1215, + "name": "extend", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 177, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L177" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1216, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 41, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/extend.ts#L41" + }, + { + "fileName": "src/extend.ts", + "line": 42, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/extend.ts#L42" + }, + { + "fileName": "src/extend.ts", + "line": 43, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/extend.ts#L43" + }, + { + "fileName": "src/extend.ts", + "line": 44, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/extend.ts#L44" + }, + { + "fileName": "src/extend.ts", + "line": 45, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/extend.ts#L45" + } + ], + "signatures": [ + { + "id": 1217, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "deep copy & merge objects" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 41, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/extend.ts#L41" + } + ], + "parameters": [ + { + "id": 1218, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "boolean | ExtendData" + } + ] + }, + "type": { + "type": "reference", + "target": 785, + "name": "ExtendObjectData", + "package": "js-cool" + } + }, + { + "id": 1219, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ArrayOneMore" + } + ] + }, + "type": { + "type": "reference", + "target": 995, + "typeArguments": [ + { + "type": "reference", + "target": 785, + "name": "ExtendObjectData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 785, + "name": "ExtendObjectData", + "package": "js-cool" + } + }, + { + "id": 1220, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "deep copy & merge objects" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 42, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/extend.ts#L42" + } + ], + "parameters": [ + { + "id": 1221, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "boolean | ExtendData" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1222, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ArrayOneMore" + } + ] + }, + "type": { + "type": "reference", + "target": 995, + "typeArguments": [ + { + "type": "reference", + "target": 785, + "name": "ExtendObjectData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 785, + "name": "ExtendObjectData", + "package": "js-cool" + } + }, + { + "id": 1223, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "deep copy & merge objects" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 43, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/extend.ts#L43" + } + ], + "parameters": [ + { + "id": 1224, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "boolean | ExtendData" + } + ] + }, + "type": { + "type": "reference", + "target": 784, + "name": "ExtendArrayData", + "package": "js-cool" + } + }, + { + "id": 1225, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ArrayOneMore" + } + ] + }, + "type": { + "type": "reference", + "target": 995, + "typeArguments": [ + { + "type": "reference", + "target": 784, + "name": "ExtendArrayData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 784, + "name": "ExtendArrayData", + "package": "js-cool" + } + }, + { + "id": 1226, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "deep copy & merge objects" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 44, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/extend.ts#L44" + } + ], + "parameters": [ + { + "id": 1227, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "boolean | ExtendData" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1228, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ArrayOneMore" + } + ] + }, + "type": { + "type": "reference", + "target": 995, + "typeArguments": [ + { + "type": "reference", + "target": 784, + "name": "ExtendArrayData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 784, + "name": "ExtendArrayData", + "package": "js-cool" + } + } + ] + } + } + }, + { + "id": 1229, + "name": "clone", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 178, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L178" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1230, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/clone.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/clone.ts#L18" + } + ], + "signatures": [ + { + "id": 1231, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "deep clone (Buffer, Promise, Set, Map are not supported)" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst source = { a: 100, reg: /\\d+/g, arr: [1, 2] }\nconst res = clone(source)\n// { a: 100, reg: /\\d+/g, arr: [1, 2] }\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.15.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- new object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/clone.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/clone.ts#L18" + } + ], + "typeParameters": [ + { + "id": 1232, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "parameters": [ + { + "id": 1233, + "name": "parent", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "source object" + } + ] + }, + "type": { + "type": "reference", + "target": 789, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 789, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ] + } + } + }, + { + "id": 1234, + "name": "fillIPv6", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 179, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L179" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1235, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/fillIPv6.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/fillIPv6.ts#L15" + } + ], + "signatures": [ + { + "id": 1236, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Read full IPv6" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nfillIPv6('2409:8005:800::2')\n// '2409:8005:0800:0000:0000:0000:0000:0002'\n\nfillIPv6('2409:8005:800::1c')\n// '2409:8005:0800:0000:0000:0000:0000:001c'\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "2.2.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/fillIPv6.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/fillIPv6.ts#L15" + } + ], + "parameters": [ + { + "id": 1237, + "name": "ip", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1238, + "name": "fixNumber", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 180, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L180" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1239, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/fixNumber.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/fixNumber.ts#L22" + } + ], + "signatures": [ + { + "id": 1240, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Intercept the decimal places, do not fill in the missing 0" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nfixNumber('100.888')\n// 100.88\n\nfixNumber('100.8', 2)\n// 100.8\n\nfixNumber('100.8888', 3)\n// 100.888\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the new number" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/fixNumber.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/fixNumber.ts#L22" + } + ], + "parameters": [ + { + "id": 1241, + "name": "number", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the number of digits to be processed, required" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 1242, + "name": "n", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the number of decimal places to keep, default is 2" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "2" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } + } + }, + { + "id": 1243, + "name": "mapTemplate", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 181, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L181" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1244, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/mapTemplate.ts", + "line": 28, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/mapTemplate.ts#L28" + } + ], + "signatures": [ + { + "id": 1245, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Replacing specific data in a template string, support " + }, + { + "kind": "code", + "text": "`${xxxx}`" + }, + { + "kind": "text", + "text": " " + }, + { + "kind": "code", + "text": "`{{xxxx}}`" + }, + { + "kind": "text", + "text": " and " + }, + { + "kind": "code", + "text": "`{xxxx}`" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nconst tmp = \"My name is ${name}, I'm ${age} years old.\"\nmapTemplate(tmp, {\n name: 'saqqdy',\n age: 18\n})\n// My name is saqqdy, I'm 18 years old.\n\nmapTemplate(tmp, key => ({ name: 'saqqdy', age: 28 }[key]))\n// My name is saqqdy, I'm 28 years old.\n\nconst tmp = \"My name is {{name}}, I'm {{age}} years old.\"\nmapTemplate(tmp, {\n name: 'saqqdy',\n age: 18\n})\n// My name is saqqdy, I'm 18 years old.\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.9.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/mapTemplate.ts", + "line": 28, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/mapTemplate.ts#L28" + } + ], + "parameters": [ + { + "id": 1246, + "name": "tmp", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Template string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1247, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Template data of map function" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "reflection", + "declaration": { + "id": 1248, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/mapTemplate.ts", + "line": 30, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/mapTemplate.ts#L30" + } + ], + "signatures": [ + { + "id": 1249, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/mapTemplate.ts", + "line": 30, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/mapTemplate.ts#L30" + } + ], + "parameters": [ + { + "id": 1250, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1251, + "name": "getAppVersion", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 182, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L182" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1252, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getAppVersion.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getAppVersion.ts#L11" + } + ], + "signatures": [ + { + "id": 1253, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the APP version number" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "please use 'appVersion' instead" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "null/true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getAppVersion.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getAppVersion.ts#L11" + } + ], + "parameters": [ + { + "id": 1254, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "app name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1255, + "name": "withApp", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "whether to bring the name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1256, + "name": "userAgent", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua, allowed to be undefined, default is navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + } + } + }, + { + "id": 1257, + "name": "appVersion", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 183, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L183" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1258, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/appVersion.ts#L20" + }, + { + "fileName": "src/appVersion.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/appVersion.ts#L21" + }, + { + "fileName": "src/appVersion.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/appVersion.ts#L22" + }, + { + "fileName": "src/appVersion.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/appVersion.ts#L23" + }, + { + "fileName": "src/appVersion.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/appVersion.ts#L24" + } + ], + "signatures": [ + { + "id": 1259, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the APP version from navigator.userAgent, support 'x.x.x' & 'x.x.x-tagname.x'" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'\nappVersion('Chrome') // 114.0.0.0\nappVersion('Safari') // 537.36\nappVersion('appname', false) // null\nappVersion('appname') // 1.0.0-beta.8\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.1.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "string|null" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/appVersion.ts#L20" + } + ], + "parameters": [ + { + "id": 1260, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "app name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 1261, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the APP version from navigator.userAgent, support 'x.x.x' & 'x.x.x-tagname.x'" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'\nappVersion('Chrome') // 114.0.0.0\nappVersion('Safari') // 537.36\nappVersion('appname', false) // null\nappVersion('appname') // 1.0.0-beta.8\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.1.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "string|null" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/appVersion.ts#L21" + } + ], + "parameters": [ + { + "id": 1262, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "app name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1263, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua or any ua like string, allowed to be undefined, default is navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 1264, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the APP version from navigator.userAgent, support 'x.x.x' & 'x.x.x-tagname.x'" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'\nappVersion('Chrome') // 114.0.0.0\nappVersion('Safari') // 537.36\nappVersion('appname', false) // null\nappVersion('appname') // 1.0.0-beta.8\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.1.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "string|null" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/appVersion.ts#L22" + } + ], + "parameters": [ + { + "id": 1265, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "app name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1266, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua or any ua like string, allowed to be undefined, default is navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 1267, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the APP version from navigator.userAgent, support 'x.x.x' & 'x.x.x-tagname.x'" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'\nappVersion('Chrome') // 114.0.0.0\nappVersion('Safari') // 537.36\nappVersion('appname', false) // null\nappVersion('appname') // 1.0.0-beta.8\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.1.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "string|null" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/appVersion.ts#L23" + } + ], + "parameters": [ + { + "id": 1268, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "app name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1269, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua or any ua like string, allowed to be undefined, default is navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1270, + "name": "ignoreCase", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "whether to ignore case" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + } + } + }, + { + "id": 1271, + "name": "getCHSLength", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 184, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L184" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1272, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getCHSLength.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getCHSLength.ts#L13" + } + ], + "signatures": [ + { + "id": 1273, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the length of the text, Chinese counts as 2 bytes" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetCHSLength('测试')\n// 2\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- length" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getCHSLength.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getCHSLength.ts#L13" + } + ], + "parameters": [ + { + "id": 1274, + "name": "str", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } + } + }, + { + "id": 1275, + "name": "getDirParam", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 185, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L185" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1276, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getDirParam.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getDirParam.ts#L14" + } + ], + "signatures": [ + { + "id": 1277, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get directory form URL parameters" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "It will be refactored and renamed getDirParams in the next major release." + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- parameter object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getDirParam.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getDirParam.ts#L14" + } + ], + "parameters": [ + { + "id": 1278, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url address" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": 613, + "name": "DirParamType", + "package": "js-cool" + } + } + ] + } + } + }, + { + "id": 1279, + "name": "compareVersion", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 186, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L186" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1280, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/compareVersion.ts", + "line": 48, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/compareVersion.ts#L48" + } + ], + "signatures": [ + { + "id": 1281, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Version number size comparison, tag version: rc \\> beta \\> alpha \\> other" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ncompareVersion('1.11.0', '1.9.9')\n// => 1: 1=Version 1.11.0 is newer than 1.9.9\n\ncompareVersion('1.11.0', '1.11.0')\n// => 0: 0=Versions 1.11.0 and 1.11.0 are the same\n\ncompareVersion('1.11.0', '1.99.0')\n// => -1: -1=Version 1.11.0 is older than 1.99.0\n\ncompareVersion('1.0.0.0.0.10', '1.0')\n// => -1\n\n// compare tag version: rc > beta > alpha > other\ncompareVersion('1.11.0', '1.11.0-beta.1')\n// => -1\n\ncompareVersion('1.11.0-beta.1', '1.11.0')\n// => -1\n\ncompareVersion('1.11.0-beta.10', '1.11.0-beta.10')\n// => 0\n\ncompareVersion('1.11.0-alpha.10', '1.11.0-beta.1')\n// => -1\n\ncompareVersion('1.11.0-alpha.10', '1.11.0-rc.1')\n// => -1\n\ncompareVersion('1.11.0-tag.10', '1.11.0-alpha.1')\n// => -1\n\ncompareVersion('1.11.0-tag.10', '1.11.0-tag.1')\n// => 1\n\ncompareVersion('1.11.0-release.10', '1.11.0-tag.1')\n// => 1\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "4.7.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "1/0/-1" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/compareVersion.ts", + "line": 48, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/compareVersion.ts#L48" + } + ], + "parameters": [ + { + "id": 1282, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "input version" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1283, + "name": "compare", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "compare version" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": -1 + }, + { + "type": "literal", + "value": 0 + }, + { + "type": "literal", + "value": 1 + } + ] + } + } + ] + } + } + }, + { + "id": 1284, + "name": "getNumber", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 187, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L187" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1285, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getNumber.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getNumber.ts#L16" + } + ], + "signatures": [ + { + "id": 1286, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the number in the string" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetNumber('Chrome123.33')\n// '123.33'.\n\ngetNumber('234test.88')\n// '234.88'.\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- a pure numeric string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getNumber.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getNumber.ts#L16" + } + ], + "parameters": [ + { + "id": 1287, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in a string with a number" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1288, + "name": "getOsVersion", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 188, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L188" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1289, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getOsVersion.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getOsVersion.ts#L21" + } + ], + "signatures": [ + { + "id": 1290, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the phone system version" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```\ngetOsVersion('iPhone')\n// '13.2.3'\n\ngetOsVersion('iPhone', true)\n// 'iPhone/13.2.3'\n```" + } + ] + }, + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "please use 'osVersion' instead" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- null/true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getOsVersion.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getOsVersion.ts#L21" + } + ], + "parameters": [ + { + "id": 1291, + "name": "osName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "system type string Android, iPod, iWatch or iPhone" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1292, + "name": "withOS", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "whether to bring the name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1293, + "name": "userAgent", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua, allowed to be undefined, default takes navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + } + } + }, + { + "id": 1294, + "name": "osVersion", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 189, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L189" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1295, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/osVersion.ts", + "line": 36, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/osVersion.ts#L36" + } + ], + "signatures": [ + { + "id": 1296, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the system name and version" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```\n// ipad => 'Mozilla/5.0 (iPad; CPU OS 13_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/87.0.4280.77 Mobile/15E148 Safari/604.1'\nosVersion() // \\{ name: 'iOS', version: '13.3' \\}\n\n// iphone => 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1'\nosVersion() // \\{ name: 'iOS', version: '13.2.3' \\}\n\n// mac os => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'\nosVersion() // \\{ name: 'MacOS', version: '10.15.7' \\}\n\n// windows => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'\nosVersion() // \\{ name: 'Windows', version: '10.0' \\}\n\n// windows xp => 'Mozilla/5.0 (Windows NT 5.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'\nosVersion() // \\{ name: 'Windows', version: 'XP' \\}\n\n// windows phone => 'Mozilla/5.0 (Windows Phone OS 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36'\nosVersion() // \\{ name: 'WindowsPhone', version: '10.0' \\}\n\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.1.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "OsVersion|null" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/osVersion.ts", + "line": 36, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/osVersion.ts#L36" + } + ], + "parameters": [ + { + "id": 1297, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua or any ua like string, allowed to be undefined, default is navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 576, + "name": "OsVersion", + "package": "js-cool" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + } + } + }, + { + "id": 1298, + "name": "browserVersion", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 190, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L190" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1299, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/browserVersion.ts", + "line": 68, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/browserVersion.ts#L68" + } + ], + "signatures": [ + { + "id": 1300, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the browser name and version" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```\n// Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Ap…KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36\nbrowserVersion() // \\{ name: 'Chrome', version: '114.0.0.0' \\}\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.2.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "BrowserVersion|null" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/browserVersion.ts", + "line": 68, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/browserVersion.ts#L68" + } + ], + "parameters": [ + { + "id": 1301, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua or any ua like string, allowed to be undefined, default is navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 582, + "name": "BrowserVersion", + "package": "js-cool" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + } + } + }, + { + "id": 1302, + "name": "getQueryParam", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 191, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L191" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1303, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParam.ts#L20" + }, + { + "fileName": "src/getQueryParam.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParam.ts#L21" + }, + { + "fileName": "src/getQueryParam.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParam.ts#L22" + } + ], + "signatures": [ + { + "id": 1304, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get a single query parameter (behind \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetQueryParam('key1')\n// key1 => xxx\n\ngetQueryParam('key1', 'https://test.com?key1=100#/home?key1=200')\n// key1 => 200\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getQueryParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParam.ts#L20" + } + ], + "parameters": [ + { + "id": 1305, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "key name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + }, + { + "id": 1306, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get a single query parameter (behind \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetQueryParam('key1')\n// key1 => xxx\n\ngetQueryParam('key1', 'https://test.com?key1=100#/home?key1=200')\n// key1 => 200\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getQueryParam.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParam.ts#L21" + } + ], + "parameters": [ + { + "id": 1307, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "key name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1308, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ] + } + } + }, + { + "id": 1309, + "name": "getQueryParams", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 192, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L192" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1310, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParams.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParams.ts#L23" + }, + { + "fileName": "src/getQueryParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParams.ts#L24" + }, + { + "fileName": "src/getQueryParams.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParams.ts#L25" + }, + { + "fileName": "src/getQueryParams.ts", + "line": 26, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParams.ts#L26" + } + ], + "signatures": [ + { + "id": 1311, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get all URL parameters (behind \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetQueryParams('https://test.com?key1=100#/home?key1=200')\n// \\{\"key1\":\"200\"\\}\n\ngetQueryParams('https://test.com?key1=100#/home?key1=200', true)\n// \\{\"key1\":200\\}\n\ngetQueryParams(true)\n// \\{\"key1\":200\\}\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getQueryParams.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParams.ts#L23" + } + ], + "parameters": [ + { + "id": 1312, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 1313, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get all URL parameters (behind \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetQueryParams('https://test.com?key1=100#/home?key1=200')\n// \\{\"key1\":\"200\"\\}\n\ngetQueryParams('https://test.com?key1=100#/home?key1=200', true)\n// \\{\"key1\":200\\}\n\ngetQueryParams(true)\n// \\{\"key1\":200\\}\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getQueryParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParams.ts#L24" + } + ], + "parameters": [ + { + "id": 1314, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 1315, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get all URL parameters (behind \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetQueryParams('https://test.com?key1=100#/home?key1=200')\n// \\{\"key1\":\"200\"\\}\n\ngetQueryParams('https://test.com?key1=100#/home?key1=200', true)\n// \\{\"key1\":200\\}\n\ngetQueryParams(true)\n// \\{\"key1\":200\\}\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getQueryParams.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getQueryParams.ts#L25" + } + ], + "parameters": [ + { + "id": 1316, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1317, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts a specific string to a corresponding value (Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1318, + "name": "getProperty", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 193, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L193" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1319, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getProperty.ts#L25" + }, + { + "fileName": "src/getProperty.ts", + "line": 30, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getProperty.ts#L30" + }, + { + "fileName": "src/getProperty.ts", + "line": 35, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getProperty.ts#L35" + } + ], + "signatures": [ + { + "id": 1320, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get array, object property values based on path string" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst target = {\n a: 1,\n b: [{\n c: 2\n d: NaN\n }]\n}\ngetProperty(target, 'a') // 1\ngetProperty(target, 'd', 100) // 100\ngetProperty(target, 'b[0].c') // 2\ngetProperty(target, 'b[0].d', 100) // 100\ngetProperty(target, () => 'a') // 1\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "2.2.4" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getProperty.ts#L25" + } + ], + "typeParameters": [ + { + "id": 1321, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 1322, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "target array, object" + } + ] + }, + "type": { + "type": "reference", + "target": 921, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1323, + "name": "prop", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "query target, can pass function" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reflection", + "declaration": { + "id": 1324, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 27, + "character": 16, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getProperty.ts#L27" + } + ], + "signatures": [ + { + "id": 1325, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 27, + "character": 18, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getProperty.ts#L27" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 1326, + "name": "defaultValue", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "default value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 1327, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get array, object property values based on path string" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst target = {\n a: 1,\n b: [{\n c: 2\n d: NaN\n }]\n}\ngetProperty(target, 'a') // 1\ngetProperty(target, 'd', 100) // 100\ngetProperty(target, 'b[0].c') // 2\ngetProperty(target, 'b[0].d', 100) // 100\ngetProperty(target, () => 'a') // 1\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "2.2.4" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 30, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getProperty.ts#L30" + } + ], + "typeParameters": [ + { + "id": 1328, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "parameters": [ + { + "id": 1329, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "target array, object" + } + ] + }, + "type": { + "type": "reference", + "target": 928, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1330, + "name": "prop", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "query target, can pass function" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reflection", + "declaration": { + "id": 1331, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 32, + "character": 16, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getProperty.ts#L32" + } + ], + "signatures": [ + { + "id": 1332, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 32, + "character": 18, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getProperty.ts#L32" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 1333, + "name": "defaultValue", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "default value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + } + }, + { + "id": 1334, + "name": "randomColor", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 194, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L194" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1335, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/randomColor.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomColor.ts#L25" + } + ], + "signatures": [ + { + "id": 1336, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Generate random hexadecimal colors" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nrandomColor()\n// #bf444b\n\nrandomColor(200)\n// #d6e9d7\n\nrandomColor(200, 255)\n// #d3f9e4\n\nrandomColor([0, 0, 0], [255, 255, 255])\n// #d6e9d7\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.5.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/randomColor.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomColor.ts#L25" + } + ], + "parameters": [ + { + "id": 1337, + "name": "min", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the minimum value of the random numbers, eg: [10, 10, 10]" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "tuple", + "elements": [ + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + ] + } + }, + { + "id": 1338, + "name": "max", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the maximum value of the random number, eg: [255, 255, 255]" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "tuple", + "elements": [ + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1339, + "name": "randomNumber", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 195, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L195" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1340, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/randomNumber.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomNumber.ts#L17" + } + ], + "signatures": [ + { + "id": 1341, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get a random integer" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nrandomNumber()\n// 8\n\nrandomNumber(0.1, 0.9)\n// 0.8\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- random number" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/randomNumber.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomNumber.ts#L17" + } + ], + "parameters": [ + { + "id": 1342, + "name": "min", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the minimum value of the random number" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "1" + }, + { + "id": 1343, + "name": "max", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the maximum value of the random number" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "10" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } + } + }, + { + "id": 1344, + "name": "randomNumbers", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 196, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L196" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1345, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/randomNumbers.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomNumbers.ts#L24" + } + ], + "signatures": [ + { + "id": 1346, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Generate n random integers that sum to a fixed sum" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nrandomNumbers()\n// [8]\n\nrandomNumbers(4, 5)\n// [1, 1, 2, 1]\n\nrandomNumbers(4, 5, false)\n// [0, 1, 2, 2]\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.4.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- numbers" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/randomNumbers.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomNumbers.ts#L24" + } + ], + "parameters": [ + { + "id": 1347, + "name": "n", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Number of generated integers, default: 1" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1348, + "name": "sum", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Sum of generated integers, default: 100" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1349, + "name": "noZero", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "number" + } + } + } + ] + } + } + }, + { + "id": 1350, + "name": "randomString", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 197, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L197" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1351, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 78, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomString.ts#L78" + }, + { + "fileName": "src/randomString.ts", + "line": 79, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomString.ts#L79" + }, + { + "fileName": "src/randomString.ts", + "line": 83, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomString.ts#L83" + } + ], + "signatures": [ + { + "id": 1352, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get a random string" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\n// 1. No parameters are passed, a 32-bit (possibly) string containing upper and lower case letters and numbers is generated by default\nrandomString()\n// PVSjz902EqYbmxaLtvDnggtnlvt5uFTZ\n\n// 2. Generate a 16-bit random string\nrandomString(16)\n// coTgZy0mqqMJ1sMM\n\n// 3. Same effect as #2 above\nrandomString({\n\tlength: 16\n})\n// ngCI5aPqJm84t90d\n\n// 4. Generate containing special characters (old way of passing values, not recommended)\nrandomString(true)\n// 0Uby@op3B-sK5]dHl4S|15As.OlHiNXd\n\n// 5. Same effect as #4 above (recommended)\nrandomString({\n\tcharTypes: ['uppercase', 'lowercase', 'number', 'special']\n})\n// m,2^vpkrE,F,DbcSFk0=vr&@DJ27j9XK\n\n// 6. Same effect as #4 above, Limit string length to 16 bits\nrandomString(16, true)\n// dXz[J_sYM^3d8fnA\n\n// 7. Generate a 16-bit random number\nrandomString({\n\tlength: 16,\n\tcharTypes: 'number'\n})\n// 7450026301030286\n\n// 8. Elimination of confusing characters: oOLl,9gq,Vv,Uu,I1\nrandomString({\n\tlength: 16,\n\tnoConfuse: true\n})\n// 8DEGna8ppC4mqyew\n\n// 9. The generated random string must contain at least 1 character of each type of character specified, e.g. to generate a 16-bit password that must contain upper and lower case letters, numbers, and special characters.\nrandomString({\n\tlength: 16,\n\tstrict: true\n})\n// PFYAPD5KFqOHIADL\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- random string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 78, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomString.ts#L78" + } + ], + "parameters": [ + { + "id": 1353, + "name": "len", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the length of the random string that needs to be obtained" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1354, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, randomString options" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reference", + "target": 130, + "name": "RandomStringOptions", + "package": "js-cool" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1355, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get a random string" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\n// 1. No parameters are passed, a 32-bit (possibly) string containing upper and lower case letters and numbers is generated by default\nrandomString()\n// PVSjz902EqYbmxaLtvDnggtnlvt5uFTZ\n\n// 2. Generate a 16-bit random string\nrandomString(16)\n// coTgZy0mqqMJ1sMM\n\n// 3. Same effect as #2 above\nrandomString({\n\tlength: 16\n})\n// ngCI5aPqJm84t90d\n\n// 4. Generate containing special characters (old way of passing values, not recommended)\nrandomString(true)\n// 0Uby@op3B-sK5]dHl4S|15As.OlHiNXd\n\n// 5. Same effect as #4 above (recommended)\nrandomString({\n\tcharTypes: ['uppercase', 'lowercase', 'number', 'special']\n})\n// m,2^vpkrE,F,DbcSFk0=vr&@DJ27j9XK\n\n// 6. Same effect as #4 above, Limit string length to 16 bits\nrandomString(16, true)\n// dXz[J_sYM^3d8fnA\n\n// 7. Generate a 16-bit random number\nrandomString({\n\tlength: 16,\n\tcharTypes: 'number'\n})\n// 7450026301030286\n\n// 8. Elimination of confusing characters: oOLl,9gq,Vv,Uu,I1\nrandomString({\n\tlength: 16,\n\tnoConfuse: true\n})\n// 8DEGna8ppC4mqyew\n\n// 9. The generated random string must contain at least 1 character of each type of character specified, e.g. to generate a 16-bit password that must contain upper and lower case letters, numbers, and special characters.\nrandomString({\n\tlength: 16,\n\tstrict: true\n})\n// PFYAPD5KFqOHIADL\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- random string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 79, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomString.ts#L79" + } + ], + "parameters": [ + { + "id": 1356, + "name": "len", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the length of the random string that needs to be obtained" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reference", + "target": 130, + "name": "RandomStringOptions", + "package": "js-cool" + } + ] + } + }, + { + "id": 1357, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, randomString options" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reference", + "target": 130, + "name": "RandomStringOptions", + "package": "js-cool" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1358, + "name": "shuffle", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 198, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L198" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1359, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/shuffle.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/shuffle.ts#L23" + }, + { + "fileName": "src/shuffle.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/shuffle.ts#L24" + }, + { + "fileName": "src/shuffle.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/shuffle.ts#L25" + } + ], + "signatures": [ + { + "id": 1360, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "shuffling algorithm, Reordering arrays or strings" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nconst str = 'abcde'\nconst arr = [1,2,3]\n\nshuffle(str)\n// cdbse\n\nshuffle(arr)\n// [3, 1, 2]\n\nshuffle(arr, 2)\n// [3, 2]\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.4.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/shuffle.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/shuffle.ts#L23" + } + ], + "parameters": [ + { + "id": 1361, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrays or strings" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1362, + "name": "size", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "new array or string length" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1363, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "shuffling algorithm, Reordering arrays or strings" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nconst str = 'abcde'\nconst arr = [1,2,3]\n\nshuffle(str)\n// cdbse\n\nshuffle(arr)\n// [3, 1, 2]\n\nshuffle(arr, 2)\n// [3, 2]\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.4.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/shuffle.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/shuffle.ts#L24" + } + ], + "typeParameters": [ + { + "id": 1364, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + }, + "default": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + } + ], + "parameters": [ + { + "id": 1365, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrays or strings" + } + ] + }, + "type": { + "type": "reference", + "target": 141, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1366, + "name": "size", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "new array or string length" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "target": 141, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ] + } + } + }, + { + "id": 1367, + "name": "fingerprint", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 199, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L199" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1368, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/fingerprint.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/fingerprint.ts#L10" + } + ], + "signatures": [ + { + "id": 1369, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Generating Browser Fingerprints" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.2.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- fingerprint" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/fingerprint.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/fingerprint.ts#L10" + } + ], + "parameters": [ + { + "id": 1370, + "name": "domain", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "key string, default: location.host" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ] + } + } + }, + { + "id": 1371, + "name": "getScrollPosition", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 200, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L200" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1372, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getScrollPosition.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getScrollPosition.ts#L8" + } + ], + "signatures": [ + { + "id": 1373, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get slide to top and bottom return 'top' 'bottom', recommend using limit flow" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "will be removed in the next major release." + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- position" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getScrollPosition.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getScrollPosition.ts#L8" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "literal", + "value": "bottom" + }, + { + "type": "literal", + "value": "top" + } + ] + } + } + ] + } + } + }, + { + "id": 1374, + "name": "getType", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 201, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L201" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1375, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getType.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getType.ts#L8" + } + ], + "signatures": [ + { + "id": 1376, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the target type" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "type" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getType.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getType.ts#L8" + } + ], + "typeParameters": [ + { + "id": 1377, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "parameters": [ + { + "id": 1378, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "target" + } + ] + }, + "type": { + "type": "reference", + "target": 806, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "string" + }, + { + "type": "literal", + "value": "number" + }, + { + "type": "literal", + "value": "bigint" + }, + { + "type": "literal", + "value": "boolean" + }, + { + "type": "literal", + "value": "symbol" + }, + { + "type": "literal", + "value": "undefined" + }, + { + "type": "literal", + "value": "object" + }, + { + "type": "literal", + "value": "function" + }, + { + "type": "literal", + "value": "window" + }, + { + "type": "literal", + "value": "error" + }, + { + "type": "literal", + "value": "promise" + }, + { + "type": "literal", + "value": "math" + }, + { + "type": "literal", + "value": "document" + }, + { + "type": "literal", + "value": "navigator" + }, + { + "type": "literal", + "value": "global" + }, + { + "type": "literal", + "value": "array" + }, + { + "type": "literal", + "value": "null" + }, + { + "type": "literal", + "value": "date" + }, + { + "type": "literal", + "value": "regexp" + } + ] + } + } + ] + } + } + }, + { + "id": 1379, + "name": "getFileType", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 202, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L202" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1380, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getFileType.ts#L19" + } + ], + "signatures": [ + { + "id": 1381, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine file type based on link suffix" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetFileType('/name.png')\n// { \"suffix\": \"png\", \"type\": \"image\" }\n\ngetFileType('/name.PDF')\n// { \"suffix\": \"pdf\", \"type\": \"pdf\" }\n\ngetFileType('/name.xyz')\n// { \"suffix\": \"xyz\", \"type\": \"other\" }\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.11.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getFileType.ts#L19" + } + ], + "parameters": [ + { + "id": 1382, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "file url" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1383, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 1384, + "name": "suffix", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 48, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getFileType.ts#L48" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1385, + "name": "type", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 49, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getFileType.ts#L49" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "audio" + }, + { + "type": "literal", + "value": "video" + }, + { + "type": "literal", + "value": "image" + }, + { + "type": "literal", + "value": "other" + }, + { + "type": "literal", + "value": "word" + }, + { + "type": "literal", + "value": "txt" + }, + { + "type": "literal", + "value": "excel" + }, + { + "type": "literal", + "value": "pdf" + }, + { + "type": "literal", + "value": "ppt" + }, + { + "type": "literal", + "value": "zip" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 1384, + 1385 + ] + } + ], + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 47, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getFileType.ts#L47" + } + ] + } + } + } + ] + } + } + }, + { + "id": 1386, + "name": "sorter", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 203, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L203" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1387, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/sorter.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/sorter.ts#L22" + } + ], + "signatures": [ + { + "id": 1388, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Sorter factory function" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst items = ['啊我', '波拉', 'abc', 0, 3, '10', ',11', 13, null, '阿吧', 'ABB', 'BDD', 'ACD', 'ä']\n\nitems.sort(\n\tsorter('zh-Hans-CN', {\n\t\tignorePunctuation: true,\n\t\tsensitivity: 'variant',\n\t\tnumeric: true\n\t})\n)\n// [ 0, 3, \"10\", \",11\", 13, \"ä\", \"ABB\", \"abc\", \"ACD\", \"BDD\", null, \"阿吧\", \"啊我\", \"波拉\" ]\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.14.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- compare function" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/sorter.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/sorter.ts#L22" + } + ], + "parameters": [ + { + "id": 1389, + "name": "locales", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A string with a BCP 47 language tag, or an array of such strings." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 1390, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An object adjusting the output format." + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Intl.CollatorOptions" + }, + "name": "CollatorOptions", + "package": "typescript", + "qualifiedName": "Intl.CollatorOptions" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1391, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/sorter.ts", + "line": 23, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/sorter.ts#L23" + } + ], + "signatures": [ + { + "id": 1392, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/sorter.ts", + "line": 23, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/sorter.ts#L23" + } + ], + "typeParameters": [ + { + "id": 1393, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1394, + "name": "P", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + } + ], + "parameters": [ + { + "id": 1395, + "name": "a", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 820, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1396, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 821, + "name": "P", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } + } + } + ] + } + } + }, + { + "id": 1397, + "name": "sortPinyin", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 204, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L204" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1398, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/sortPinyin.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/sortPinyin.ts#L22" + } + ], + "signatures": [ + { + "id": 1399, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Sort Chinese by Chinese phonetic alphabet" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst items = ['啊我', '波拉', 'abc', 0, 3, '10', ',11', 13, null, '阿吧', 'ABB', 'BDD', 'ACD', 'ä']\n\nitems.sort(sortPinyin)\n// [ \",11\", 0, \"10\", 13, 3, \"ä\", \"ABB\", \"abc\", \"ACD\", \"BDD\", null, \"阿吧\", \"啊我\", \"波拉\" ]\n\nitems.sort((a, b) => sortPinyin(a, b, { ignorePunctuation: true, numeric:true }))\n// [ 0, 3, \"10\", \",11\", 13, \"ä\", \"ABB\", \"abc\", \"ACD\", \"BDD\", null, \"阿吧\", \"啊我\", \"波拉\" ]\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.14.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- number" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/sortPinyin.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/sortPinyin.ts#L22" + } + ], + "typeParameters": [ + { + "id": 1400, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1401, + "name": "P", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + } + ], + "parameters": [ + { + "id": 1402, + "name": "a", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The first element for comparison." + } + ] + }, + "type": { + "type": "reference", + "target": 826, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1403, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The second element for comparison." + } + ] + }, + "type": { + "type": "reference", + "target": 827, + "name": "P", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1404, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An object adjusting the output format." + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Intl.CollatorOptions" + }, + "name": "CollatorOptions", + "package": "typescript", + "qualifiedName": "Intl.CollatorOptions" + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } + } + }, + { + "id": 1405, + "name": "parseUrlParam", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 205, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L205" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1406, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/parseUrlParam.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/parseUrlParam.ts#L19" + } + ], + "signatures": [ + { + "id": 1407, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parse url params" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nparseUrlParam('?key1=100&key2=true&key3=null&key4=undefined&key5=NaN&key6=10.888&key7=Infinity&key8=test')\n// \\{\"key1\":\"100\",\"key2\":\"true\",\"key3\":\"null\",\"key4\":\"undefined\",\"key5\":\"NaN\",\"key6\":\"10.888\",\"key7\":\"Infinity\",\"key8\":\"test\"\\}\n\nparseUrlParam('?key1=100&key2=true&key3=null&key4=undefined&key5=NaN&key6=10.888&key7=Infinity&key8=test', true)\n// \\{\"key1\":100,\"key2\":true,\"key3\":null,\"key5\":NaN,\"key6\":10.888,\"key7\":Infinity,\"key8\":\"test\"\\}\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/parseUrlParam.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/parseUrlParam.ts#L19" + } + ], + "parameters": [ + { + "id": 1408, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "url string (like: ?key1=value1&key2=value2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1409, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts a specific string to a corresponding value (Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1410, + "name": "spliceUrlParam", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 206, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L206" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1411, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/spliceUrlParam.ts", + "line": 29, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/spliceUrlParam.ts#L29" + } + ], + "signatures": [ + { + "id": 1412, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "splice url params" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nspliceUrlParam(\\{\"key1\":\"100\",\"key2\":true,\"key3\":null,\"key4\":undefined,\"key5\":\"测试\"\\})\n// ?key1=100&key2=true&key3=null&key4=undefined&key5=测试\n\nspliceUrlParam(\\{\"key1\":\"100\",\"key2\":true,\"key3\":null,\"key4\":undefined,\"key5\":\"测试\"\\}, \\{ encode: true \\})\n// ?key1=100&key2=true&key3=null&key4=undefined&key5=%E6%B5%8B%E8%AF%95\n\nspliceUrlParam(\\{\"key1\":\"100\",\"key2\":true,\"key3\":null,\"key4\":undefined\\}, true)\n// ?key1=100&key2=true&key3=&key4=\n\nspliceUrlParam(\\{\"key1\":\"100\",\"key2\":true,\"key3\":null,\"key4\":undefined\\}, \\{ covert: true, withQuestionsMark: false \\})\n// key1=100&key2=true&key3=&key4=\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.3.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/spliceUrlParam.ts", + "line": 29, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/spliceUrlParam.ts#L29" + } + ], + "typeParameters": [ + { + "id": 1413, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 1414, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "json object" + } + ] + }, + "type": { + "type": "reference", + "target": 595, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1415, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Convert a null value type (null/undefined/) to an empty string, default: false" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reference", + "target": 598, + "name": "SpliceUrlParamOptions", + "package": "js-cool" + } + ] + }, + "defaultValue": "false" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1416, + "name": "safeParse", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 207, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L207" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1417, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/safeParse.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/safeParse.ts#L16" + } + ], + "signatures": [ + { + "id": 1418, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Secure parsing of JSON strings" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nsafeParse('100')\n// 100\n\nsafeParse('{\"a\":\"undefined\",\"b\":\"NaN\",\"c\":\"Infinity\",\"d\":\"9007199254740993\"}')\n// { b: NaN, c: Infinity, d: 9007199254740993n }\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- JSON Object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/safeParse.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/safeParse.ts#L16" + } + ], + "parameters": [ + { + "id": 1419, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "JSON string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1420, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to convert data, default: true" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "true" + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + } + }, + { + "id": 1421, + "name": "safeStringify", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 208, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L208" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1422, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/safeStringify.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/safeStringify.ts#L25" + } + ], + "signatures": [ + { + "id": 1423, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Secure stringify of JSON Object" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nsafeStringify(100)\n// \"100\"\n\nsafeStringify(undefined)\n// \"undefined\"\n\nsafeStringify(NaN)\n// \"NaN\"\n\nsafeStringify(Infinity)\n// \"Infinity\"\n\nsafeStringify({ a: undefined, b: NaN, c: Infinity, d: BigInt(Number.MAX_SAFE_INTEGER) + 2n })\n// {\"a\":\"undefined\",\"b\":\"NaN\",\"c\":\"Infinity\",\"d\":\"9007199254740993\"}\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- JSON String" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/safeStringify.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/safeStringify.ts#L25" + } + ], + "parameters": [ + { + "id": 1424, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "JSON Object" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 1425, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to convert data, default: true" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "true" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1426, + "name": "getUrlParam", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 209, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L209" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1427, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParam.ts#L20" + }, + { + "fileName": "src/getUrlParam.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParam.ts#L21" + }, + { + "fileName": "src/getUrlParam.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParam.ts#L22" + } + ], + "signatures": [ + { + "id": 1428, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get a single URL parameter (from the \"location.search\", before \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetUrlParam('key1')\n// key1 => xxx\n\ngetUrlParam('key1', 'https://test.com?key1=100#/home?key1=200')\n// key1 => 100\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getUrlParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParam.ts#L20" + } + ], + "parameters": [ + { + "id": 1429, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "key name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + }, + { + "id": 1430, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get a single URL parameter (from the \"location.search\", before \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetUrlParam('key1')\n// key1 => xxx\n\ngetUrlParam('key1', 'https://test.com?key1=100#/home?key1=200')\n// key1 => 100\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getUrlParam.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParam.ts#L21" + } + ], + "parameters": [ + { + "id": 1431, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "key name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1432, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ] + } + } + }, + { + "id": 1433, + "name": "getUrlParams", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 210, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L210" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1434, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParams.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParams.ts#L23" + }, + { + "fileName": "src/getUrlParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParams.ts#L24" + }, + { + "fileName": "src/getUrlParams.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParams.ts#L25" + }, + { + "fileName": "src/getUrlParams.ts", + "line": 26, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParams.ts#L26" + } + ], + "signatures": [ + { + "id": 1435, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get all URL parameters (from the \"location.search\", before \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetUrlParams('https://test.com?key1=100#/home?key1=200')\n// \\{\"key1\":\"100\"\\}\n\ngetUrlParams('https://test.com?key1=100#/home?key1=200', true)\n// \\{\"key1\":100\\}\n\ngetUrlParams(true)\n// \\{\"key1\":100\\}\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getUrlParams.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParams.ts#L23" + } + ], + "parameters": [ + { + "id": 1436, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 1437, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get all URL parameters (from the \"location.search\", before \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetUrlParams('https://test.com?key1=100#/home?key1=200')\n// \\{\"key1\":\"100\"\\}\n\ngetUrlParams('https://test.com?key1=100#/home?key1=200', true)\n// \\{\"key1\":100\\}\n\ngetUrlParams(true)\n// \\{\"key1\":100\\}\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getUrlParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParams.ts#L24" + } + ], + "parameters": [ + { + "id": 1438, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 1439, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get all URL parameters (from the \"location.search\", before \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetUrlParams('https://test.com?key1=100#/home?key1=200')\n// \\{\"key1\":\"100\"\\}\n\ngetUrlParams('https://test.com?key1=100#/home?key1=200', true)\n// \\{\"key1\":100\\}\n\ngetUrlParams(true)\n// \\{\"key1\":100\\}\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getUrlParams.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/getUrlParams.ts#L25" + } + ], + "parameters": [ + { + "id": 1440, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1441, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts a specific string to a corresponding value (Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1442, + "name": "intersect", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 211, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L211" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1443, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/intersect.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/intersect.ts#L14" + } + ], + "signatures": [ + { + "id": 1444, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Find the intersection of multiple arrays" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nintersect([1, 2], [2, 3, 4], [2, 8], [2, '33']) // [2]\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "2.2.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- new array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/intersect.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/intersect.ts#L14" + } + ], + "typeParameters": [ + { + "id": 1445, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1446, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arguments" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "reference", + "target": 894, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 894, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 1447, + "name": "isDigitals", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 212, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L212" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1448, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isDigitals.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isDigitals.ts#L9" + } + ], + "signatures": [ + { + "id": 1449, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether or not it is a string consisting of numbers" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "will be removed in the next major release." + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isDigitals.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isDigitals.ts#L9" + } + ], + "parameters": [ + { + "id": 1450, + "name": "str", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be tested" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1451, + "name": "isExitsFunction", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 213, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L213" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1452, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isExitsFunction.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isExitsFunction.ts#L15" + } + ], + "signatures": [ + { + "id": 1453, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The presence or absence of the specified function" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisExitsFunction('test') // false\nisExitsFunction('console.log') // true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isExitsFunction.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isExitsFunction.ts#L15" + } + ], + "parameters": [ + { + "id": 1454, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "incoming function name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1455, + "name": "isExitsVariable", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 214, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L214" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1456, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isExitsVariable.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isExitsVariable.ts#L13" + } + ], + "signatures": [ + { + "id": 1457, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The presence or absence of the specified variable" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisExitsVariable('test') // false\nisExitsVariable('window') // true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isExitsVariable.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isExitsVariable.ts#L13" + } + ], + "parameters": [ + { + "id": 1458, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "variable name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1459, + "name": "isEqual", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 215, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L215" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1460, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isEqual.ts", + "line": 123, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isEqual.ts#L123" + } + ], + "signatures": [ + { + "id": 1461, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if 2 objects are equal" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisEqual({ a: 22, b: {} }, { b: {}, a: 22 })\n// true\n\nisEqual([1, 2], [2, 1])\n// false\n\nisEqual(NaN, NaN)\n// true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.12.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- a equals to b" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isEqual.ts", + "line": 123, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isEqual.ts#L123" + } + ], + "typeParameters": [ + { + "id": 1462, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 1463, + "name": "P", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 1464, + "name": "a", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "source" + } + ] + }, + "type": { + "type": "reference", + "target": 163, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1465, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "compare" + } + ] + }, + "type": { + "type": "reference", + "target": 164, + "name": "P", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1466, + "name": "isWindow", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 216, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L216" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1467, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isWindow.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isWindow.ts#L15" + } + ], + "signatures": [ + { + "id": 1468, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if target is an window object" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisWindow({}) // false\nisWindow(window) // true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is Window" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isWindow.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isWindow.ts#L15" + } + ], + "parameters": [ + { + "id": 1469, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Window" + }, + "name": "Window", + "package": "typescript" + } + } + } + ] + } + } + }, + { + "id": 1470, + "name": "isObject", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 217, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L217" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1471, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isObject.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isObject.ts#L14" + } + ], + "signatures": [ + { + "id": 1472, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if target is an object" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisObject({}) // true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is Object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isObject.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isObject.ts#L14" + } + ], + "parameters": [ + { + "id": 1473, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Object" + }, + "name": "Object", + "package": "typescript" + } + } + } + ] + } + } + }, + { + "id": 1474, + "name": "isDate", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 218, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L218" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1475, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isDate.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isDate.ts#L17" + } + ], + "signatures": [ + { + "id": 1476, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if target is Date" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst now = new Date()\n\nisDate(now)\n// true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.15.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is Date" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isDate.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isDate.ts#L17" + } + ], + "parameters": [ + { + "id": 1477, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Date" + }, + "name": "Date", + "package": "typescript" + } + } + } + ] + } + } + }, + { + "id": 1478, + "name": "isRegExp", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 219, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L219" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1479, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isRegExp.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isRegExp.ts#L14" + } + ], + "signatures": [ + { + "id": 1480, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if target is RegExp" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisRegExp(/\\d/) // true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.15.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is RegExp" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isRegExp.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isRegExp.ts#L14" + } + ], + "parameters": [ + { + "id": 1481, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + } + } + } + ] + } + } + }, + { + "id": 1482, + "name": "isArray", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 220, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L220" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1483, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isArray.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isArray.ts#L12" + } + ], + "signatures": [ + { + "id": 1484, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if it is an array" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisArray([]) // true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is Array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isArray.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isArray.ts#L12" + } + ], + "parameters": [ + { + "id": 1485, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + } + ] + } + } + }, + { + "id": 1486, + "name": "isIterable", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 221, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L221" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1487, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isIterable.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isIterable.ts#L12" + } + ], + "signatures": [ + { + "id": 1488, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if it is iterable" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisIterable([]) // true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.7.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is Array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isIterable.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isIterable.ts#L12" + } + ], + "typeParameters": [ + { + "id": 1489, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "parameters": [ + { + "id": 1490, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 538, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Iterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 538, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "Iterable", + "package": "typescript" + } + ] + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Iterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 538, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "Iterable", + "package": "typescript" + } + } + } + ] + } + } + }, + { + "id": 1491, + "name": "isPlainObject", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 222, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L222" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1492, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 28, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isPlainObject.ts#L28" + } + ], + "signatures": [ + { + "id": 1493, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if target is an plain object" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisPlainObject({}) // true\nisPlainObject(window) // false\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is plain Object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 28, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isPlainObject.ts#L28" + } + ], + "parameters": [ + { + "id": 1494, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "reference", + "target": 177, + "name": "PlainObject", + "package": "js-cool" + } + } + } + ] + } + } + }, + { + "id": 1495, + "name": "isDarkMode", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 223, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L223" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1496, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isDarkMode.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isDarkMode.ts#L11" + } + ], + "signatures": [ + { + "id": 1497, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if dark color mode" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisDarkMode() // true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.5.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isDarkMode.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isDarkMode.ts#L11" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1498, + "name": "inBrowser", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 224, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L224" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1499, + "name": "inNodeJs", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 225, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L225" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1500, + "name": "isNumberBrowser", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 226, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L226" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1501, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isNumberBrowser.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isNumberBrowser.ts#L18" + } + ], + "signatures": [ + { + "id": 1502, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Detect if the client is a 360 browser" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36 QIHU 360EE'\n// true\n\n// 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36'\n// true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.22.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isNumberBrowser.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isNumberBrowser.ts#L18" + } + ], + "parameters": [ + { + "id": 1503, + "name": "userAgent", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua, allowed to be undefined, default takes navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1504, + "name": "minus", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 227, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L227" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1505, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/minus.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/minus.ts#L15" + } + ], + "signatures": [ + { + "id": 1506, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Find the set of differences of multiple arrays that belong to A but not to B/C/D... of the elements of" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nminus([1, 2], [2, '33'], [2, 4]) // [1]\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "2.2.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- new array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/minus.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/minus.ts#L15" + } + ], + "typeParameters": [ + { + "id": 1507, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1508, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arguments" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "reference", + "target": 902, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 902, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 1509, + "name": "nextIndex", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 228, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L228" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1510, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/nextIndex.ts", + "line": 32, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/nextIndex.ts#L32" + } + ], + "signatures": [ + { + "id": 1511, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Return the next zIndex value" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nnextIndex()\n// 1\n\nnextIndex(1000)\n// 1001\n\nnextIndex(10, 100)\n// 100\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- number" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/nextIndex.ts", + "line": 32, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/nextIndex.ts#L32" + } + ], + "parameters": [ + { + "id": 1512, + "name": "min", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, minimum value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "5000" + }, + { + "id": 1513, + "name": "max", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, maximum value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "10000" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } + } + }, + { + "id": 1514, + "name": "nextVersion", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 229, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L229" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1515, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 26, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/nextVersion.ts#L26" + } + ], + "signatures": [ + { + "id": 1516, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "return the next version, Only version types with no more than 3 digits are supported. (Follow the npm version rules)" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nnextVersion('1.2.33') // 1.2.34\n\nnextVersion('1.2.33', 'major') // 2.0.0\n\nnextVersion('1.2.33', 'premajor', 'alpha') // 2.0.0-alpha.1\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.10.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- new version" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 26, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/nextVersion.ts#L26" + } + ], + "parameters": [ + { + "id": 1517, + "name": "version", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "version(like: 1.0.0)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1518, + "name": "type", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, version type" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "major" + }, + { + "type": "literal", + "value": "minor" + }, + { + "type": "literal", + "value": "patch" + }, + { + "type": "literal", + "value": "premajor" + }, + { + "type": "literal", + "value": "preminor" + }, + { + "type": "literal", + "value": "prepatch" + }, + { + "type": "literal", + "value": "prerelease" + } + ] + } + }, + { + "id": 1519, + "name": "preid", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, prerelease id" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "''" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1520, + "name": "punctualTimer", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 230, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L230" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1521, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L22" + }, + { + "fileName": "src/punctualTimer.ts", + "line": 27, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L27" + }, + { + "fileName": "src/punctualTimer.ts", + "line": 32, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L32" + } + ], + "signatures": [ + { + "id": 1522, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "punctual setInterval" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst printDate = () => console.log(new Date())\nconst timer = punctualTimer(printDate, 1000)\nconsole.log(timer.count) // 10\ntimer.clear() // clear punctualTimer or use clearTimeout(timer.timer)\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.18.0" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L22" + } + ], + "typeParameters": [ + { + "id": 1523, + "name": "TArgs", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "parameters": [ + { + "id": 1524, + "name": "handler", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function to be executed after the timer expires." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 1525, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 23, + "character": 10, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L23" + } + ], + "signatures": [ + { + "id": 1526, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 23, + "character": 10, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L23" + } + ], + "parameters": [ + { + "id": 1527, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1528, + "name": "delay", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The time, in milliseconds that the timer should wait before the specified function or code is executed. If this parameter is omitted, a value of 0 is used, meaning execute \"immediately\", or more accurately, the next event cycle." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1529, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Additional arguments which are passed through to the function specified by handler." + } + ] + }, + "type": { + "type": "reference", + "target": 732, + "name": "TArgs", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 747, + "name": "PunctualTimerReturns", + "package": "js-cool" + } + }, + { + "id": 1530, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "punctual setInterval" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst printDate = () => console.log(new Date())\nconst timer = punctualTimer(printDate, 1000)\nconsole.log(timer.count) // 10\ntimer.clear() // clear punctualTimer or use clearTimeout(timer.timer)\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.18.0" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 27, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L27" + } + ], + "typeParameters": [ + { + "id": 1531, + "name": "TArgs", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "parameters": [ + { + "id": 1532, + "name": "handler", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function to be executed after the timer expires." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 1533, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 28, + "character": 10, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L28" + } + ], + "signatures": [ + { + "id": 1534, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 28, + "character": 10, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L28" + } + ], + "parameters": [ + { + "id": 1535, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 740, + "name": "TArgs", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1536, + "name": "delay", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The time, in milliseconds that the timer should wait before the specified function or code is executed. If this parameter is omitted, a value of 0 is used, meaning execute \"immediately\", or more accurately, the next event cycle." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1537, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Additional arguments which are passed through to the function specified by handler." + } + ] + }, + "type": { + "type": "reference", + "target": 740, + "name": "TArgs", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 747, + "name": "PunctualTimerReturns", + "package": "js-cool" + } + } + ] + } + } + }, + { + "id": 1538, + "name": "promiseFactory", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 231, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L231" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1539, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/promiseFactory.ts", + "line": 32, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/promiseFactory.ts#L32" + } + ], + "signatures": [ + { + "id": 1540, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Convert an object to a promise like api" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nimport { promiseFactory, waiting } from 'js-cool'\n\nfunction promise() {\n const stats = {\n value: 100\n }\n\n const resolver = () =>\n new Promise(resolve =>\n waiting(2000).then(() => {\n stats.value = 200\n resolve(stats)\n })\n )\n\n return promiseFactory(stats, resolver)\n}\n\nconst res = promise() // res => 100\nconst res = await promise() // res => 200\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.10.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/promiseFactory.ts", + "line": 32, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/promiseFactory.ts#L32" + } + ], + "typeParameters": [ + { + "id": 1541, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "parameters": [ + { + "id": 1542, + "name": "original", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "original object" + } + ] + }, + "type": { + "type": "reference", + "target": 755, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1543, + "name": "resolver", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "resolver function" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 1544, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/promiseFactory.ts", + "line": 34, + "character": 11, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/promiseFactory.ts#L34" + } + ], + "signatures": [ + { + "id": 1545, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/promiseFactory.ts", + "line": 34, + "character": 11, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/promiseFactory.ts#L34" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "reference", + "target": 755, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "PromiseLike" + }, + "typeArguments": [ + { + "type": "reference", + "target": 755, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "PromiseLike", + "package": "typescript" + } + ] + } + } + ] + } + } + }, + { + "id": 1546, + "name": "waiting", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 232, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L232" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1547, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/waiting.ts", + "line": 8, + "character": 16, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/waiting.ts#L8" + } + ], + "signatures": [ + { + "id": 1548, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "waiting for a while" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.5.0" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/waiting.ts", + "line": 8, + "character": 16, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/waiting.ts#L8" + } + ], + "parameters": [ + { + "id": 1549, + "name": "milliseconds", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "waiting time (milliseconds)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1550, + "name": "throwOnTimeout", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "throw on timeout" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1551, + "name": "awaitTo", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 233, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L233" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1552, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "line": 20, + "character": 17 + }, + { + "fileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "line": 22, + "character": 17 + }, + { + "fileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "line": 24, + "character": 17 + } + ], + "signatures": [ + { + "id": 1553, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Async await wrapper for easy error handling" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\r\nconst bar = () => new Promise((resolve, reject) => {})\r\nconst foo = () => new Promise((resolve, reject) => {})\r\n;(async () => {\r\n\t const [err, data] = await awaitToDone(bar())\r\n\t const [err1, data1] = await awaitToDone(bar(), foo())\r\n\t const [err2, data2] = await awaitToDone([bar(), foo()])\r\n})()\r\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.0" + } + ] + }, + { + "tag": "@author", + "content": [ + { + "kind": "text", + "text": "saqqdy" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "line": 20, + "character": 17 + } + ], + "typeParameters": [ + { + "id": 1554, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 1555, + "name": "E", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 1556, + "name": "promise", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Promise" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 29, + "name": "T", + "package": "await-to-done", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "tuple", + "elements": [ + { + "type": "reference", + "target": 30, + "name": "E", + "package": "await-to-done", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + { + "type": "tuple", + "elements": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "target": 29, + "name": "T", + "package": "await-to-done", + "refersToTypeParameter": true + } + ] + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + }, + { + "id": 1557, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Async await wrapper for easy error handling" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\r\nconst bar = () => new Promise((resolve, reject) => {})\r\nconst foo = () => new Promise((resolve, reject) => {})\r\n;(async () => {\r\n\t const [err, data] = await awaitToDone(bar())\r\n\t const [err1, data1] = await awaitToDone(bar(), foo())\r\n\t const [err2, data2] = await awaitToDone([bar(), foo()])\r\n})()\r\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.0" + } + ] + }, + { + "tag": "@author", + "content": [ + { + "kind": "text", + "text": "saqqdy" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "line": 22, + "character": 17 + } + ], + "typeParameters": [ + { + "id": 1558, + "name": "P", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "tuple" + }, + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + } + ] + } + }, + { + "id": 1559, + "name": "E", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 1560, + "name": "promise", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Promise" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "PromiseAll" + }, + "typeArguments": [ + { + "type": "reference", + "target": 33, + "name": "P", + "package": "await-to-done", + "refersToTypeParameter": true + } + ], + "name": "PromiseAll", + "package": "await-to-done" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "tuple", + "elements": [ + { + "type": "reference", + "target": 34, + "name": "E", + "package": "await-to-done", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + { + "type": "tuple", + "elements": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "target": 33, + "name": "P", + "package": "await-to-done", + "refersToTypeParameter": true + } + ] + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + }, + { + "id": 1561, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Async await wrapper for easy error handling" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\r\nconst bar = () => new Promise((resolve, reject) => {})\r\nconst foo = () => new Promise((resolve, reject) => {})\r\n;(async () => {\r\n\t const [err, data] = await awaitToDone(bar())\r\n\t const [err1, data1] = await awaitToDone(bar(), foo())\r\n\t const [err2, data2] = await awaitToDone([bar(), foo()])\r\n})()\r\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.0" + } + ] + }, + { + "tag": "@author", + "content": [ + { + "kind": "text", + "text": "saqqdy" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "line": 24, + "character": 17 + } + ], + "typeParameters": [ + { + "id": 1562, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 1563, + "name": "P", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "tuple" + }, + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + } + ] + } + }, + { + "id": 1564, + "name": "E", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 1565, + "name": "promise", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Promise" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 37, + "name": "T", + "package": "await-to-done", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + }, + { + "id": 1566, + "name": "promises", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Promise rest params" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "PromiseAll" + }, + "typeArguments": [ + { + "type": "reference", + "target": 38, + "name": "P", + "package": "await-to-done", + "refersToTypeParameter": true + } + ], + "name": "PromiseAll", + "package": "await-to-done" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "tuple", + "elements": [ + { + "type": "reference", + "target": 39, + "name": "E", + "package": "await-to-done", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + { + "type": "tuple", + "elements": [ + { + "type": "literal", + "value": null + }, + { + "type": "tuple", + "elements": [ + { + "type": "reference", + "target": 37, + "name": "T", + "package": "await-to-done", + "refersToTypeParameter": true + }, + { + "type": "rest", + "elementType": { + "type": "reference", + "target": 38, + "name": "P", + "package": "await-to-done", + "refersToTypeParameter": true + } + } + ] + } + ] + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1567, + "name": "arrayBufferToBase64", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 234, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L234" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1568, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/arrayBufferToBase64.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/arrayBufferToBase64.ts#L17" + } + ], + "signatures": [ + { + "id": 1569, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrayBuffer to base64" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\narrayBufferToBase64(arrayBuffer, 'image/png')\n// data:image/png;base64,xxxxxxxxxxxx\n\narrayBufferToBase64(arrayBuffer)\n// xxxxxxxxxxxx\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- base64" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/arrayBufferToBase64.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/arrayBufferToBase64.ts#L17" + } + ], + "parameters": [ + { + "id": 1570, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrayBuffer" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + } + }, + { + "id": 1571, + "name": "mime", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "image mime, eq: image/png" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1572, + "name": "arrayBufferToBlob", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 235, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L235" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1573, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/arrayBufferToBlob.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/arrayBufferToBlob.ts#L9" + } + ], + "signatures": [ + { + "id": 1574, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrayBuffer to blob" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- blob" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/arrayBufferToBlob.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/arrayBufferToBlob.ts#L9" + } + ], + "parameters": [ + { + "id": 1575, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrayBuffer" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + } + }, + { + "id": 1576, + "name": "mime", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "image mime, default: image/png" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "'image/png'" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1577, + "name": "base64ToArrayBuffer", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 236, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L236" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1578, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/base64ToArrayBuffer.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/base64ToArrayBuffer.ts#L10" + } + ], + "signatures": [ + { + "id": 1579, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 to arrayBuffer" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- arrayBuffer" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/base64ToArrayBuffer.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/base64ToArrayBuffer.ts#L10" + } + ], + "parameters": [ + { + "id": 1580, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Uint8Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + } + ], + "name": "Uint8Array", + "package": "typescript" + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/@types+node@22.10.7/node_modules/@types/node/buffer.buffer.d.ts", + "qualifiedName": "__global.Buffer" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + } + ], + "name": "Buffer", + "package": "@types/node", + "qualifiedName": "__global.Buffer" + } + ] + } + } + ] + } + } + }, + { + "id": 1581, + "name": "base64ToBlob", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 237, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L237" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1582, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/base64ToBlob.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/base64ToBlob.ts#L10" + } + ], + "signatures": [ + { + "id": 1583, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 to blob" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- blob" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/base64ToBlob.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/base64ToBlob.ts#L10" + } + ], + "parameters": [ + { + "id": 1584, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1585, + "name": "base64ToFile", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 238, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L238" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1586, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/base64ToFile.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/base64ToFile.ts#L11" + } + ], + "signatures": [ + { + "id": 1587, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 to file" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the BASE64 encoding" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/base64ToFile.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/base64ToFile.ts#L11" + } + ], + "parameters": [ + { + "id": 1588, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1589, + "name": "fileName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "file name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "File" + }, + "name": "File", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1590, + "name": "blobToArrayBuffer", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 239, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L239" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1591, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/blobToArrayBuffer.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/blobToArrayBuffer.ts#L8" + } + ], + "signatures": [ + { + "id": 1592, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob to arrayBuffer" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- arrayBuffer" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/blobToArrayBuffer.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/blobToArrayBuffer.ts#L8" + } + ], + "parameters": [ + { + "id": 1593, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1594, + "name": "blobToBase64", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 240, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L240" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1595, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/blobToBase64.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/blobToBase64.ts#L8" + } + ], + "signatures": [ + { + "id": 1596, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob to base64" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- base64 string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/blobToBase64.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/blobToBase64.ts#L8" + } + ], + "parameters": [ + { + "id": 1597, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1598, + "name": "blobToUrl", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 241, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L241" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1599, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/blobToUrl.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/blobToUrl.ts#L8" + } + ], + "signatures": [ + { + "id": 1600, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob to blobUrl" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- blobUrl" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/blobToUrl.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/blobToUrl.ts#L8" + } + ], + "parameters": [ + { + "id": 1601, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1602, + "name": "fileToBase64", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 242, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L242" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1603, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/fileToBase64.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/fileToBase64.ts#L10" + } + ], + "signatures": [ + { + "id": 1604, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "file to base64" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- base64 string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/fileToBase64.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/fileToBase64.ts#L10" + } + ], + "parameters": [ + { + "id": 1605, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "file data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "File" + }, + "name": "File", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1606, + "name": "svgToBlob", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 243, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L243" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1607, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/svgToBlob.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/svgToBlob.ts#L8" + } + ], + "signatures": [ + { + "id": 1608, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "svg to blob" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- blob" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/svgToBlob.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/svgToBlob.ts#L8" + } + ], + "parameters": [ + { + "id": 1609, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "svg string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1610, + "name": "urlToBlob", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 244, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L244" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1611, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/urlToBlob.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/urlToBlob.ts#L8" + } + ], + "signatures": [ + { + "id": 1612, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "url to blob" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- blob" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/urlToBlob.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/urlToBlob.ts#L8" + } + ], + "parameters": [ + { + "id": 1613, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "url" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1614, + "name": "openUrl", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 245, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L245" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1615, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/openUrl.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/openUrl.ts#L7" + } + ], + "signatures": [ + { + "id": 1616, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Open link in new tab (file jump download if browser can't parse)" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.6" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/openUrl.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/openUrl.ts#L7" + } + ], + "parameters": [ + { + "id": 1617, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "link" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1618, + "name": "copy", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 246, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L246" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1619, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/copy.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/copy.ts#L10" + } + ], + "signatures": [ + { + "id": 1620, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "copy to clipboard" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is Object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/copy.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/copy.ts#L10" + } + ], + "parameters": [ + { + "id": 1621, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "boolean" + } + ] + } + } + ] + } + } + }, + { + "id": 1622, + "name": "pattern", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 247, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L247" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1623, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 1624, + "name": "any", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 9, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L9" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1625, + "name": "number", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 10, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L10" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1626, + "name": "string", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 11, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L11" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1627, + "name": "postcode", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 12, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L12" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1628, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 13, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L13" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1629, + "name": "username", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 14, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L14" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1630, + "name": "float", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 15, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L15" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1631, + "name": "email", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 16, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L16" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1632, + "name": "mobile", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 19, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L19" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1633, + "name": "chinese", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 20, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L20" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1634, + "name": "tel", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 21, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L21" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1635, + "name": "qq", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 22, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L22" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1636, + "name": "pass", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 23, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L23" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1637, + "name": "json", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 24, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L24" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1638, + "name": "arrjson", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 25, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L25" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1639, + "name": "array", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 26, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L26" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1640, + "name": "isjson", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 27, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L27" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1641, + "name": "textarea", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 28, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L28" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1642, + "name": "mac", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 30, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L30" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1643, + "name": "ip4", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 31, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L31" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1644, + "name": "ip4_pri", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 32, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L32" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 1624, + 1625, + 1626, + 1627, + 1628, + 1629, + 1630, + 1631, + 1632, + 1633, + 1634, + 1635, + 1636, + 1637, + 1638, + 1639, + 1640, + 1641, + 1642, + 1643, + 1644 + ] + } + ], + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 8, + "character": 16, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L8" + } + ] + } + } + }, + { + "id": 1645, + "name": "removeEvent", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 248, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L248" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1646, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/removeEvent.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/removeEvent.ts#L11" + } + ], + "signatures": [ + { + "id": 1647, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "removeEvent removes the event delegate created by addEvent" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/removeEvent.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/removeEvent.ts#L11" + } + ], + "parameters": [ + { + "id": 1648, + "name": "element", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "js dom object" + } + ] + }, + "type": { + "type": "reference", + "target": 986, + "name": "AnyObject", + "package": "js-cool" + } + }, + { + "id": 1649, + "name": "type", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The type of the event. No need to add on" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1650, + "name": "handler", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Callback method." + } + ] + }, + "type": { + "type": "reference", + "target": 987, + "name": "AnyFunction", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1651, + "name": "searchObject", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 249, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L249" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1652, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/searchObject.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/searchObject.ts#L17" + } + ], + "signatures": [ + { + "id": 1653, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "tree object depth lookup" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the queried array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/searchObject.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/searchObject.ts#L17" + } + ], + "parameters": [ + { + "id": 1654, + "name": "tree", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "tree object" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "object" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + }, + { + "id": 1655, + "name": "expression", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "required Query method" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 1656, + "name": "keySet", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional Default subclass name, query name" + } + ] + }, + "type": { + "type": "reference", + "target": 842, + "name": "SearchKeySet", + "package": "js-cool" + } + }, + { + "id": 1657, + "name": "number", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional Number of lookups, if not passed, query all" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "0" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ] + } + } + }, + { + "id": 1658, + "name": "setProperty", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 250, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L250" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1659, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/setProperty.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/setProperty.ts#L24" + } + ], + "signatures": [ + { + "id": 1660, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Set array, object property values based on path strings" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst target = {\n a: 1,\n b: [{\n c: 2\n }]\n}\n\nsetProperty(target, 'a', 2)\n\nsetProperty(target, 'b[0].c', 3)\n\nsetProperty(target, () => 'a', 100)\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "2.7.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the corresponding value" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/setProperty.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/setProperty.ts#L24" + } + ], + "parameters": [ + { + "id": 1661, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "target array, object" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 1662, + "name": "prop", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "set target, support function, 'a' | 'a[1].c'" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reflection", + "declaration": { + "id": 1663, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/setProperty.ts", + "line": 24, + "character": 49, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/setProperty.ts#L24" + } + ], + "signatures": [ + { + "id": 1664, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/setProperty.ts", + "line": 24, + "character": 51, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/setProperty.ts#L24" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 1665, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + } + }, + { + "id": 1666, + "name": "stopBubble", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 251, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L251" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1667, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/stopBubble.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/stopBubble.ts#L8" + } + ], + "signatures": [ + { + "id": 1668, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Block bubbling" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/stopBubble.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/stopBubble.ts#L8" + } + ], + "parameters": [ + { + "id": 1669, + "name": "e", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "dom's event object" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Event" + }, + "name": "Event", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1670, + "name": "stopDefault", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 252, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L252" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1671, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/stopDefault.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/stopDefault.ts#L8" + } + ], + "signatures": [ + { + "id": 1672, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Block default events" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/stopDefault.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/stopDefault.ts#L8" + } + ], + "parameters": [ + { + "id": 1673, + "name": "e", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "dom's event object" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Event" + }, + "name": "Event", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1674, + "name": "toThousands", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 253, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L253" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1675, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/toThousands.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/toThousands.ts#L19" + } + ], + "signatures": [ + { + "id": 1676, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Digital thousandths division" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ntoThousands(10000000222)\n// 10,000,000,222\n\ntoThousands(100.2232323)\n// 100.2232323\n\ntoThousands(null)\n// ''\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "3.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the split string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/toThousands.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/toThousands.ts#L19" + } + ], + "parameters": [ + { + "id": 1677, + "name": "num", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "input number" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1678, + "name": "trim", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 254, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L254" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1679, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/trim.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/trim.ts#L9" + } + ], + "signatures": [ + { + "id": 1680, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Remove leading and trailing spaces from strings" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "will be removed in the next major release." + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the new string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/trim.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/trim.ts#L9" + } + ], + "parameters": [ + { + "id": 1681, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1682, + "name": "union", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 255, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L255" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1683, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/union.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/union.ts#L19" + } + ], + "signatures": [ + { + "id": 1684, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Find the concatenation of multiple arrays" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nunion([1, 2], [2, '33'])\n// [1, 2, '33']\n\nunion([1, 2], [2, '33'], [1, 11, 2, '2'])\n// [ 1, 2, '33', 11, '2' ]\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "2.2.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- new array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/union.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/union.ts#L19" + } + ], + "typeParameters": [ + { + "id": 1685, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1686, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arguments" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "reference", + "target": 898, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 898, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 1687, + "name": "unique", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 256, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L256" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1688, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/unique.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/unique.ts#L14" + } + ], + "signatures": [ + { + "id": 1689, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Array de-duplication" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nunique([1, 2, 2, '33']) // [1, 2, '33']\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "2.2.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- new array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/unique.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/unique.ts#L14" + } + ], + "typeParameters": [ + { + "id": 1690, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1691, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "array data" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 914, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 914, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 1692, + "name": "upperFirst", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 257, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L257" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1693, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/upperFirst.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/upperFirst.ts#L12" + } + ], + "signatures": [ + { + "id": 1694, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "First letter capitalized" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nupperFirst('saqqdy') // Saqqdy\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the converted string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/upperFirst.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/upperFirst.ts#L12" + } + ], + "parameters": [ + { + "id": 1695, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be converted" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1696, + "name": "uuid", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 258, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L258" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1697, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/uuid.ts", + "line": 11, + "character": 13, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/uuid.ts#L11" + } + ], + "signatures": [ + { + "id": 1698, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Browser-side generation of uuid, using v4 method" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nuuid() // '4222fcfe-5721-4632-bede-6043885be57d'\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.9" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- uuid" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/uuid.ts", + "line": 11, + "character": 13, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/uuid.ts#L11" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1699, + "name": "windowSize", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 259, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L259" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1700, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/windowSize.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/windowSize.ts#L16" + } + ], + "signatures": [ + { + "id": 1701, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "windowSize to get the window size" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nwindowSize() // { width: 1280, height: 800 }\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the width and height" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/windowSize.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/windowSize.ts#L16" + } + ], + "type": { + "type": "reference", + "target": 547, + "name": "WindowSizeObj", + "package": "js-cool" + } + } + ] + } + } + }, + { + "id": 1702, + "name": "loadSource", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 260, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L260" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1703, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "line": 13, + "character": 17 + } + ], + "signatures": [ + { + "id": 1704, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Dynamic loading of resources, support js, images, css links, css style strings" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- true|false|imgUrl" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "line": 13, + "character": 17 + } + ], + "parameters": [ + { + "id": 1705, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "link to the resource, type must be passed when passing in styleString" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1706, + "name": "option", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parameters: attrs, props, force" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "SourceOptions" + }, + "name": "SourceOptions", + "package": "load-source" + } + ] + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1707, + "name": "mountCss", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 261, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L261" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1708, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "line": 21, + "character": 17 + } + ], + "signatures": [ + { + "id": 1709, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Dynamic loading of css link resources" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "line": 21, + "character": 17 + } + ], + "parameters": [ + { + "id": 1710, + "name": "src", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "resource address" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1711, + "name": "option", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parameters: attrs, props, force" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "CssOptions" + }, + "name": "CssOptions", + "package": "mount-css" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1712, + "name": "mountImg", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 262, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L262" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1713, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "line": 21, + "character": 17 + } + ], + "signatures": [ + { + "id": 1714, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Dynamic loading of image resources" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "line": 21, + "character": 17 + } + ], + "parameters": [ + { + "id": 1715, + "name": "src", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "resource address" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1716, + "name": "option", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parameters: attrs, props, force" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "ImgOptions" + }, + "name": "ImgOptions", + "package": "mount-image" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1717, + "name": "mountJs", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 263, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L263" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1718, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "line": 19, + "character": 17 + } + ], + "signatures": [ + { + "id": 1719, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Dynamic loading of js linked resources" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "line": 19, + "character": 17 + } + ], + "parameters": [ + { + "id": 1720, + "name": "src", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "resource address" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1721, + "name": "option", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parameters: attrs, props, force" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "JsOptions" + }, + "name": "JsOptions", + "package": "mount-script" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1722, + "name": "mountStyle", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 264, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L264" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1723, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "line": 8, + "character": 17 + } + ], + "signatures": [ + { + "id": 1724, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Dynamic loading of css styles" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- results" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "line": 8, + "character": 17 + } + ], + "parameters": [ + { + "id": 1725, + "name": "css", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1726, + "name": "option", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parameters: attrs, props" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "StyleOptions" + }, + "name": "StyleOptions", + "package": "mount-style" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1727, + "name": "preloader", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 265, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L265" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1728, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/preloader.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/preloader.ts#L7" + }, + { + "fileName": "src/preloader.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/preloader.ts#L8" + }, + { + "fileName": "src/preloader.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/preloader.ts#L9" + } + ], + "signatures": [ + { + "id": 1729, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Image preloading" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.5.0" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/preloader.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/preloader.ts#L7" + } + ], + "parameters": [ + { + "id": 1730, + "name": "images", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "images url" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "HTMLImageElement" + }, + "name": "HTMLImageElement", + "package": "typescript" + } + }, + { + "id": 1731, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Image preloading" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.5.0" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/preloader.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/preloader.ts#L8" + } + ], + "parameters": [ + { + "id": 1732, + "name": "images", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "images url" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "HTMLImageElement" + }, + "name": "HTMLImageElement", + "package": "typescript" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 1021, + 1022, + 1028, + 1034, + 1035, + 1041, + 1047, + 1051, + 1058, + 1062, + 1066, + 1073, + 1077, + 1081, + 1084, + 1093, + 1097, + 1101, + 1107, + 1111, + 1115, + 1119, + 1123, + 1142, + 1147, + 1152, + 1158, + 1164, + 1169, + 1175, + 1181, + 1185, + 1189, + 1193, + 1207, + 1211, + 1215, + 1229, + 1234, + 1238, + 1243, + 1251, + 1257, + 1271, + 1275, + 1279, + 1284, + 1288, + 1294, + 1298, + 1302, + 1309, + 1318, + 1334, + 1339, + 1344, + 1350, + 1358, + 1367, + 1371, + 1374, + 1379, + 1386, + 1397, + 1405, + 1410, + 1416, + 1421, + 1426, + 1433, + 1442, + 1447, + 1451, + 1455, + 1459, + 1466, + 1470, + 1474, + 1478, + 1482, + 1486, + 1491, + 1495, + 1498, + 1499, + 1500, + 1504, + 1509, + 1514, + 1520, + 1538, + 1546, + 1551, + 1567, + 1572, + 1577, + 1581, + 1585, + 1590, + 1594, + 1598, + 1602, + 1606, + 1610, + 1614, + 1618, + 1622, + 1645, + 1651, + 1658, + 1666, + 1670, + 1674, + 1678, + 1682, + 1687, + 1692, + 1696, + 1699, + 1702, + 1707, + 1712, + 1717, + 1722, + 1727 + ] + } + ], + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 140, + "character": 15, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.default.ts#L140" + } + ] + } + } + }, + { + "id": 1, + "name": "version", + "variant": "declaration", + "kind": 32, + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "src/index.ts", + "line": 166, + "character": 13, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/index.ts#L166" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 892, + "name": "intersect", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/intersect.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/intersect.ts#L14" + } + ], + "signatures": [ + { + "id": 893, + "name": "intersect", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Find the intersection of multiple arrays" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nintersect([1, 2], [2, 3, 4], [2, 8], [2, '33']) // [2]\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "2.2.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- new array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/intersect.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/intersect.ts#L14" + } + ], + "typeParameters": [ + { + "id": 894, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 895, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arguments" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "reference", + "target": 894, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 894, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ] + }, + { + "id": 533, + "name": "isArray", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isArray.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isArray.ts#L12" + } + ], + "signatures": [ + { + "id": 534, + "name": "isArray", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if it is an array" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisArray([]) // true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is Array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isArray.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isArray.ts#L12" + } + ], + "parameters": [ + { + "id": 535, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + } + ] + }, + { + "id": 522, + "name": "isDarkMode", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isDarkMode.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isDarkMode.ts#L11" + } + ], + "signatures": [ + { + "id": 523, + "name": "isDarkMode", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if dark color mode" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisDarkMode() // true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.5.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isDarkMode.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isDarkMode.ts#L11" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 527, + "name": "isDate", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isDate.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isDate.ts#L17" + } + ], + "signatures": [ + { + "id": 528, + "name": "isDate", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if target is Date" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst now = new Date()\n\nisDate(now)\n// true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.15.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is Date" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isDate.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isDate.ts#L17" + } + ], + "parameters": [ + { + "id": 529, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Date" + }, + "name": "Date", + "package": "typescript" + } + } + } + ] + }, + { + "id": 155, + "name": "isDigitals", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isDigitals.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isDigitals.ts#L9" + } + ], + "signatures": [ + { + "id": 156, + "name": "isDigitals", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether or not it is a string consisting of numbers" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "will be removed in the next major release." + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isDigitals.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isDigitals.ts#L9" + } + ], + "parameters": [ + { + "id": 157, + "name": "str", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be tested" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 161, + "name": "isEqual", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isEqual.ts", + "line": 123, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isEqual.ts#L123" + } + ], + "signatures": [ + { + "id": 162, + "name": "isEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if 2 objects are equal" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisEqual({ a: 22, b: {} }, { b: {}, a: 22 })\n// true\n\nisEqual([1, 2], [2, 1])\n// false\n\nisEqual(NaN, NaN)\n// true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.12.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- a equals to b" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isEqual.ts", + "line": 123, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isEqual.ts#L123" + } + ], + "typeParameters": [ + { + "id": 163, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 164, + "name": "P", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 165, + "name": "a", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "source" + } + ] + }, + "type": { + "type": "reference", + "target": 163, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 166, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "compare" + } + ] + }, + "type": { + "type": "reference", + "target": 164, + "name": "P", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 158, + "name": "isExitsFunction", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isExitsFunction.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isExitsFunction.ts#L15" + } + ], + "signatures": [ + { + "id": 159, + "name": "isExitsFunction", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The presence or absence of the specified function" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisExitsFunction('test') // false\nisExitsFunction('console.log') // true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isExitsFunction.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isExitsFunction.ts#L15" + } + ], + "parameters": [ + { + "id": 160, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "incoming function name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 167, + "name": "isExitsVariable", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isExitsVariable.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isExitsVariable.ts#L13" + } + ], + "signatures": [ + { + "id": 168, + "name": "isExitsVariable", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The presence or absence of the specified variable" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisExitsVariable('test') // false\nisExitsVariable('window') // true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isExitsVariable.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isExitsVariable.ts#L13" + } + ], + "parameters": [ + { + "id": 169, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "variable name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 536, + "name": "isIterable", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isIterable.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isIterable.ts#L12" + } + ], + "signatures": [ + { + "id": 537, + "name": "isIterable", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if it is iterable" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisIterable([]) // true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.7.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is Array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isIterable.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isIterable.ts#L12" + } + ], + "typeParameters": [ + { + "id": 538, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "parameters": [ + { + "id": 539, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 538, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Iterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 538, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "Iterable", + "package": "typescript" + } + ] + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Iterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 538, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "Iterable", + "package": "typescript" + } + } + } + ] + }, + { + "id": 542, + "name": "isNumberBrowser", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isNumberBrowser.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isNumberBrowser.ts#L18" + } + ], + "signatures": [ + { + "id": 543, + "name": "isNumberBrowser", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Detect if the client is a 360 browser" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36 QIHU 360EE'\n// true\n\n// 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36'\n// true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.22.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isNumberBrowser.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isNumberBrowser.ts#L18" + } + ], + "parameters": [ + { + "id": 544, + "name": "userAgent", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua, allowed to be undefined, default takes navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 524, + "name": "isObject", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isObject.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isObject.ts#L14" + } + ], + "signatures": [ + { + "id": 525, + "name": "isObject", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if target is an object" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisObject({}) // true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is Object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isObject.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isObject.ts#L14" + } + ], + "parameters": [ + { + "id": 526, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Object" + }, + "name": "Object", + "package": "typescript" + } + } + } + ] + }, + { + "id": 176, + "name": "Primitive", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 3, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isPlainObject.ts#L3" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "bigint" + }, + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "symbol" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + }, + { + "id": 180, + "name": "JSONValue", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 7, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isPlainObject.ts#L7" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 176, + "name": "Primitive", + "package": "js-cool" + }, + { + "type": "reference", + "target": 177, + "name": "PlainObject", + "package": "js-cool" + }, + { + "type": "reference", + "target": 181, + "name": "JSONArray", + "package": "js-cool" + } + ] + } + }, + { + "id": 177, + "name": "PlainObject", + "variant": "declaration", + "kind": 256, + "flags": {}, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 10, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isPlainObject.ts#L10" + } + ], + "indexSignatures": [ + { + "id": 178, + "name": "__index", + "variant": "signature", + "kind": 8192, + "flags": {}, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 11, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isPlainObject.ts#L11" + } + ], + "parameters": [ + { + "id": 179, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + ] + }, + { + "id": 181, + "name": "JSONArray", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 357, + "name": "find", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 29, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 30, + "character": 4 + } + ], + "signatures": [ + { + "id": 358, + "name": "find", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the value of the first element in the array where predicate is true, and undefined\notherwise." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 29, + "character": 4 + } + ], + "typeParameters": [ + { + "id": 359, + "name": "S", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "parameters": [ + { + "id": 360, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "find calls predicate once for each element of the array, in ascending\norder, until it finds one where predicate returns true. If such an element is found, find\nimmediately returns that element value. Otherwise, find returns undefined." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 361, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 29, + "character": 33 + } + ], + "signatures": [ + { + "id": 362, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 29, + "character": 33 + } + ], + "parameters": [ + { + "id": 363, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 364, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 365, + "name": "obj", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "target": 359, + "name": "S", + "package": "typescript", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 366, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reference", + "target": 359, + "name": "S", + "package": "typescript", + "refersToTypeParameter": true + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.find" + } + }, + { + "id": 367, + "name": "find", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 30, + "character": 4 + } + ], + "parameters": [ + { + "id": 368, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 369, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 30, + "character": 20 + } + ], + "signatures": [ + { + "id": 370, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 30, + "character": 20 + } + ], + "parameters": [ + { + "id": 371, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 372, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 373, + "name": "obj", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + }, + { + "id": 374, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.find" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.find" + } + }, + { + "id": 375, + "name": "findIndex", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 41, + "character": 4 + } + ], + "signatures": [ + { + "id": 376, + "name": "findIndex", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the index of the first element in the array where predicate is true, and -1\notherwise." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 41, + "character": 4 + } + ], + "parameters": [ + { + "id": 377, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "find calls predicate once for each element of the array, in ascending\norder, until it finds one where predicate returns true. If such an element is found,\nfindIndex immediately returns that element index. Otherwise, findIndex returns -1." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 378, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 41, + "character": 25 + } + ], + "signatures": [ + { + "id": 379, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 41, + "character": 25 + } + ], + "parameters": [ + { + "id": 380, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 381, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 382, + "name": "obj", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + }, + { + "id": 383, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.findIndex" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.findIndex" + } + }, + { + "id": 384, + "name": "fill", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 51, + "character": 4 + } + ], + "signatures": [ + { + "id": 385, + "name": "fill", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Changes all array elements from " + }, + { + "kind": "code", + "text": "`start`" + }, + { + "kind": "text", + "text": " to " + }, + { + "kind": "code", + "text": "`end`" + }, + { + "kind": "text", + "text": " index to a static " + }, + { + "kind": "code", + "text": "`value`" + }, + { + "kind": "text", + "text": " and returns the modified array" + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 51, + "character": 4 + } + ], + "parameters": [ + { + "id": 386, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "value to fill array section with" + } + ] + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 387, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "index to start filling the array at. If start is negative, it is treated as\nlength+start where length is the length of the array." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 388, + "name": "end", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "index to stop filling the array at. If end is negative, it is treated as\nlength+end." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.fill" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.fill" + } + }, + { + "id": 389, + "name": "copyWithin", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 62, + "character": 4 + } + ], + "signatures": [ + { + "id": 390, + "name": "copyWithin", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the this object after copying a section of the array identified by start and end\nto the same array starting at position target" + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 62, + "character": 4 + } + ], + "parameters": [ + { + "id": 391, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If target is negative, it is treated as length+target where length is the\nlength of the array." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 392, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If start is negative, it is treated as length+start. If end is negative, it\nis treated as length+end." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 393, + "name": "end", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If not specified, length of the this object is used as its default value." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.copyWithin" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.copyWithin" + } + }, + { + "id": 473, + "name": "[iterator]", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 78, + "character": 4 + } + ], + "signatures": [ + { + "id": 474, + "name": "[iterator]", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Iterator" + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 78, + "character": 4 + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "ArrayIterator" + }, + "typeArguments": [ + { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + ], + "name": "ArrayIterator", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.[iterator]" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.[iterator]" + } + }, + { + "id": 394, + "name": "entries", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 83, + "character": 4 + } + ], + "signatures": [ + { + "id": 395, + "name": "entries", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns an iterable of key, value pairs for every entry in the array" + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 83, + "character": 4 + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "ArrayIterator" + }, + "typeArguments": [ + { + "type": "tuple", + "elements": [ + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + ] + } + ], + "name": "ArrayIterator", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.entries" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.entries" + } + }, + { + "id": 396, + "name": "keys", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 88, + "character": 4 + } + ], + "signatures": [ + { + "id": 397, + "name": "keys", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns an iterable of keys in the array" + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 88, + "character": 4 + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "ArrayIterator" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "number" + } + ], + "name": "ArrayIterator", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.keys" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.keys" + } + }, + { + "id": 398, + "name": "values", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 93, + "character": 4 + } + ], + "signatures": [ + { + "id": 399, + "name": "values", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns an iterable of values in the array" + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 93, + "character": 4 + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "ArrayIterator" + }, + "typeArguments": [ + { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + ], + "name": "ArrayIterator", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.values" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.values" + } + }, + { + "id": 475, + "name": "[unscopables]", + "variant": "declaration", + "kind": 1024, + "flags": { + "isExternal": true, + "isReadonly": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Is an object whose properties have the value 'true'\nwhen they will be absent when used in a 'with' statement." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "line": 97, + "character": 13 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 476, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "children": [ + { + "id": 499, + "name": "find", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 29, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 30, + "character": 4 + } + ] + }, + { + "id": 500, + "name": "findIndex", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 41, + "character": 4 + } + ] + }, + { + "id": 501, + "name": "fill", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 51, + "character": 4 + } + ] + }, + { + "id": 502, + "name": "copyWithin", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 62, + "character": 4 + } + ] + }, + { + "id": 516, + "name": "[iterator]", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 78, + "character": 4 + } + ] + }, + { + "id": 503, + "name": "entries", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 83, + "character": 4 + } + ] + }, + { + "id": 504, + "name": "keys", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 88, + "character": 4 + } + ] + }, + { + "id": 505, + "name": "values", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 93, + "character": 4 + } + ] + }, + { + "id": 517, + "name": "[unscopables]", + "variant": "declaration", + "kind": 1024, + "flags": { + "isExternal": true, + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Is an object whose properties have the value 'true'\nwhen they will be absent when used in a 'with' statement." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "line": 97, + "character": 13 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 506, + "name": "includes", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "line": 25, + "character": 4 + } + ] + }, + { + "id": 507, + "name": "flatMap", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 64, + "character": 4 + } + ] + }, + { + "id": 508, + "name": "flat", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 75, + "character": 4 + } + ] + }, + { + "id": 509, + "name": "at", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.array.d.ts", + "line": 24, + "character": 4 + } + ] + }, + { + "id": 510, + "name": "findLast", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 29, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 30, + "character": 4 + } + ] + }, + { + "id": 511, + "name": "findLastIndex", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 41, + "character": 4 + } + ] + }, + { + "id": 512, + "name": "toReversed", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 46, + "character": 4 + } + ] + }, + { + "id": 513, + "name": "toSorted", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 57, + "character": 4 + } + ] + }, + { + "id": 514, + "name": "toSpliced", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 66, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 74, + "character": 4 + } + ] + }, + { + "id": 515, + "name": "with", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 85, + "character": 4 + } + ] + }, + { + "id": 477, + "name": "length", + "variant": "declaration", + "kind": 1024, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Gets or sets the length of the array. This is a number one higher than the highest index in the array." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1326, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 478, + "name": "toString", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1330, + "character": 4 + } + ] + }, + { + "id": 479, + "name": "toLocaleString", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1334, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 64, + "character": 4 + } + ] + }, + { + "id": 480, + "name": "pop", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1339, + "character": 4 + } + ] + }, + { + "id": 481, + "name": "push", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1344, + "character": 4 + } + ] + }, + { + "id": 482, + "name": "concat", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1350, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1356, + "character": 4 + } + ] + }, + { + "id": 483, + "name": "join", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1361, + "character": 4 + } + ] + }, + { + "id": 484, + "name": "reverse", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1366, + "character": 4 + } + ] + }, + { + "id": 485, + "name": "shift", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1371, + "character": 4 + } + ] + }, + { + "id": 486, + "name": "slice", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1381, + "character": 4 + } + ] + }, + { + "id": 487, + "name": "sort", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1392, + "character": 4 + } + ] + }, + { + "id": 488, + "name": "splice", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1399, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1407, + "character": 4 + } + ] + }, + { + "id": 489, + "name": "unshift", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1412, + "character": 4 + } + ] + }, + { + "id": 490, + "name": "indexOf", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1418, + "character": 4 + } + ] + }, + { + "id": 491, + "name": "lastIndexOf", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1424, + "character": 4 + } + ] + }, + { + "id": 492, + "name": "every", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1433, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1442, + "character": 4 + } + ] + }, + { + "id": 493, + "name": "some", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1451, + "character": 4 + } + ] + }, + { + "id": 494, + "name": "forEach", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1457, + "character": 4 + } + ] + }, + { + "id": 495, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1463, + "character": 4 + } + ] + }, + { + "id": 496, + "name": "filter", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1469, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1475, + "character": 4 + } + ] + }, + { + "id": 497, + "name": "reduce", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1481, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1482, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1488, + "character": 4 + } + ] + }, + { + "id": 498, + "name": "reduceRight", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1494, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1495, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1501, + "character": 4 + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 517, + 477 + ] + }, + { + "title": "Methods", + "children": [ + 499, + 500, + 501, + 502, + 516, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "line": 97, + "character": 35 + } + ], + "indexSignatures": [ + { + "id": 518, + "name": "__index", + "variant": "signature", + "kind": 8192, + "flags": { + "isExternal": true + }, + "parameters": [ + { + "id": 519, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "boolean" + } + ] + } + } + ] + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.[unscopables]" + } + }, + { + "id": 400, + "name": "includes", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "line": 25, + "character": 4 + } + ], + "signatures": [ + { + "id": 401, + "name": "includes", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determines whether an array includes a certain element, returning true or false as appropriate." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "line": 25, + "character": 4 + } + ], + "parameters": [ + { + "id": 402, + "name": "searchElement", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The element to search for." + } + ] + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 403, + "name": "fromIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The position in this array at which to begin searching for searchElement." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.includes" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.includes" + } + }, + { + "id": 404, + "name": "flatMap", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 64, + "character": 4 + } + ], + "signatures": [ + { + "id": 405, + "name": "flatMap", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Calls a defined callback function on each element of an array. Then, flattens the result into\na new array.\nThis is identical to a map followed by flat with depth 1." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 64, + "character": 4 + } + ], + "typeParameters": [ + { + "id": 406, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + } + }, + { + "id": 407, + "name": "This", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "default": { + "type": "intrinsic", + "name": "undefined" + } + } + ], + "parameters": [ + { + "id": 408, + "name": "callback", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to three arguments. The flatMap method calls the\ncallback function one time for each element in the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 409, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 65, + "character": 18 + } + ], + "signatures": [ + { + "id": 410, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 65, + "character": 18 + } + ], + "parameters": [ + { + "id": 411, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 407, + "name": "This", + "package": "typescript", + "refersToTypeParameter": true + } + }, + { + "id": 412, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 413, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 414, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 406, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + }, + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 406, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + } + } + } + ] + } + } + ] + } + } + }, + { + "id": 415, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An object to which the this keyword can refer in the callback function. If\nthisArg is omitted, undefined is used as the this value." + } + ] + }, + "type": { + "type": "reference", + "target": 407, + "name": "This", + "package": "typescript", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 406, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.flatMap" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.flatMap" + } + }, + { + "id": 416, + "name": "flat", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 75, + "character": 4 + } + ], + "signatures": [ + { + "id": 417, + "name": "flat", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns a new array with all sub-array elements concatenated into it recursively up to the\nspecified depth." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 75, + "character": 4 + } + ], + "typeParameters": [ + { + "id": 418, + "name": "A", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + } + }, + { + "id": 419, + "name": "D", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "default": { + "type": "literal", + "value": 1 + } + } + ], + "parameters": [ + { + "id": 420, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 418, + "name": "A", + "package": "typescript", + "refersToTypeParameter": true + } + }, + { + "id": 421, + "name": "depth", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The maximum recursion depth" + } + ] + }, + "type": { + "type": "reference", + "target": 419, + "name": "D", + "package": "typescript", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "FlatArray" + }, + "typeArguments": [ + { + "type": "reference", + "target": 418, + "name": "A", + "package": "typescript", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 419, + "name": "D", + "package": "typescript", + "refersToTypeParameter": true + } + ], + "name": "FlatArray", + "package": "typescript" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.flat" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.flat" + } + }, + { + "id": 422, + "name": "at", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.array.d.ts", + "line": 24, + "character": 4 + } + ], + "signatures": [ + { + "id": 423, + "name": "at", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the item located at the specified index." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.array.d.ts", + "line": 24, + "character": 4 + } + ], + "parameters": [ + { + "id": 424, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The zero-based index of the desired code unit. A negative index will count back from the last item." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.at" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.at" + } + }, + { + "id": 425, + "name": "findLast", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 29, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 30, + "character": 4 + } + ], + "signatures": [ + { + "id": 426, + "name": "findLast", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the value of the last element in the array where predicate is true, and undefined\notherwise." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 29, + "character": 4 + } + ], + "typeParameters": [ + { + "id": 427, + "name": "S", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "parameters": [ + { + "id": 428, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "findLast calls predicate once for each element of the array, in descending\norder, until it finds one where predicate returns true. If such an element is found, findLast\nimmediately returns that element value. Otherwise, findLast returns undefined." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 429, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 29, + "character": 37 + } + ], + "signatures": [ + { + "id": 430, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 29, + "character": 37 + } + ], + "parameters": [ + { + "id": 431, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 432, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 433, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "target": 427, + "name": "S", + "package": "typescript", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 434, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reference", + "target": 427, + "name": "S", + "package": "typescript", + "refersToTypeParameter": true + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.findLast" + } + }, + { + "id": 435, + "name": "findLast", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 30, + "character": 4 + } + ], + "parameters": [ + { + "id": 436, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 437, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 30, + "character": 24 + } + ], + "signatures": [ + { + "id": 438, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 30, + "character": 24 + } + ], + "parameters": [ + { + "id": 439, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 440, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 441, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + }, + { + "id": 442, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.findLast" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.findLast" + } + }, + { + "id": 443, + "name": "findLastIndex", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 41, + "character": 4 + } + ], + "signatures": [ + { + "id": 444, + "name": "findLastIndex", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the index of the last element in the array where predicate is true, and -1\notherwise." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 41, + "character": 4 + } + ], + "parameters": [ + { + "id": 445, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "findLastIndex calls predicate once for each element of the array, in descending\norder, until it finds one where predicate returns true. If such an element is found,\nfindLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 446, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 41, + "character": 29 + } + ], + "signatures": [ + { + "id": 447, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 41, + "character": 29 + } + ], + "parameters": [ + { + "id": 448, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 449, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 450, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + }, + { + "id": 451, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.findLastIndex" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.findLastIndex" + } + }, + { + "id": 452, + "name": "toReversed", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 46, + "character": 4 + } + ], + "signatures": [ + { + "id": 453, + "name": "toReversed", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns a copy of an array with its elements reversed." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 46, + "character": 4 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toReversed" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toReversed" + } + }, + { + "id": 454, + "name": "toSorted", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 57, + "character": 4 + } + ], + "signatures": [ + { + "id": 455, + "name": "toSorted", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns a copy of an array with its elements sorted." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 57, + "character": 4 + } + ], + "parameters": [ + { + "id": 456, + "name": "compareFn", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Function used to determine the order of the elements. It is expected to return\na negative value if the first argument is less than the second argument, zero if they're equal, and a positive\nvalue otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\n" + }, + { + "kind": "code", + "text": "```ts\n[11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]\n```" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 457, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 57, + "character": 25 + } + ], + "signatures": [ + { + "id": 458, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 57, + "character": 25 + } + ], + "parameters": [ + { + "id": 459, + "name": "a", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 460, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toSorted" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toSorted" + } + }, + { + "id": 461, + "name": "toSpliced", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 66, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 74, + "character": 4 + } + ], + "signatures": [ + { + "id": 462, + "name": "toSpliced", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "The copied array." + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 66, + "character": 4 + } + ], + "parameters": [ + { + "id": 463, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The zero-based location in the array from which to start removing elements." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 464, + "name": "deleteCount", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of elements to remove." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 465, + "name": "items", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Elements to insert into the copied array in place of the deleted elements." + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toSpliced" + } + }, + { + "id": 466, + "name": "toSpliced", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Copies an array and removes elements while returning the remaining elements." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A copy of the original array with the remaining elements." + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 74, + "character": 4 + } + ], + "parameters": [ + { + "id": 467, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The zero-based location in the array from which to start removing elements." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 468, + "name": "deleteCount", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of elements to remove." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toSpliced" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toSpliced" + } + }, + { + "id": 469, + "name": "with", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 85, + "character": 4 + } + ], + "signatures": [ + { + "id": 470, + "name": "with", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Copies an array, then overwrites the value at the provided index with the\ngiven value. If the index is negative, then it replaces from the end\nof the array." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "The copied array with the updated value." + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 85, + "character": 4 + } + ], + "parameters": [ + { + "id": 471, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The index of the value to overwrite. If the index is\nnegative, then it replaces from the end of the array." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 472, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to write into the copied array." + } + ] + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.with" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.with" + } + }, + { + "id": 182, + "name": "length", + "variant": "declaration", + "kind": 1024, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Gets or sets the length of the array. This is a number one higher than the highest index in the array." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1326, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.length" + } + }, + { + "id": 183, + "name": "toString", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1330, + "character": 4 + } + ], + "signatures": [ + { + "id": 184, + "name": "toString", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns a string representation of an array." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1330, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toString" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toString" + } + }, + { + "id": 185, + "name": "toLocaleString", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1334, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 64, + "character": 4 + } + ], + "signatures": [ + { + "id": 186, + "name": "toLocaleString", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns a string representation of an array. The elements are converted to string using their toLocaleString methods." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1334, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toLocaleString" + } + }, + { + "id": 187, + "name": "toLocaleString", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 64, + "character": 4 + } + ], + "parameters": [ + { + "id": 188, + "name": "locales", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 189, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "type": { + "type": "intersection", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Intl.NumberFormatOptions" + }, + "name": "NumberFormatOptions", + "package": "typescript", + "qualifiedName": "Intl.NumberFormatOptions" + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Intl.DateTimeFormatOptions" + }, + "name": "DateTimeFormatOptions", + "package": "typescript", + "qualifiedName": "Intl.DateTimeFormatOptions" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toLocaleString" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toLocaleString" + } + }, + { + "id": 190, + "name": "pop", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1339, + "character": 4 + } + ], + "signatures": [ + { + "id": 191, + "name": "pop", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Removes the last element from an array and returns it.\nIf the array is empty, undefined is returned and the array is not modified." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1339, + "character": 4 + } + ], + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.pop" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.pop" + } + }, + { + "id": 192, + "name": "push", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1344, + "character": 4 + } + ], + "signatures": [ + { + "id": 193, + "name": "push", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Appends new elements to the end of an array, and returns the new length of the array." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1344, + "character": 4 + } + ], + "parameters": [ + { + "id": 194, + "name": "items", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "New elements to add to the array." + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.push" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.push" + } + }, + { + "id": 195, + "name": "concat", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1350, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1356, + "character": 4 + } + ], + "signatures": [ + { + "id": 196, + "name": "concat", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Combines two or more arrays.\nThis method returns a new array without modifying any existing arrays." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1350, + "character": 4 + } + ], + "parameters": [ + { + "id": 197, + "name": "items", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Additional arrays and/or items to add to the end of the array." + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ConcatArray" + }, + "typeArguments": [ + { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + ], + "name": "ConcatArray", + "package": "typescript" + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.concat" + } + }, + { + "id": 198, + "name": "concat", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Combines two or more arrays.\nThis method returns a new array without modifying any existing arrays." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1356, + "character": 4 + } + ], + "parameters": [ + { + "id": 199, + "name": "items", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Additional arrays and/or items to add to the end of the array." + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ConcatArray" + }, + "typeArguments": [ + { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + ], + "name": "ConcatArray", + "package": "typescript" + } + ] + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.concat" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.concat" + } + }, + { + "id": 200, + "name": "join", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1361, + "character": 4 + } + ], + "signatures": [ + { + "id": 201, + "name": "join", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Adds all the elements of an array into a string, separated by the specified separator string." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1361, + "character": 4 + } + ], + "parameters": [ + { + "id": 202, + "name": "separator", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.join" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.join" + } + }, + { + "id": 203, + "name": "reverse", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1366, + "character": 4 + } + ], + "signatures": [ + { + "id": 204, + "name": "reverse", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Reverses the elements in an array in place.\nThis method mutates the array and returns a reference to the same array." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1366, + "character": 4 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reverse" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reverse" + } + }, + { + "id": 205, + "name": "shift", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1371, + "character": 4 + } + ], + "signatures": [ + { + "id": 206, + "name": "shift", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Removes the first element from an array and returns it.\nIf the array is empty, undefined is returned and the array is not modified." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1371, + "character": 4 + } + ], + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.shift" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.shift" + } + }, + { + "id": 207, + "name": "slice", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1381, + "character": 4 + } + ], + "signatures": [ + { + "id": 208, + "name": "slice", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns a copy of a section of an array.\nFor both start and end, a negative index can be used to indicate an offset from the end of the array.\nFor example, -2 refers to the second to last element of the array." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1381, + "character": 4 + } + ], + "parameters": [ + { + "id": 209, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The beginning index of the specified portion of the array.\nIf start is undefined, then the slice begins at index 0." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 210, + "name": "end", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.\nIf end is undefined, then the slice extends to the end of the array." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.slice" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.slice" + } + }, + { + "id": 211, + "name": "sort", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1392, + "character": 4 + } + ], + "signatures": [ + { + "id": 212, + "name": "sort", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Sorts an array in place.\nThis method mutates the array and returns a reference to the same array." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1392, + "character": 4 + } + ], + "parameters": [ + { + "id": 213, + "name": "compareFn", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Function used to determine the order of the elements. It is expected to return\na negative value if the first argument is less than the second argument, zero if they're equal, and a positive\nvalue otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\n" + }, + { + "kind": "code", + "text": "```ts\n[11,2,22,1].sort((a, b) => a - b)\n```" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 214, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1392, + "character": 21 + } + ], + "signatures": [ + { + "id": 215, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1392, + "character": 21 + } + ], + "parameters": [ + { + "id": 216, + "name": "a", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 217, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "this" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.sort" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.sort" + } + }, + { + "id": 218, + "name": "splice", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1399, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1407, + "character": 4 + } + ], + "signatures": [ + { + "id": 219, + "name": "splice", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "An array containing the elements that were deleted." + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1399, + "character": 4 + } + ], + "parameters": [ + { + "id": 220, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The zero-based location in the array from which to start removing elements." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 221, + "name": "deleteCount", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of elements to remove." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.splice" + } + }, + { + "id": 222, + "name": "splice", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "An array containing the elements that were deleted." + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1407, + "character": 4 + } + ], + "parameters": [ + { + "id": 223, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The zero-based location in the array from which to start removing elements." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 224, + "name": "deleteCount", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of elements to remove." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 225, + "name": "items", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Elements to insert into the array in place of the deleted elements." + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.splice" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.splice" + } + }, + { + "id": 226, + "name": "unshift", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1412, + "character": 4 + } + ], + "signatures": [ + { + "id": 227, + "name": "unshift", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Inserts new elements at the start of an array, and returns the new length of the array." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1412, + "character": 4 + } + ], + "parameters": [ + { + "id": 228, + "name": "items", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Elements to insert at the start of the array." + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.unshift" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.unshift" + } + }, + { + "id": 229, + "name": "indexOf", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1418, + "character": 4 + } + ], + "signatures": [ + { + "id": 230, + "name": "indexOf", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the index of the first occurrence of a value in an array, or -1 if it is not present." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1418, + "character": 4 + } + ], + "parameters": [ + { + "id": 231, + "name": "searchElement", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to locate in the array." + } + ] + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 232, + "name": "fromIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.indexOf" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.indexOf" + } + }, + { + "id": 233, + "name": "lastIndexOf", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1424, + "character": 4 + } + ], + "signatures": [ + { + "id": 234, + "name": "lastIndexOf", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1424, + "character": 4 + } + ], + "parameters": [ + { + "id": 235, + "name": "searchElement", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to locate in the array." + } + ] + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 236, + "name": "fromIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.lastIndexOf" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.lastIndexOf" + } + }, + { + "id": 237, + "name": "every", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1433, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1442, + "character": 4 + } + ], + "signatures": [ + { + "id": 238, + "name": "every", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determines whether all the members of an array satisfy the specified test." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1433, + "character": 4 + } + ], + "typeParameters": [ + { + "id": 239, + "name": "S", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "parameters": [ + { + "id": 240, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to three arguments. The every method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value false, or until the end of the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 241, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1433, + "character": 34 + } + ], + "signatures": [ + { + "id": 242, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1433, + "character": 34 + } + ], + "parameters": [ + { + "id": 243, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 244, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 245, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "target": 239, + "name": "S", + "package": "typescript", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 246, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "predicate", + "name": "this", + "asserts": false, + "targetType": { + "type": "array", + "elementType": { + "type": "reference", + "target": 239, + "name": "S", + "package": "typescript", + "refersToTypeParameter": true + } + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.every" + } + }, + { + "id": 247, + "name": "every", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determines whether all the members of an array satisfy the specified test." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1442, + "character": 4 + } + ], + "parameters": [ + { + "id": 248, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to three arguments. The every method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value false, or until the end of the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 249, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1442, + "character": 21 + } + ], + "signatures": [ + { + "id": 250, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1442, + "character": 21 + } + ], + "parameters": [ + { + "id": 251, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 252, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 253, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + }, + { + "id": 254, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.every" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.every" + } + }, + { + "id": 255, + "name": "some", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1451, + "character": 4 + } + ], + "signatures": [ + { + "id": 256, + "name": "some", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determines whether the specified callback function returns true for any element of an array." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1451, + "character": 4 + } + ], + "parameters": [ + { + "id": 257, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to three arguments. The some method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value true, or until the end of the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 258, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1451, + "character": 20 + } + ], + "signatures": [ + { + "id": 259, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1451, + "character": 20 + } + ], + "parameters": [ + { + "id": 260, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 261, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 262, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + }, + { + "id": 263, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.some" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.some" + } + }, + { + "id": 264, + "name": "forEach", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1457, + "character": 4 + } + ], + "signatures": [ + { + "id": 265, + "name": "forEach", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Performs the specified action for each element in an array." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1457, + "character": 4 + } + ], + "parameters": [ + { + "id": 266, + "name": "callbackfn", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 267, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1457, + "character": 24 + } + ], + "signatures": [ + { + "id": 268, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1457, + "character": 24 + } + ], + "parameters": [ + { + "id": 269, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 270, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 271, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 272, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.forEach" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.forEach" + } + }, + { + "id": 273, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1463, + "character": 4 + } + ], + "signatures": [ + { + "id": 274, + "name": "map", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Calls a defined callback function on each element of an array, and returns an array that contains the results." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1463, + "character": 4 + } + ], + "typeParameters": [ + { + "id": 275, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + } + } + ], + "parameters": [ + { + "id": 276, + "name": "callbackfn", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 277, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1463, + "character": 23 + } + ], + "signatures": [ + { + "id": 278, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1463, + "character": 23 + } + ], + "parameters": [ + { + "id": 279, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 280, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 281, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "reference", + "target": 275, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + } + } + ] + } + } + }, + { + "id": 282, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 275, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.map" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.map" + } + }, + { + "id": 283, + "name": "filter", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1469, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1475, + "character": 4 + } + ], + "signatures": [ + { + "id": 284, + "name": "filter", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the elements of an array that meet the condition specified in a callback function." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1469, + "character": 4 + } + ], + "typeParameters": [ + { + "id": 285, + "name": "S", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "parameters": [ + { + "id": 286, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 287, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1469, + "character": 35 + } + ], + "signatures": [ + { + "id": 288, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1469, + "character": 35 + } + ], + "parameters": [ + { + "id": 289, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 290, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 291, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "target": 285, + "name": "S", + "package": "typescript", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 292, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 285, + "name": "S", + "package": "typescript", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.filter" + } + }, + { + "id": 293, + "name": "filter", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the elements of an array that meet the condition specified in a callback function." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1475, + "character": 4 + } + ], + "parameters": [ + { + "id": 294, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 295, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1475, + "character": 22 + } + ], + "signatures": [ + { + "id": 296, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1475, + "character": 22 + } + ], + "parameters": [ + { + "id": 297, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 298, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 299, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + }, + { + "id": 300, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.filter" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.filter" + } + }, + { + "id": 301, + "name": "reduce", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1481, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1482, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1488, + "character": 4 + } + ], + "signatures": [ + { + "id": 302, + "name": "reduce", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1481, + "character": 4 + } + ], + "parameters": [ + { + "id": 303, + "name": "callbackfn", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 304, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1481, + "character": 23 + } + ], + "signatures": [ + { + "id": 305, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1481, + "character": 23 + } + ], + "parameters": [ + { + "id": 306, + "name": "previousValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 307, + "name": "currentValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 308, + "name": "currentIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 309, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + ] + } + } + } + ], + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduce" + } + }, + { + "id": 310, + "name": "reduce", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1482, + "character": 4 + } + ], + "parameters": [ + { + "id": 311, + "name": "callbackfn", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 312, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1482, + "character": 23 + } + ], + "signatures": [ + { + "id": 313, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1482, + "character": 23 + } + ], + "parameters": [ + { + "id": 314, + "name": "previousValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 315, + "name": "currentValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 316, + "name": "currentIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 317, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + ] + } + } + }, + { + "id": 318, + "name": "initialValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduce" + } + }, + { + "id": 319, + "name": "reduce", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1488, + "character": 4 + } + ], + "typeParameters": [ + { + "id": 320, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + } + } + ], + "parameters": [ + { + "id": 321, + "name": "callbackfn", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 322, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1488, + "character": 26 + } + ], + "signatures": [ + { + "id": 323, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1488, + "character": 26 + } + ], + "parameters": [ + { + "id": 324, + "name": "previousValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 320, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + } + }, + { + "id": 325, + "name": "currentValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 326, + "name": "currentIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 327, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "reference", + "target": 320, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + } + } + ] + } + } + }, + { + "id": 328, + "name": "initialValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value." + } + ] + }, + "type": { + "type": "reference", + "target": 320, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 320, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduce" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduce" + } + }, + { + "id": 329, + "name": "reduceRight", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1494, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1495, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1501, + "character": 4 + } + ], + "signatures": [ + { + "id": 330, + "name": "reduceRight", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1494, + "character": 4 + } + ], + "parameters": [ + { + "id": 331, + "name": "callbackfn", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 332, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1494, + "character": 28 + } + ], + "signatures": [ + { + "id": 333, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1494, + "character": 28 + } + ], + "parameters": [ + { + "id": 334, + "name": "previousValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 335, + "name": "currentValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 336, + "name": "currentIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 337, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + ] + } + } + } + ], + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduceRight" + } + }, + { + "id": 338, + "name": "reduceRight", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1495, + "character": 4 + } + ], + "parameters": [ + { + "id": 339, + "name": "callbackfn", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 340, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1495, + "character": 28 + } + ], + "signatures": [ + { + "id": 341, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1495, + "character": 28 + } + ], + "parameters": [ + { + "id": 342, + "name": "previousValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 343, + "name": "currentValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 344, + "name": "currentIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 345, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + ] + } + } + }, + { + "id": 346, + "name": "initialValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduceRight" + } + }, + { + "id": 347, + "name": "reduceRight", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true, + "isInherited": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1501, + "character": 4 + } + ], + "typeParameters": [ + { + "id": 348, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + } + } + ], + "parameters": [ + { + "id": 349, + "name": "callbackfn", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 350, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1501, + "character": 31 + } + ], + "signatures": [ + { + "id": 351, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1501, + "character": 31 + } + ], + "parameters": [ + { + "id": 352, + "name": "previousValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 348, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + } + }, + { + "id": 353, + "name": "currentValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 354, + "name": "currentIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 355, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "reference", + "target": 348, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + } + } + ] + } + } + }, + { + "id": 356, + "name": "initialValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value." + } + ] + }, + "type": { + "type": "reference", + "target": 348, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 348, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduceRight" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduceRight" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 475, + 182 + ] + }, + { + "title": "Methods", + "children": [ + 357, + 375, + 384, + 389, + 473, + 394, + 396, + 398, + 400, + 404, + 416, + 422, + 425, + 443, + 452, + 454, + 461, + 469, + 183, + 185, + 190, + 192, + 195, + 200, + 203, + 205, + 207, + 211, + 218, + 226, + 229, + 233, + 237, + 255, + 264, + 273, + 283, + 301, + 329 + ] + } + ], + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 14, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isPlainObject.ts#L14" + } + ], + "indexSignatures": [ + { + "id": 520, + "name": "__index", + "variant": "signature", + "kind": 8192, + "flags": {}, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 14, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isPlainObject.ts#L14" + } + ], + "parameters": [ + { + "id": 521, + "name": "n", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": 180, + "name": "JSONValue", + "package": "js-cool" + } + ], + "name": "Array", + "package": "typescript" + } + ] + }, + { + "id": 173, + "name": "isPlainObject", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 28, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isPlainObject.ts#L28" + } + ], + "signatures": [ + { + "id": 174, + "name": "isPlainObject", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if target is an plain object" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisPlainObject({}) // true\nisPlainObject(window) // false\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is plain Object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 28, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isPlainObject.ts#L28" + } + ], + "parameters": [ + { + "id": 175, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "reference", + "target": 177, + "name": "PlainObject", + "package": "js-cool" + } + } + } + ] + }, + { + "id": 530, + "name": "isRegExp", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isRegExp.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isRegExp.ts#L14" + } + ], + "signatures": [ + { + "id": 531, + "name": "isRegExp", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if target is RegExp" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisRegExp(/\\d/) // true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.15.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is RegExp" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isRegExp.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isRegExp.ts#L14" + } + ], + "parameters": [ + { + "id": 532, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + } + } + } + ] + }, + { + "id": 170, + "name": "isWindow", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isWindow.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isWindow.ts#L15" + } + ], + "signatures": [ + { + "id": 171, + "name": "isWindow", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if target is an window object" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisWindow({}) // false\nisWindow(window) // true\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is Window" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isWindow.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/isWindow.ts#L15" + } + ], + "parameters": [ + { + "id": 172, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Window" + }, + "name": "Window", + "package": "typescript" + } + } + } + ] + }, + { + "id": 764, + "name": "mapTemplate", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/mapTemplate.ts", + "line": 28, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/mapTemplate.ts#L28" + } + ], + "signatures": [ + { + "id": 765, + "name": "mapTemplate", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Replacing specific data in a template string, support " + }, + { + "kind": "code", + "text": "`${xxxx}`" + }, + { + "kind": "text", + "text": " " + }, + { + "kind": "code", + "text": "`{{xxxx}}`" + }, + { + "kind": "text", + "text": " and " + }, + { + "kind": "code", + "text": "`{xxxx}`" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nconst tmp = \"My name is ${name}, I'm ${age} years old.\"\nmapTemplate(tmp, {\n name: 'saqqdy',\n age: 18\n})\n// My name is saqqdy, I'm 18 years old.\n\nmapTemplate(tmp, key => ({ name: 'saqqdy', age: 28 }[key]))\n// My name is saqqdy, I'm 28 years old.\n\nconst tmp = \"My name is {{name}}, I'm {{age}} years old.\"\nmapTemplate(tmp, {\n name: 'saqqdy',\n age: 18\n})\n// My name is saqqdy, I'm 18 years old.\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.9.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/mapTemplate.ts", + "line": 28, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/mapTemplate.ts#L28" + } + ], + "parameters": [ + { + "id": 766, + "name": "tmp", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Template string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 767, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Template data of map function" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "reflection", + "declaration": { + "id": 768, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/mapTemplate.ts", + "line": 30, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/mapTemplate.ts#L30" + } + ], + "signatures": [ + { + "id": 769, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/mapTemplate.ts", + "line": 30, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/mapTemplate.ts#L30" + } + ], + "parameters": [ + { + "id": 770, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 900, + "name": "minus", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/minus.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/minus.ts#L15" + } + ], + "signatures": [ + { + "id": 901, + "name": "minus", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Find the set of differences of multiple arrays that belong to A but not to B/C/D... of the elements of" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nminus([1, 2], [2, '33'], [2, 4]) // [1]\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "2.2.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- new array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/minus.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/minus.ts#L15" + } + ], + "typeParameters": [ + { + "id": 902, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 903, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arguments" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "reference", + "target": 902, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 902, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ] + }, + { + "id": 715, + "name": "nextIndex", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/nextIndex.ts", + "line": 32, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/nextIndex.ts#L32" + } + ], + "signatures": [ + { + "id": 716, + "name": "nextIndex", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Return the next zIndex value" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nnextIndex()\n// 1\n\nnextIndex(1000)\n// 1001\n\nnextIndex(10, 100)\n// 100\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- number" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/nextIndex.ts", + "line": 32, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/nextIndex.ts#L32" + } + ], + "parameters": [ + { + "id": 717, + "name": "min", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, minimum value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "5000" + }, + { + "id": 718, + "name": "max", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, maximum value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "10000" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + }, + { + "id": 724, + "name": "Version", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 725, + "name": "major", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 2, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/nextVersion.ts#L2" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 726, + "name": "minor", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 3, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/nextVersion.ts#L3" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 727, + "name": "patch", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 4, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/nextVersion.ts#L4" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 728, + "name": "preid", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 5, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/nextVersion.ts#L5" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 729, + "name": "release", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 6, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/nextVersion.ts#L6" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 725, + 726, + 727, + 728, + 729 + ] + } + ], + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 1, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/nextVersion.ts#L1" + } + ] + }, + { + "id": 719, + "name": "nextVersion", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 26, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/nextVersion.ts#L26" + } + ], + "signatures": [ + { + "id": 720, + "name": "nextVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "return the next version, Only version types with no more than 3 digits are supported. (Follow the npm version rules)" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nnextVersion('1.2.33') // 1.2.34\n\nnextVersion('1.2.33', 'major') // 2.0.0\n\nnextVersion('1.2.33', 'premajor', 'alpha') // 2.0.0-alpha.1\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.10.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- new version" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 26, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/nextVersion.ts#L26" + } + ], + "parameters": [ + { + "id": 721, + "name": "version", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "version(like: 1.0.0)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 722, + "name": "type", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, version type" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "major" + }, + { + "type": "literal", + "value": "minor" + }, + { + "type": "literal", + "value": "patch" + }, + { + "type": "literal", + "value": "premajor" + }, + { + "type": "literal", + "value": "preminor" + }, + { + "type": "literal", + "value": "prepatch" + }, + { + "type": "literal", + "value": "prerelease" + } + ] + } + }, + { + "id": 723, + "name": "preid", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, prerelease id" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "''" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 847, + "name": "openUrl", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/openUrl.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/openUrl.ts#L7" + } + ], + "signatures": [ + { + "id": 848, + "name": "openUrl", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Open link in new tab (file jump download if browser can't parse)" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.6" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/openUrl.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/openUrl.ts#L7" + } + ], + "parameters": [ + { + "id": 849, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "link" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 576, + "name": "OsVersion", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 577, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/osVersion.ts", + "line": 4, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/osVersion.ts#L4" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "Windows" + }, + { + "type": "literal", + "value": "MacOS" + }, + { + "type": "literal", + "value": "Android" + }, + { + "type": "literal", + "value": "iOS" + }, + { + "type": "literal", + "value": "WindowsPhone" + }, + { + "type": "literal", + "value": "Debian" + }, + { + "type": "literal", + "value": "WebOS" + }, + { + "type": "literal", + "value": "Harmony" + } + ] + } + }, + { + "id": 578, + "name": "version", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/osVersion.ts", + "line": 5, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/osVersion.ts#L5" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 577, + 578 + ] + } + ], + "sources": [ + { + "fileName": "src/osVersion.ts", + "line": 3, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/osVersion.ts#L3" + } + ] + }, + { + "id": 573, + "name": "osVersion", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/osVersion.ts", + "line": 36, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/osVersion.ts#L36" + } + ], + "signatures": [ + { + "id": 574, + "name": "osVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the system name and version" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```\n// ipad => 'Mozilla/5.0 (iPad; CPU OS 13_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/87.0.4280.77 Mobile/15E148 Safari/604.1'\nosVersion() // \\{ name: 'iOS', version: '13.3' \\}\n\n// iphone => 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1'\nosVersion() // \\{ name: 'iOS', version: '13.2.3' \\}\n\n// mac os => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'\nosVersion() // \\{ name: 'MacOS', version: '10.15.7' \\}\n\n// windows => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'\nosVersion() // \\{ name: 'Windows', version: '10.0' \\}\n\n// windows xp => 'Mozilla/5.0 (Windows NT 5.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'\nosVersion() // \\{ name: 'Windows', version: 'XP' \\}\n\n// windows phone => 'Mozilla/5.0 (Windows Phone OS 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36'\nosVersion() // \\{ name: 'WindowsPhone', version: '10.0' \\}\n\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.1.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "OsVersion|null" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/osVersion.ts", + "line": 36, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/osVersion.ts#L36" + } + ], + "parameters": [ + { + "id": 575, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua or any ua like string, allowed to be undefined, default is navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 576, + "name": "OsVersion", + "package": "js-cool" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + }, + { + "id": 589, + "name": "parseUrlParam", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/parseUrlParam.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/parseUrlParam.ts#L19" + } + ], + "signatures": [ + { + "id": 590, + "name": "parseUrlParam", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parse url params" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nparseUrlParam('?key1=100&key2=true&key3=null&key4=undefined&key5=NaN&key6=10.888&key7=Infinity&key8=test')\n// \\{\"key1\":\"100\",\"key2\":\"true\",\"key3\":\"null\",\"key4\":\"undefined\",\"key5\":\"NaN\",\"key6\":\"10.888\",\"key7\":\"Infinity\",\"key8\":\"test\"\\}\n\nparseUrlParam('?key1=100&key2=true&key3=null&key4=undefined&key5=NaN&key6=10.888&key7=Infinity&key8=test', true)\n// \\{\"key1\":100,\"key2\":true,\"key3\":null,\"key5\":NaN,\"key6\":10.888,\"key7\":Infinity,\"key8\":\"test\"\\}\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/parseUrlParam.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/parseUrlParam.ts#L19" + } + ], + "parameters": [ + { + "id": 591, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "url string (like: ?key1=value1&key2=value2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 592, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts a specific string to a corresponding value (Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + }, + { + "id": 60, + "name": "pattern", + "variant": "declaration", + "kind": 32, + "flags": { + "isConst": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Collection of common regular expressions" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "It will be refactored and renamed patterns in the next major release." + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 8, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L8" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 61, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 62, + "name": "any", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 9, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L9" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 63, + "name": "number", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 10, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L10" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 64, + "name": "string", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 11, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L11" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 65, + "name": "postcode", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 12, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L12" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 66, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 13, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L13" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 67, + "name": "username", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 14, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L14" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 68, + "name": "float", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 15, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L15" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 69, + "name": "email", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 16, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L16" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 70, + "name": "mobile", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 19, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L19" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 71, + "name": "chinese", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 20, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L20" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 72, + "name": "tel", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 21, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L21" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 73, + "name": "qq", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 22, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L22" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 74, + "name": "pass", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 23, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L23" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 75, + "name": "json", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 24, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L24" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 76, + "name": "arrjson", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 25, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L25" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 77, + "name": "array", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 26, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L26" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 78, + "name": "isjson", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 27, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L27" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 79, + "name": "textarea", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 28, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L28" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 80, + "name": "mac", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 30, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L30" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 81, + "name": "ip4", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 31, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L31" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 82, + "name": "ip4_pri", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 32, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L32" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82 + ] + } + ], + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 8, + "character": 16, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/pattern.ts#L8" + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 941, + "name": "preloader", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/preloader.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/preloader.ts#L7" + }, + { + "fileName": "src/preloader.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/preloader.ts#L8" + }, + { + "fileName": "src/preloader.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/preloader.ts#L9" + } + ], + "signatures": [ + { + "id": 942, + "name": "preloader", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Image preloading" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.5.0" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/preloader.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/preloader.ts#L7" + } + ], + "parameters": [ + { + "id": 943, + "name": "images", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "images url" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "HTMLImageElement" + }, + "name": "HTMLImageElement", + "package": "typescript" + } + }, + { + "id": 944, + "name": "preloader", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Image preloading" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.5.0" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/preloader.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/preloader.ts#L8" + } + ], + "parameters": [ + { + "id": 945, + "name": "images", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "images url" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "HTMLImageElement" + }, + "name": "HTMLImageElement", + "package": "typescript" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + }, + { + "id": 753, + "name": "promiseFactory", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/promiseFactory.ts", + "line": 32, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/promiseFactory.ts#L32" + } + ], + "signatures": [ + { + "id": 754, + "name": "promiseFactory", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Convert an object to a promise like api" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nimport { promiseFactory, waiting } from 'js-cool'\n\nfunction promise() {\n const stats = {\n value: 100\n }\n\n const resolver = () =>\n new Promise(resolve =>\n waiting(2000).then(() => {\n stats.value = 200\n resolve(stats)\n })\n )\n\n return promiseFactory(stats, resolver)\n}\n\nconst res = promise() // res => 100\nconst res = await promise() // res => 200\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.10.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/promiseFactory.ts", + "line": 32, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/promiseFactory.ts#L32" + } + ], + "typeParameters": [ + { + "id": 755, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "parameters": [ + { + "id": 756, + "name": "original", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "original object" + } + ] + }, + "type": { + "type": "reference", + "target": 755, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 757, + "name": "resolver", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "resolver function" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 758, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/promiseFactory.ts", + "line": 34, + "character": 11, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/promiseFactory.ts#L34" + } + ], + "signatures": [ + { + "id": 759, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/promiseFactory.ts", + "line": 34, + "character": 11, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/promiseFactory.ts#L34" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "reference", + "target": 755, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "PromiseLike" + }, + "typeArguments": [ + { + "type": "reference", + "target": 755, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "PromiseLike", + "package": "typescript" + } + ] + } + } + ] + }, + { + "id": 747, + "name": "PunctualTimerReturns", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 748, + "name": "count", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 2, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L2" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 749, + "name": "timer", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 3, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L3" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 750, + "name": "clear", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 4, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L4" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 751, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 4, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L4" + } + ], + "signatures": [ + { + "id": 752, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 4, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L4" + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 748, + 749, + 750 + ] + } + ], + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 1, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L1" + } + ] + }, + { + "id": 730, + "name": "punctualTimer", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L22" + }, + { + "fileName": "src/punctualTimer.ts", + "line": 27, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L27" + }, + { + "fileName": "src/punctualTimer.ts", + "line": 32, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L32" + } + ], + "signatures": [ + { + "id": 731, + "name": "punctualTimer", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "punctual setInterval" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst printDate = () => console.log(new Date())\nconst timer = punctualTimer(printDate, 1000)\nconsole.log(timer.count) // 10\ntimer.clear() // clear punctualTimer or use clearTimeout(timer.timer)\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.18.0" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L22" + } + ], + "typeParameters": [ + { + "id": 732, + "name": "TArgs", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "parameters": [ + { + "id": 733, + "name": "handler", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function to be executed after the timer expires." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 734, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 23, + "character": 10, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L23" + } + ], + "signatures": [ + { + "id": 735, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 23, + "character": 10, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L23" + } + ], + "parameters": [ + { + "id": 736, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 737, + "name": "delay", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The time, in milliseconds that the timer should wait before the specified function or code is executed. If this parameter is omitted, a value of 0 is used, meaning execute \"immediately\", or more accurately, the next event cycle." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 738, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Additional arguments which are passed through to the function specified by handler." + } + ] + }, + "type": { + "type": "reference", + "target": 732, + "name": "TArgs", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 747, + "name": "PunctualTimerReturns", + "package": "js-cool" + } + }, + { + "id": 739, + "name": "punctualTimer", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "punctual setInterval" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst printDate = () => console.log(new Date())\nconst timer = punctualTimer(printDate, 1000)\nconsole.log(timer.count) // 10\ntimer.clear() // clear punctualTimer or use clearTimeout(timer.timer)\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.18.0" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 27, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L27" + } + ], + "typeParameters": [ + { + "id": 740, + "name": "TArgs", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "parameters": [ + { + "id": 741, + "name": "handler", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function to be executed after the timer expires." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 742, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 28, + "character": 10, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L28" + } + ], + "signatures": [ + { + "id": 743, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 28, + "character": 10, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/punctualTimer.ts#L28" + } + ], + "parameters": [ + { + "id": 744, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 740, + "name": "TArgs", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 745, + "name": "delay", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The time, in milliseconds that the timer should wait before the specified function or code is executed. If this parameter is omitted, a value of 0 is used, meaning execute \"immediately\", or more accurately, the next event cycle." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 746, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Additional arguments which are passed through to the function specified by handler." + } + ] + }, + "type": { + "type": "reference", + "target": 740, + "name": "TArgs", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 747, + "name": "PunctualTimerReturns", + "package": "js-cool" + } + } + ] + }, + { + "id": 110, + "name": "randomColor", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/randomColor.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomColor.ts#L25" + } + ], + "signatures": [ + { + "id": 111, + "name": "randomColor", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Generate random hexadecimal colors" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nrandomColor()\n// #bf444b\n\nrandomColor(200)\n// #d6e9d7\n\nrandomColor(200, 255)\n// #d3f9e4\n\nrandomColor([0, 0, 0], [255, 255, 255])\n// #d6e9d7\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.5.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/randomColor.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomColor.ts#L25" + } + ], + "parameters": [ + { + "id": 112, + "name": "min", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the minimum value of the random numbers, eg: [10, 10, 10]" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "tuple", + "elements": [ + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + ] + } + }, + { + "id": 113, + "name": "max", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the maximum value of the random number, eg: [255, 255, 255]" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "tuple", + "elements": [ + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 114, + "name": "randomNumber", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/randomNumber.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomNumber.ts#L17" + } + ], + "signatures": [ + { + "id": 115, + "name": "randomNumber", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get a random integer" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nrandomNumber()\n// 8\n\nrandomNumber(0.1, 0.9)\n// 0.8\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- random number" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/randomNumber.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomNumber.ts#L17" + } + ], + "parameters": [ + { + "id": 116, + "name": "min", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the minimum value of the random number" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "1" + }, + { + "id": 117, + "name": "max", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the maximum value of the random number" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "10" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + }, + { + "id": 118, + "name": "randomNumbers", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/randomNumbers.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomNumbers.ts#L24" + } + ], + "signatures": [ + { + "id": 119, + "name": "randomNumbers", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Generate n random integers that sum to a fixed sum" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nrandomNumbers()\n// [8]\n\nrandomNumbers(4, 5)\n// [1, 1, 2, 1]\n\nrandomNumbers(4, 5, false)\n// [0, 1, 2, 2]\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.4.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- numbers" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/randomNumbers.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomNumbers.ts#L24" + } + ], + "parameters": [ + { + "id": 120, + "name": "n", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Number of generated integers, default: 1" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 121, + "name": "sum", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Sum of generated integers, default: 100" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 122, + "name": "noZero", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "number" + } + } + } + ] + }, + { + "id": 135, + "name": "RandomStringCharType", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 5, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomString.ts#L5" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "uppercase" + }, + { + "type": "literal", + "value": "lowercase" + }, + { + "type": "literal", + "value": "number" + }, + { + "type": "literal", + "value": "special" + } + ] + } + }, + { + "id": 130, + "name": "RandomStringOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 131, + "name": "length", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 8, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomString.ts#L8" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 132, + "name": "charTypes", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 9, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomString.ts#L9" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 135, + "name": "RandomStringCharType", + "package": "js-cool" + }, + { + "type": "reference", + "target": 995, + "typeArguments": [ + { + "type": "reference", + "target": 135, + "name": "RandomStringCharType", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + ] + } + }, + { + "id": 133, + "name": "noConfuse", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Elimination of confusing characters: oOLl,9gq,Vv,Uu,I1" + } + ] + }, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 13, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomString.ts#L13" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 134, + "name": "strict", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The generated random string must contain each of the listed character types" + } + ] + }, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 17, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomString.ts#L17" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 131, + 132, + 133, + 134 + ] + } + ], + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 7, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomString.ts#L7" + } + ] + }, + { + "id": 123, + "name": "randomString", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 78, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomString.ts#L78" + }, + { + "fileName": "src/randomString.ts", + "line": 79, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomString.ts#L79" + }, + { + "fileName": "src/randomString.ts", + "line": 83, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomString.ts#L83" + } + ], + "signatures": [ + { + "id": 124, + "name": "randomString", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get a random string" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\n// 1. No parameters are passed, a 32-bit (possibly) string containing upper and lower case letters and numbers is generated by default\nrandomString()\n// PVSjz902EqYbmxaLtvDnggtnlvt5uFTZ\n\n// 2. Generate a 16-bit random string\nrandomString(16)\n// coTgZy0mqqMJ1sMM\n\n// 3. Same effect as #2 above\nrandomString({\n\tlength: 16\n})\n// ngCI5aPqJm84t90d\n\n// 4. Generate containing special characters (old way of passing values, not recommended)\nrandomString(true)\n// 0Uby@op3B-sK5]dHl4S|15As.OlHiNXd\n\n// 5. Same effect as #4 above (recommended)\nrandomString({\n\tcharTypes: ['uppercase', 'lowercase', 'number', 'special']\n})\n// m,2^vpkrE,F,DbcSFk0=vr&@DJ27j9XK\n\n// 6. Same effect as #4 above, Limit string length to 16 bits\nrandomString(16, true)\n// dXz[J_sYM^3d8fnA\n\n// 7. Generate a 16-bit random number\nrandomString({\n\tlength: 16,\n\tcharTypes: 'number'\n})\n// 7450026301030286\n\n// 8. Elimination of confusing characters: oOLl,9gq,Vv,Uu,I1\nrandomString({\n\tlength: 16,\n\tnoConfuse: true\n})\n// 8DEGna8ppC4mqyew\n\n// 9. The generated random string must contain at least 1 character of each type of character specified, e.g. to generate a 16-bit password that must contain upper and lower case letters, numbers, and special characters.\nrandomString({\n\tlength: 16,\n\tstrict: true\n})\n// PFYAPD5KFqOHIADL\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- random string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 78, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomString.ts#L78" + } + ], + "parameters": [ + { + "id": 125, + "name": "len", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the length of the random string that needs to be obtained" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 126, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, randomString options" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reference", + "target": 130, + "name": "RandomStringOptions", + "package": "js-cool" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 127, + "name": "randomString", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get a random string" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\n// 1. No parameters are passed, a 32-bit (possibly) string containing upper and lower case letters and numbers is generated by default\nrandomString()\n// PVSjz902EqYbmxaLtvDnggtnlvt5uFTZ\n\n// 2. Generate a 16-bit random string\nrandomString(16)\n// coTgZy0mqqMJ1sMM\n\n// 3. Same effect as #2 above\nrandomString({\n\tlength: 16\n})\n// ngCI5aPqJm84t90d\n\n// 4. Generate containing special characters (old way of passing values, not recommended)\nrandomString(true)\n// 0Uby@op3B-sK5]dHl4S|15As.OlHiNXd\n\n// 5. Same effect as #4 above (recommended)\nrandomString({\n\tcharTypes: ['uppercase', 'lowercase', 'number', 'special']\n})\n// m,2^vpkrE,F,DbcSFk0=vr&@DJ27j9XK\n\n// 6. Same effect as #4 above, Limit string length to 16 bits\nrandomString(16, true)\n// dXz[J_sYM^3d8fnA\n\n// 7. Generate a 16-bit random number\nrandomString({\n\tlength: 16,\n\tcharTypes: 'number'\n})\n// 7450026301030286\n\n// 8. Elimination of confusing characters: oOLl,9gq,Vv,Uu,I1\nrandomString({\n\tlength: 16,\n\tnoConfuse: true\n})\n// 8DEGna8ppC4mqyew\n\n// 9. The generated random string must contain at least 1 character of each type of character specified, e.g. to generate a 16-bit password that must contain upper and lower case letters, numbers, and special characters.\nrandomString({\n\tlength: 16,\n\tstrict: true\n})\n// PFYAPD5KFqOHIADL\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- random string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 79, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/randomString.ts#L79" + } + ], + "parameters": [ + { + "id": 128, + "name": "len", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the length of the random string that needs to be obtained" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reference", + "target": 130, + "name": "RandomStringOptions", + "package": "js-cool" + } + ] + } + }, + { + "id": 129, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, randomString options" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reference", + "target": 130, + "name": "RandomStringOptions", + "package": "js-cool" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 708, + "name": "removeEvent", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/removeEvent.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/removeEvent.ts#L11" + } + ], + "signatures": [ + { + "id": 709, + "name": "removeEvent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "removeEvent removes the event delegate created by addEvent" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/removeEvent.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/removeEvent.ts#L11" + } + ], + "parameters": [ + { + "id": 710, + "name": "element", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "js dom object" + } + ] + }, + "type": { + "type": "reference", + "target": 986, + "name": "AnyObject", + "package": "js-cool" + } + }, + { + "id": 711, + "name": "type", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The type of the event. No need to add on" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 712, + "name": "handler", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Callback method." + } + ] + }, + "type": { + "type": "reference", + "target": 987, + "name": "AnyFunction", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 602, + "name": "safeParse", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/safeParse.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/safeParse.ts#L16" + } + ], + "signatures": [ + { + "id": 603, + "name": "safeParse", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Secure parsing of JSON strings" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nsafeParse('100')\n// 100\n\nsafeParse('{\"a\":\"undefined\",\"b\":\"NaN\",\"c\":\"Infinity\",\"d\":\"9007199254740993\"}')\n// { b: NaN, c: Infinity, d: 9007199254740993n }\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- JSON Object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/safeParse.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/safeParse.ts#L16" + } + ], + "parameters": [ + { + "id": 604, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "JSON string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 605, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to convert data, default: true" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "true" + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 606, + "name": "safeStringify", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/safeStringify.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/safeStringify.ts#L25" + } + ], + "signatures": [ + { + "id": 607, + "name": "safeStringify", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Secure stringify of JSON Object" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nsafeStringify(100)\n// \"100\"\n\nsafeStringify(undefined)\n// \"undefined\"\n\nsafeStringify(NaN)\n// \"NaN\"\n\nsafeStringify(Infinity)\n// \"Infinity\"\n\nsafeStringify({ a: undefined, b: NaN, c: Infinity, d: BigInt(Number.MAX_SAFE_INTEGER) + 2n })\n// {\"a\":\"undefined\",\"b\":\"NaN\",\"c\":\"Infinity\",\"d\":\"9007199254740993\"}\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- JSON String" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/safeStringify.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/safeStringify.ts#L25" + } + ], + "parameters": [ + { + "id": 608, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "JSON Object" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 609, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether to convert data, default: true" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "true" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 842, + "name": "SearchKeySet", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 843, + "name": "childName", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/searchObject.ts", + "line": 2, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/searchObject.ts#L2" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 844, + "name": "keyName", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/searchObject.ts", + "line": 3, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/searchObject.ts#L3" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 843, + 844 + ] + } + ], + "sources": [ + { + "fileName": "src/searchObject.ts", + "line": 1, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/searchObject.ts#L1" + } + ], + "indexSignatures": [ + { + "id": 845, + "name": "__index", + "variant": "signature", + "kind": 8192, + "flags": {}, + "sources": [ + { + "fileName": "src/searchObject.ts", + "line": 4, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/searchObject.ts#L4" + } + ], + "parameters": [ + { + "id": 846, + "name": "prop", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 836, + "name": "searchObject", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/searchObject.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/searchObject.ts#L17" + } + ], + "signatures": [ + { + "id": 837, + "name": "searchObject", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "tree object depth lookup" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the queried array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/searchObject.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/searchObject.ts#L17" + } + ], + "parameters": [ + { + "id": 838, + "name": "tree", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "tree object" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "object" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + }, + { + "id": 839, + "name": "expression", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "required Query method" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 840, + "name": "keySet", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional Default subclass name, query name" + } + ] + }, + "type": { + "type": "reference", + "target": 842, + "name": "SearchKeySet", + "package": "js-cool" + } + }, + { + "id": 841, + "name": "number", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional Number of lookups, if not passed, query all" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "0" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ] + }, + { + "id": 647, + "name": "setCache", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/setCache.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/setCache.ts#L25" + } + ], + "signatures": [ + { + "id": 648, + "name": "setCache", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the cache, if the deposited is Object, the retrieved is also Object, no need to convert again" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// set boolean\nsetCache('boolean', true)\n\n// set object\nsetCache('object', { name: 'saqqdy' })\n\n// set number, expires in 20 seconds\nsetCache('number', 666, 20)\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/setCache.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/setCache.ts#L25" + } + ], + "typeParameters": [ + { + "id": 649, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 650, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cache name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 651, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cache data, can be passed directly into Object" + } + ] + }, + "type": { + "type": "reference", + "target": 649, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 652, + "name": "seconds", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cache time (seconds)" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 673, + "name": "setCookie", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/setCookie.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/setCookie.ts#L22" + } + ], + "signatures": [ + { + "id": 674, + "name": "setCookie", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "setCookie method for writing cookies" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// expires in 86400 seconds\nsetCookie('token', 'xxxxxx')\n\n// set to path\nsetCookie('token', 'xxxxxx', 20, '/app')\n\n// enable samesite\nsetCookie('number', 666, 20, '/', false)\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/setCookie.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/setCookie.ts#L22" + } + ], + "typeParameters": [ + { + "id": 675, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "intrinsic", + "name": "boolean" + } + ] + } + } + ], + "parameters": [ + { + "id": 676, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cookie name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 677, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Set the value to be stored, either as an object or as a string" + } + ] + }, + "type": { + "type": "reference", + "target": 675, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 678, + "name": "seconds", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cookie validity default 1 day" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 679, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "path, default '/'" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "'/'" + }, + { + "id": 680, + "name": "samesite", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SameSite, default true" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "true" + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 934, + "name": "setProperty", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/setProperty.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/setProperty.ts#L24" + } + ], + "signatures": [ + { + "id": 935, + "name": "setProperty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Set array, object property values based on path strings" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst target = {\n a: 1,\n b: [{\n c: 2\n }]\n}\n\nsetProperty(target, 'a', 2)\n\nsetProperty(target, 'b[0].c', 3)\n\nsetProperty(target, () => 'a', 100)\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "2.7.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the corresponding value" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/setProperty.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/setProperty.ts#L24" + } + ], + "parameters": [ + { + "id": 936, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "target array, object" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 937, + "name": "prop", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "set target, support function, 'a' | 'a[1].c'" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reflection", + "declaration": { + "id": 938, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/setProperty.ts", + "line": 24, + "character": 49, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/setProperty.ts#L24" + } + ], + "signatures": [ + { + "id": 939, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/setProperty.ts", + "line": 24, + "character": 51, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/setProperty.ts#L24" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 940, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 659, + "name": "setSession", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/setSession.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/setSession.ts#L25" + } + ], + "signatures": [ + { + "id": 660, + "name": "setSession", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Write sessionStorage" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// set boolean\nsetSession('boolean', true)\n\n// set object\nsetSession('object', { name: 'saqqdy' })\n\n// set number, expires in 20 seconds\nsetSession('number', 666, 20)\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/setSession.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/setSession.ts#L25" + } + ], + "typeParameters": [ + { + "id": 661, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 662, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 663, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Set the value to be stored, either as an object or as a string" + } + ] + }, + "type": { + "type": "reference", + "target": 661, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 664, + "name": "seconds", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the valid time" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 136, + "name": "shuffle", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/shuffle.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/shuffle.ts#L23" + }, + { + "fileName": "src/shuffle.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/shuffle.ts#L24" + }, + { + "fileName": "src/shuffle.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/shuffle.ts#L25" + } + ], + "signatures": [ + { + "id": 137, + "name": "shuffle", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "shuffling algorithm, Reordering arrays or strings" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nconst str = 'abcde'\nconst arr = [1,2,3]\n\nshuffle(str)\n// cdbse\n\nshuffle(arr)\n// [3, 1, 2]\n\nshuffle(arr, 2)\n// [3, 2]\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.4.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/shuffle.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/shuffle.ts#L23" + } + ], + "parameters": [ + { + "id": 138, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrays or strings" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 139, + "name": "size", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "new array or string length" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 140, + "name": "shuffle", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "shuffling algorithm, Reordering arrays or strings" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nconst str = 'abcde'\nconst arr = [1,2,3]\n\nshuffle(str)\n// cdbse\n\nshuffle(arr)\n// [3, 1, 2]\n\nshuffle(arr, 2)\n// [3, 2]\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.4.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/shuffle.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/shuffle.ts#L24" + } + ], + "typeParameters": [ + { + "id": 141, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + }, + "default": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + } + ], + "parameters": [ + { + "id": 142, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrays or strings" + } + ] + }, + "type": { + "type": "reference", + "target": 141, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 143, + "name": "size", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "new array or string length" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "target": 141, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ] + }, + { + "id": 824, + "name": "sortPinyin", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/sortPinyin.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/sortPinyin.ts#L22" + } + ], + "signatures": [ + { + "id": 825, + "name": "sortPinyin", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Sort Chinese by Chinese phonetic alphabet" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst items = ['啊我', '波拉', 'abc', 0, 3, '10', ',11', 13, null, '阿吧', 'ABB', 'BDD', 'ACD', 'ä']\n\nitems.sort(sortPinyin)\n// [ \",11\", 0, \"10\", 13, 3, \"ä\", \"ABB\", \"abc\", \"ACD\", \"BDD\", null, \"阿吧\", \"啊我\", \"波拉\" ]\n\nitems.sort((a, b) => sortPinyin(a, b, { ignorePunctuation: true, numeric:true }))\n// [ 0, 3, \"10\", \",11\", 13, \"ä\", \"ABB\", \"abc\", \"ACD\", \"BDD\", null, \"阿吧\", \"啊我\", \"波拉\" ]\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.14.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- number" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/sortPinyin.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/sortPinyin.ts#L22" + } + ], + "typeParameters": [ + { + "id": 826, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 827, + "name": "P", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + } + ], + "parameters": [ + { + "id": 828, + "name": "a", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The first element for comparison." + } + ] + }, + "type": { + "type": "reference", + "target": 826, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 829, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The second element for comparison." + } + ] + }, + "type": { + "type": "reference", + "target": 827, + "name": "P", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 830, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An object adjusting the output format." + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Intl.CollatorOptions" + }, + "name": "CollatorOptions", + "package": "typescript", + "qualifiedName": "Intl.CollatorOptions" + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + }, + { + "id": 814, + "name": "sorter", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/sorter.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/sorter.ts#L22" + } + ], + "signatures": [ + { + "id": 815, + "name": "sorter", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Sorter factory function" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst items = ['啊我', '波拉', 'abc', 0, 3, '10', ',11', 13, null, '阿吧', 'ABB', 'BDD', 'ACD', 'ä']\n\nitems.sort(\n\tsorter('zh-Hans-CN', {\n\t\tignorePunctuation: true,\n\t\tsensitivity: 'variant',\n\t\tnumeric: true\n\t})\n)\n// [ 0, 3, \"10\", \",11\", 13, \"ä\", \"ABB\", \"abc\", \"ACD\", \"BDD\", null, \"阿吧\", \"啊我\", \"波拉\" ]\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.14.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- compare function" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/sorter.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/sorter.ts#L22" + } + ], + "parameters": [ + { + "id": 816, + "name": "locales", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A string with a BCP 47 language tag, or an array of such strings." + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 817, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An object adjusting the output format." + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Intl.CollatorOptions" + }, + "name": "CollatorOptions", + "package": "typescript", + "qualifiedName": "Intl.CollatorOptions" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 818, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/sorter.ts", + "line": 23, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/sorter.ts#L23" + } + ], + "signatures": [ + { + "id": 819, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/sorter.ts", + "line": 23, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/sorter.ts#L23" + } + ], + "typeParameters": [ + { + "id": 820, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 821, + "name": "P", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + } + ], + "parameters": [ + { + "id": 822, + "name": "a", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 820, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 823, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 821, + "name": "P", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } + } + } + ] + }, + { + "id": 598, + "name": "SpliceUrlParamOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 599, + "name": "covert", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/spliceUrlParam.ts", + "line": 2, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/spliceUrlParam.ts#L2" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 600, + "name": "encode", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/spliceUrlParam.ts", + "line": 3, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/spliceUrlParam.ts#L3" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 601, + "name": "withQuestionsMark", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/spliceUrlParam.ts", + "line": 4, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/spliceUrlParam.ts#L4" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 599, + 600, + 601 + ] + } + ], + "sources": [ + { + "fileName": "src/spliceUrlParam.ts", + "line": 1, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/spliceUrlParam.ts#L1" + } + ] + }, + { + "id": 593, + "name": "spliceUrlParam", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/spliceUrlParam.ts", + "line": 29, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/spliceUrlParam.ts#L29" + } + ], + "signatures": [ + { + "id": 594, + "name": "spliceUrlParam", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "splice url params" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nspliceUrlParam(\\{\"key1\":\"100\",\"key2\":true,\"key3\":null,\"key4\":undefined,\"key5\":\"测试\"\\})\n// ?key1=100&key2=true&key3=null&key4=undefined&key5=测试\n\nspliceUrlParam(\\{\"key1\":\"100\",\"key2\":true,\"key3\":null,\"key4\":undefined,\"key5\":\"测试\"\\}, \\{ encode: true \\})\n// ?key1=100&key2=true&key3=null&key4=undefined&key5=%E6%B5%8B%E8%AF%95\n\nspliceUrlParam(\\{\"key1\":\"100\",\"key2\":true,\"key3\":null,\"key4\":undefined\\}, true)\n// ?key1=100&key2=true&key3=&key4=\n\nspliceUrlParam(\\{\"key1\":\"100\",\"key2\":true,\"key3\":null,\"key4\":undefined\\}, \\{ covert: true, withQuestionsMark: false \\})\n// key1=100&key2=true&key3=&key4=\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.3.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/spliceUrlParam.ts", + "line": 29, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/spliceUrlParam.ts#L29" + } + ], + "typeParameters": [ + { + "id": 595, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 596, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "json object" + } + ] + }, + "type": { + "type": "reference", + "target": 595, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 597, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Convert a null value type (null/undefined/) to an empty string, default: false" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reference", + "target": 598, + "name": "SpliceUrlParamOptions", + "package": "js-cool" + } + ] + }, + "defaultValue": "false" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 696, + "name": "stopBubble", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/stopBubble.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/stopBubble.ts#L8" + } + ], + "signatures": [ + { + "id": 697, + "name": "stopBubble", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Block bubbling" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/stopBubble.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/stopBubble.ts#L8" + } + ], + "parameters": [ + { + "id": 698, + "name": "e", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "dom's event object" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Event" + }, + "name": "Event", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 699, + "name": "stopDefault", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/stopDefault.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/stopDefault.ts#L8" + } + ], + "signatures": [ + { + "id": 700, + "name": "stopDefault", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Block default events" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.2" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/stopDefault.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/stopDefault.ts#L8" + } + ], + "parameters": [ + { + "id": 701, + "name": "e", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "dom's event object" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Event" + }, + "name": "Event", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 980, + "name": "svgToBlob", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/svgToBlob.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/svgToBlob.ts#L8" + } + ], + "signatures": [ + { + "id": 981, + "name": "svgToBlob", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "svg to blob" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- blob" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/svgToBlob.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/svgToBlob.ts#L8" + } + ], + "parameters": [ + { + "id": 982, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "svg string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ] + }, + { + "id": 853, + "name": "toThousands", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/toThousands.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/toThousands.ts#L19" + } + ], + "signatures": [ + { + "id": 854, + "name": "toThousands", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Digital thousandths division" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ntoThousands(10000000222)\n// 10,000,000,222\n\ntoThousands(100.2232323)\n// 100.2232323\n\ntoThousands(null)\n// ''\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "3.0.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the split string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/toThousands.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/toThousands.ts#L19" + } + ], + "parameters": [ + { + "id": 855, + "name": "num", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "input number" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 83, + "name": "trim", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/trim.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/trim.ts#L9" + } + ], + "signatures": [ + { + "id": 84, + "name": "trim", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Remove leading and trailing spaces from strings" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "will be removed in the next major release." + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the new string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/trim.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/trim.ts#L9" + } + ], + "parameters": [ + { + "id": 85, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 986, + "name": "AnyObject", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 1, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/types.ts#L1" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + }, + "extendedBy": [ + { + "type": "reference", + "target": 987, + "name": "AnyFunction" + } + ] + }, + { + "id": 987, + "name": "AnyFunction", + "variant": "declaration", + "kind": 256, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 3, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/types.ts#L3" + } + ], + "signatures": [ + { + "id": 988, + "name": "AnyFunction", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 4, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/types.ts#L4" + } + ], + "parameters": [ + { + "id": 989, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "indexSignatures": [ + { + "id": 990, + "name": "__index", + "variant": "signature", + "kind": 8192, + "flags": {}, + "parameters": [ + { + "id": 991, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 986, + "name": "AnyObject", + "package": "js-cool" + } + ] + }, + { + "id": 992, + "name": "ArrayOne", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 993, + "name": "0", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 8, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/types.ts#L8" + } + ], + "type": { + "type": "reference", + "target": 994, + "name": "T", + "package": "js-cool", + "qualifiedName": "ArrayOne.T", + "refersToTypeParameter": true + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 993 + ] + } + ], + "sources": [ + { + "fileName": "src/types.ts", + "line": 7, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/types.ts#L7" + } + ], + "typeParameters": [ + { + "id": 994, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ] + }, + { + "id": 995, + "name": "ArrayOneMore", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 11, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/types.ts#L11" + } + ], + "typeParameters": [ + { + "id": 996, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "reference", + "target": 992, + "typeArguments": [ + { + "type": "reference", + "target": 996, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "ArrayOne", + "package": "js-cool" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": 996, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ] + } + }, + { + "id": 997, + "name": "ArrayTwoMore", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 13, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/types.ts#L13" + } + ], + "typeParameters": [ + { + "id": 1001, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 998, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 999, + "name": "0", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 14, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/types.ts#L14" + } + ], + "type": { + "type": "reference", + "target": 1001, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1000, + "name": "1", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 15, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/types.ts#L15" + } + ], + "type": { + "type": "reference", + "target": 1001, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 999, + 1000 + ] + } + ], + "sources": [ + { + "fileName": "src/types.ts", + "line": 13, + "character": 30, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/types.ts#L13" + } + ] + } + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": 1001, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ] + } + }, + { + "id": 1002, + "name": "PickRequired", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 18, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/types.ts#L18" + } + ], + "typeParameters": [ + { + "id": 1003, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 1004, + "name": "K", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "target": 1003, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "mapped", + "parameter": "P", + "parameterType": { + "type": "reference", + "target": 1004, + "name": "K", + "package": "js-cool", + "refersToTypeParameter": true + }, + "templateType": { + "type": "indexedAccess", + "indexType": { + "type": "reference", + "target": { + "sourceFileName": "src/types.ts", + "qualifiedName": "P" + }, + "name": "P", + "package": "js-cool", + "refersToTypeParameter": true + }, + "objectType": { + "type": "reference", + "target": 1003, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + "optionalModifier": "-" + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Omit" + }, + "typeArguments": [ + { + "type": "reference", + "target": 1003, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 1004, + "name": "K", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "Omit", + "package": "typescript" + } + ] + } + }, + { + "id": 1005, + "name": "OmitRequired", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 22, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/types.ts#L22" + } + ], + "typeParameters": [ + { + "id": 1006, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 1007, + "name": "K", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "target": 1006, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "mapped", + "parameter": "P", + "parameterType": { + "type": "reference", + "target": 1007, + "name": "K", + "package": "js-cool", + "refersToTypeParameter": true + }, + "templateType": { + "type": "indexedAccess", + "indexType": { + "type": "reference", + "target": { + "sourceFileName": "src/types.ts", + "qualifiedName": "P" + }, + "name": "P", + "package": "js-cool", + "refersToTypeParameter": true + }, + "objectType": { + "type": "reference", + "target": 1006, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Omit" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Required" + }, + "typeArguments": [ + { + "type": "reference", + "target": 1006, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "Required", + "package": "typescript" + }, + { + "type": "reference", + "target": 1007, + "name": "K", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "Omit", + "package": "typescript" + } + ] + } + }, + { + "id": 1008, + "name": "PickPartial", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 26, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/types.ts#L26" + } + ], + "typeParameters": [ + { + "id": 1009, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 1010, + "name": "K", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "target": 1009, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "mapped", + "parameter": "P", + "parameterType": { + "type": "reference", + "target": 1010, + "name": "K", + "package": "js-cool", + "refersToTypeParameter": true + }, + "templateType": { + "type": "indexedAccess", + "indexType": { + "type": "reference", + "target": { + "sourceFileName": "src/types.ts", + "qualifiedName": "P" + }, + "name": "P", + "package": "js-cool", + "refersToTypeParameter": true + }, + "objectType": { + "type": "reference", + "target": 1009, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + "optionalModifier": "+" + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Omit" + }, + "typeArguments": [ + { + "type": "reference", + "target": 1009, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 1010, + "name": "K", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "Omit", + "package": "typescript" + } + ] + } + }, + { + "id": 1011, + "name": "OmitPartial", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 30, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/types.ts#L30" + } + ], + "typeParameters": [ + { + "id": 1012, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 1013, + "name": "K", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "target": 1012, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "mapped", + "parameter": "P", + "parameterType": { + "type": "reference", + "target": 1013, + "name": "K", + "package": "js-cool", + "refersToTypeParameter": true + }, + "templateType": { + "type": "indexedAccess", + "indexType": { + "type": "reference", + "target": { + "sourceFileName": "src/types.ts", + "qualifiedName": "P" + }, + "name": "P", + "package": "js-cool", + "refersToTypeParameter": true + }, + "objectType": { + "type": "reference", + "target": 1012, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Omit" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Partial" + }, + "typeArguments": [ + { + "type": "reference", + "target": 1012, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "Partial", + "package": "typescript" + }, + { + "type": "reference", + "target": 1013, + "name": "K", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "Omit", + "package": "typescript" + } + ] + } + }, + { + "id": 1014, + "name": "MaybePromiseOrGetter", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 34, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/types.ts#L34" + } + ], + "typeParameters": [ + { + "id": 1018, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 1018, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + }, + { + "type": "reflection", + "declaration": { + "id": 1015, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 34, + "character": 52, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/types.ts#L34" + } + ], + "signatures": [ + { + "id": 1016, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "typeParameters": [ + { + "id": 1017, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 1017, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + ] + } + }, + { + "id": 95, + "name": "unescape", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/unescape.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/unescape.ts#L13" + } + ], + "signatures": [ + { + "id": 96, + "name": "unescape", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Restore HTML Special Characters" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nunescape('<div>test<br />string</div>')\n// '
test
string
'\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.5.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- newString" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/unescape.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/unescape.ts#L13" + } + ], + "parameters": [ + { + "id": 97, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 896, + "name": "union", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/union.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/union.ts#L19" + } + ], + "signatures": [ + { + "id": 897, + "name": "union", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Find the concatenation of multiple arrays" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nunion([1, 2], [2, '33'])\n// [1, 2, '33']\n\nunion([1, 2], [2, '33'], [1, 11, 2, '2'])\n// [ 1, 2, '33', 11, '2' ]\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "2.2.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- new array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/union.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/union.ts#L19" + } + ], + "typeParameters": [ + { + "id": 898, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 899, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arguments" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "reference", + "target": 898, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 898, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ] + }, + { + "id": 912, + "name": "unique", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/unique.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/unique.ts#L14" + } + ], + "signatures": [ + { + "id": 913, + "name": "unique", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Array de-duplication" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nunique([1, 2, 2, '33']) // [1, 2, '33']\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "2.2.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- new array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/unique.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/unique.ts#L14" + } + ], + "typeParameters": [ + { + "id": 914, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 915, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "array data" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 914, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 914, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ] + }, + { + "id": 107, + "name": "upperFirst", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/upperFirst.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/upperFirst.ts#L12" + } + ], + "signatures": [ + { + "id": 108, + "name": "upperFirst", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "First letter capitalized" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nupperFirst('saqqdy') // Saqqdy\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the converted string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/upperFirst.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/upperFirst.ts#L12" + } + ], + "parameters": [ + { + "id": 109, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be converted" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 983, + "name": "urlToBlob", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/urlToBlob.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/urlToBlob.ts#L8" + } + ], + "signatures": [ + { + "id": 984, + "name": "urlToBlob", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "url to blob" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.13.0" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- blob" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/urlToBlob.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/urlToBlob.ts#L8" + } + ], + "parameters": [ + { + "id": 985, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "url" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 866, + "name": "uuid", + "variant": "declaration", + "kind": 64, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Browser-side generation of uuid, using v4 method" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nuuid() // '4222fcfe-5721-4632-bede-6043885be57d'\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.9" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/uuid.ts", + "line": 11, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/uuid.ts#L11" + } + ], + "signatures": [ + { + "id": 867, + "name": "uuid", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- uuid" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/uuid.ts", + "line": 11, + "character": 13, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/uuid.ts#L11" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 946, + "name": "waiting", + "variant": "declaration", + "kind": 64, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "waiting for a while" + } + ], + "blockTags": [ + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.5.0" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/waiting.ts", + "line": 8, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/waiting.ts#L8" + } + ], + "signatures": [ + { + "id": 947, + "name": "waiting", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/waiting.ts", + "line": 8, + "character": 16, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/waiting.ts#L8" + } + ], + "parameters": [ + { + "id": 948, + "name": "milliseconds", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "waiting time (milliseconds)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 949, + "name": "throwOnTimeout", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "throw on timeout" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 547, + "name": "WindowSizeObj", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 548, + "name": "width", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/windowSize.ts", + "line": 2, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/windowSize.ts#L2" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 549, + "name": "height", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/windowSize.ts", + "line": 3, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/windowSize.ts#L3" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 548, + 549 + ] + } + ], + "sources": [ + { + "fileName": "src/windowSize.ts", + "line": 1, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/windowSize.ts#L1" + } + ] + }, + { + "id": 545, + "name": "windowSize", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/windowSize.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/windowSize.ts#L16" + } + ], + "signatures": [ + { + "id": 546, + "name": "windowSize", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "windowSize to get the window size" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nwindowSize() // { width: 1280, height: 800 }\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "1.0.1" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the width and height" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/windowSize.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/dc4de44bbe9d9113a87d88b3f29eb3bf50fb226d/src/windowSize.ts#L16" + } + ], + "type": { + "type": "reference", + "target": 547, + "name": "WindowSizeObj", + "package": "js-cool" + } + } + ] + } + ], + "groups": [ + { + "title": "Interfaces", + "children": [ + 582, + 613, + 177, + 181, + 724, + 576, + 747, + 130, + 842, + 598, + 987, + 992, + 547 + ] + }, + { + "title": "Type Aliases", + "children": [ + 784, + 785, + 786, + 176, + 180, + 135, + 986, + 995, + 997, + 1002, + 1005, + 1008, + 1011, + 1014 + ] + }, + { + "title": "Variables", + "children": [ + 540, + 541, + 1019, + 1, + 60 + ] + }, + { + "title": "Functions", + "children": [ + 27, + 2, + 6, + 10, + 14, + 18, + 22, + 868, + 878, + 882, + 887, + 702, + 856, + 861, + 555, + 950, + 954, + 873, + 958, + 961, + 964, + 968, + 971, + 974, + 579, + 101, + 831, + 86, + 89, + 42, + 787, + 585, + 904, + 908, + 850, + 150, + 104, + 690, + 693, + 653, + 681, + 665, + 791, + 684, + 687, + 92, + 771, + 977, + 916, + 144, + 760, + 550, + 147, + 644, + 668, + 671, + 610, + 808, + 98, + 568, + 919, + 616, + 622, + 713, + 656, + 804, + 630, + 636, + 892, + 533, + 522, + 527, + 155, + 161, + 158, + 167, + 536, + 542, + 524, + 173, + 530, + 170, + 764, + 900, + 715, + 719, + 847, + 573, + 589, + 941, + 753, + 730, + 110, + 114, + 118, + 123, + 708, + 602, + 606, + 836, + 647, + 673, + 934, + 659, + 136, + 824, + 814, + 593, + 696, + 699, + 980, + 853, + 83, + 95, + 896, + 912, + 107, + 983, + 866, + 946, + 545 + ] + } + ], + "packageName": "js-cool", + "packageVersion": "5.23.1", + "readme": [ + { + "kind": "text", + "text": "
\n\n# js-cool\n\nCollection of common JavaScript / TypeScript utilities\n\n[![NPM version][npm-image]][npm-url]\n[![Codacy Badge][codacy-image]][codacy-url]\n[![tree shaking][tree-shaking-image]][tree-shaking-url]\n![typescript][typescript-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![npm download][download-image]][download-url]\n[![gzip][gzip-image]][gzip-url]\n[![License][license-image]][license-url]\n\n[![Sonar][sonar-image]][sonar-url]\n\n
\n\n
\n\n### **[Documentation](https://www.saqqdy.com/js-cool)** • **[Change Log](" + }, + { + "kind": "relative-link", + "text": "./CHANGELOG.md", + "target": 2 + }, + { + "kind": "text", + "text": ")**\n\n**Read this in other languages: English | [简体中文](" + }, + { + "kind": "relative-link", + "text": "./README-zh_CN.md", + "target": 3 + }, + { + "kind": "text", + "text": ")**\n\n
\n\n- [Installation](#installation)\n- [Usage](#usage)\n - [Es6 module](#es6-module)\n - [Node.js require](#nodejs-require)\n - [Using unpkg CDN](#using-unpkg-cdn)\n- [API Reference](#api-reference)\n - [Global Parameters](#global-parameters)\n - [client](#client) - The client method returns a browser result object\n - [pattern](#pattern) - Collection of common regular expressions\n - [Extras for String & Array & Object & Function](#extras-for-string--array--object--function)\n - [clearAttr](#clearattr) - Remove all attributes of HTML tags\n - [clearHtml](#clearhtml) - Removing HTML tags\n - [escape](#escape) - Escaping HTML Special Characters\n - [unescape](#unescape) - Restore HTML Special Characters\n - [getNumber](#getnumber) - Get the number in the string\n - [camel2Dash](#camel2dash) - Converts humped strings to -spaced and all lowercase Dash pattern\n - [dash2Camel](#dash2camel) - Converts -spaced and all lowercase Dash patterns to humped strings\n - [randomColor](#randomcolor) - Generate random hexadecimal colors\n - [randomNumber](#randomnumber) - Get a random number\n - [randomNumbers](#randomnumbers) - Generate n random integers that sum to a fixed sum\n - [randomString](#randomstring) - Get a random string\n - [shuffle](#shuffle) - shuffling algorithm, Reordering arrays or strings\n - [fingerprint](#fingerprint) - Generating Browser Fingerprints\n - [getCHSLength](#getchslength) - Get the length of the string, Chinese counts as 2 characters\n - [cutCHSString](#cutchsstring) - Intercept string, Chinese counts as 2 bytes\n - [upperFirst](#upperfirst) - First letter capitalized\n - [Determine](#determine)\n - [isDigitals](#isdigitals) - Determine if a string is a number\n - [isExitsFunction](#isexitsfunction) - Determine if a function is defined\n - [isExitsVariable](#isexitsvariable) - Determine if a variable is defined\n - [isEqual](#isequal) - Determine if 2 objects are equal\n - [isWindow](#iswindow) - Determine if window object\n - [isPlainObject](#isplainobject) - Determine if target is an plain object\n - [isDarkMode](#isdarkmode) - Determine if dark color mode\n - [isObject](#isobject) - Determine if target is an object\n - [isDate](#isdate) - Determine if target is Date\n - [isRegExp](#isregexp) - Determine if target is RegExp\n - [isArray](#isarray) - Determine if it is an array\n - [isIterable](#isiterable) - Determine if it is iterable\n - [inBrowser](#inbrowser) - Determine if it is running on the browser side\n - [inNodeJs](#innodejs) - Determine if it is running on node.js\n - [isNumberBrowser](#isnumberbrowser) - Detect if the client is a 360 browser\n - [windowSize](#windowsize) - Get the window size\n - [getAppVersion](#getappversion) - Get the APP version number\n - [appVersion](#appversion) - Get the app version number\n - [getOsVersion](#getosversion) - Get the phone system version\n - [osVersion](#osversion) - get the system version\n - [browserVersion](#browserversion) - Get the browser name and version\n - [compareVersion](#compareversion) - Version number size comparison, tag version: " + }, + { + "kind": "code", + "text": "`rc`" + }, + { + "kind": "text", + "text": " > " + }, + { + "kind": "code", + "text": "`beta`" + }, + { + "kind": "text", + "text": " > " + }, + { + "kind": "code", + "text": "`alpha`" + }, + { + "kind": "text", + "text": " > " + }, + { + "kind": "code", + "text": "`other`" + }, + { + "kind": "text", + "text": "\n - [parseUrlParam](#parseurlparam) - parse url params. (If covert is passed true: Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)\n - [spliceUrlParam](#spliceurlparam) - Splice URL parameters (single layer only)\n - [safeParse](#safeparse) - Secure parsing of JSON strings\n - [safeStringify](#safestringify) - Secure stringify of JSON Object\n - [getDirParam](#getdirparam) - Get the URL parameter in the form of a directory\n - [getQueryParam](#getqueryparam) - Get a single query parameter (behind \"#\")\n - [getQueryParams](#getqueryparams) - Get all query parameters (behind \"#\"). (If covert is passed true: Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)\n - [getUrlParam](#geturlparam) - Get a single URL parameter (from the \"location.search\", before \"#\")\n - [getUrlParams](#geturlparams) - Get all URL parameters (from the \"location.search\", before \"#\"). (If covert is passed true: Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)\n - [localStorage & sessionStorage & Cookie](#localstorage--sessionstorage--cookie)\n - [getCache](#getcache) - Get the cache, if the deposited is Object, the retrieved is also Object, no need to convert again\n - [setCache](#setcache) - Set the cache, if the deposited is Object, the retrieved is also Object, no need to convert again\n - [delCache](#delcache) - Delete localStorage\n - [getSession](#getsession) - Get the session, if the deposited is Object, the retrieved is also Object, no need to convert again\n - [setSession](#setsession) - Set the session, if the deposited is Object, the retrieved is also Object, no need to convert again\n - [delSession](#delsession) - Delete sessionStorage\n - [getCookie](#getcookie) - Get cookie by name\n - [getCookies](#getcookies) - Get all cookies\n - [setCookie](#setcookie) - Set cookie\n - [delCookie](#delcookie) - Delete cookie\n - [Base64 & UTF8](#base64--utf8)\n - [encodeBase64](#encodebase64) - convert strings, numbers to base64\n - [decodeBase64](#decodebase64) - base64 decoding\n - [encodeUtf8](#encodeutf8) - convert strings, numbers to utf8\n - [decodeUtf8](#decodeutf8) - utf8 decoding\n - [Events](#events)\n - [stopBubble](#stopbubble) - stop bubbling\n - [stopDefault](#stopdefault) - stop default events\n - [addEvent](#addevent) - event delegate, support multiple delegates\n - [removeEvent](#removeevent) - removeEvent removes the event delegate created by addEvent\n - [getScrollPosition](#getscrollposition) - Get slide to top and bottom return 'top' 'bottom', recommend using limit flow\n - [Utilities](#utilities)\n - [nextIndex](#nextindex) - return the next zIndex value\n - [nextVersion](#nextversion) - return the next version, **Only version types with no more than 3 digits are supported**. (Follow the npm version rules)\n - [punctualTimer](#punctualtimer) - punctual setInterval\n - [promiseFactory](#promisefactory) - Convert an object to a promise like api\n - [fixNumber](#fixnumber) - truncate a few decimal places, not 0 for shortage\n - [mapTemplate](#maptemplate) - Replacing specific data in a template string, support " + }, + { + "kind": "code", + "text": "`${xxxx}`" + }, + { + "kind": "text", + "text": " " + }, + { + "kind": "code", + "text": "`{{xxxx}}`" + }, + { + "kind": "text", + "text": " and " + }, + { + "kind": "code", + "text": "`{xxxx}`" + }, + { + "kind": "text", + "text": "\n - [extend](#extend) - deep copy & merge objects\n - [clone](#clone) - deep copy (Buffer, Promise, Set, Map are not supported)\n - [delay](#delay) - anti-dither throttling\n - [getType](#gettype) - Get the target type\n - [getFileType](#getfiletype) - Determine file type based on link suffix\n - [sorter](#sorter) - Sorter factory function\n - [sortPinyin](#sortpinyin) - Sort Chinese by Chinese phonetic alphabet\n - [cleanData](#cleandata) - Data cleaning methods\n - [download](#download) - Several ways of file downloading\n - [searchObject](#searchobject) - tree object depth lookup\n - [openUrl](#openurl) - Open link in new tab (file jump download if browser can't parse)\n - [copy](#copy) - copy to clipboard\n - [toThousands](#tothousands) - Digital thousandths division\n - [all](#all) - return true if the provided predicate function returns true for all elements in a set, otherwise return false\n - [any](#any) - Returns true if the provided predicate function returns true for at least one element of a set, false otherwise\n - [uuid](#uuid) - generate uuid on browser side, use v4 method\n - [CSVToArray](#csvtoarray) - Converts a comma-separated string of values (CSV) to a 2D array.\n - [arrayToCSV](#arraytocsv) - Converts a two-dimensional array to a comma-separated string of values (CSV).\n - [CSVToJSON](#csvtojson) - Converts a comma-separated string of values (CSV) to an array of 2D objects. The first line of the string is used as the header line.\n - [JSONToCSV](#jsontocsv) - Converts an array of objects to a comma-separated value (CSV) string containing only the specified columns.\n - [RGBToHex](#rgbtohex) - Converts RGB component values to color codes.\n - [intersect](#intersect) - Find the intersection of multiple arrays\n - [union](#union) - Find the concatenation of multiple arrays\n - [minus](#minus) - Find the set of differences of multiple arrays that belong to A but not to B/C/D... of the elements of\n - [complement](#complement) - Find the complement of multiple arrays\n - [contains](#contains) - Whether the array contains the specified element\n - [unique](#unique) - Array de-duplication\n - [fillIPv6](#fillipv6) - ipv6 address completion\n - [getProperty](#getproperty) - Get array, object property values based on path string\n - [setProperty](#setproperty) - Set array, object property values based on path string\n - [loadSource](#loadsource) - load resources dynamically, support js, images, css links, css style strings\n - [mountCss](#mountcss) - dynamically load css link resources\n - [mountImg](#mountimg) - load image resource dynamically\n - [mountJs](#mountjs) - load js link resources dynamically\n - [mountStyle](#mountstyle) - load css styles dynamically\n - [preloader](#preloader) - Image preloading\n - [waiting](#waiting) - waiting for a while\n - [awaitTo](#awaitto) - Async await wrapper for easy error handling\n - [Blob arrayBuffer base64 file blobUrl](#blob-arraybuffer-base64-file-bloburl)\n - [arrayBufferToBase64](#arraybuffertobase64) - arrayBuffer to base64\n - [arrayBufferToBlob](#arraybuffertoblob) - arrayBuffer to blob\n - [base64ToArrayBuffer](#base64toarraybuffer) - base64 to arrayBuffer\n - [base64ToBlob](#base64toblob) - base64 to blob\n - [base64ToFile](#base64tofile) - base64 to file\n - [blobToArrayBuffer](#blobtoarraybuffer) - blob to arrayBuffer\n - [blobToBase64](#blobtobase64) - blob to base64\n - [blobToUrl](#blobtourl) - blob to url\n - [fileToBase64](#filetobase64) - file to base64\n - [svgToBlob](#svgtoblob) - svg to blob\n - [urlToBlob](#urltoblob) - url to blob\n- [Support & Issues](#support--issues)\n- [License](#license)\n\n## Installation\n\n" + }, + { + "kind": "code", + "text": "```bash\n# use pnpm\npnpm install js-cool\n\n## use npm\nnpm install --save js-cool\n```" + }, + { + "kind": "text", + "text": "\n\n## Usage\n\n### ES6 module\n\n" + }, + { + "kind": "code", + "text": "```js\nimport { osVersion } from 'js-cool'\n\nosVersion()\n```" + }, + { + "kind": "text", + "text": "\n\n### Node.js require\n\n" + }, + { + "kind": "code", + "text": "```js\nconst { osVersion } = require('js-cool')\n\nosVersion()\n```" + }, + { + "kind": "text", + "text": "\n\n### Using unpkg CDN\n\n" + }, + { + "kind": "code", + "text": "```html\n\n\n```" + }, + { + "kind": "text", + "text": "\n\n## API Reference\n\n### Global Parameters\n\n#### client\n\nThe client method returns a browser result object\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments: " + }, + { + "kind": "code", + "text": "`none`" + }, + { + "kind": "text", + "text": "\n\n- Returns: " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { client } from 'js-cool'\n\nclient.get(['device', 'browser', 'engine', 'os']) // { device: 'xxx', browser: 'xxx', os: 'xxx', engine: 'xxx' }\nclient.get('device') // { device: 'xxx' }\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare class Client {\n matchMap: Record\n root: Window & typeof globalThis\n navigator: Navigator\n constructor(options: ClientOptions)\n\n get(names?: InfoTypes | InfoTypes[]): Partial<{\n device: InfoKeys | undefined\n os: InfoKeys | undefined\n browser: InfoKeys | undefined\n engine: InfoKeys | undefined\n language: any\n network: any\n orientation: string | undefined\n }>\n\n getInfoByType(infoKey: InfoKey): InfoKeys | undefined\n getOrientationStatus(): 'vertical' | 'horizontal' | undefined\n getNetwork(): any\n getLanguage(): any\n}\n```" + }, + { + "kind": "text", + "text": "\n\n#### pattern\n\nCollection of common regular expressions\n\n> v5.21.2 " + }, + { + "kind": "code", + "text": "`pattern`" + }, + { + "kind": "text", + "text": " support mac/ip4/ip4_pri\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments: " + }, + { + "kind": "code", + "text": "`none`" + }, + { + "kind": "text", + "text": "\n\n- Returns: " + }, + { + "kind": "code", + "text": "`none`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\npattern.number.test('333') // true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare const pattern: {\n any: RegExp\n number: RegExp\n string: RegExp\n postcode: RegExp\n url: RegExp\n username: RegExp\n float: RegExp\n email: RegExp\n mobile: RegExp\n chinese: RegExp\n tel: RegExp\n qq: RegExp\n pass: RegExp\n json: RegExp\n arrjson: RegExp\n array: RegExp\n isjson: RegExp\n textarea: RegExp\n mac: RegExp\n ip4: RegExp\n ip4_pri: RegExp\n}\n```" + }, + { + "kind": "text", + "text": "\n\n### Extras for String & Array & Object & Function\n\n#### clearAttr\n\nRemove all attributes of HTML tags\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------------- | -------- | -------- | -------- | ------- |\n| string | string with html tags | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nclearAttr('
test
')\n// '
test
'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function clearAttr(string: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### clearHtml\n\nRemove HTML tags\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------------- | -------- | -------- | -------- | ------- |\n| string | string with html tags | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nclearHtml('
test
string
')\n// 'teststring'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function clearHtml(string: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### escape\n\nEscaping HTML Special Characters\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.5.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------------- | -------- | -------- | -------- | ------- |\n| string | string with html tags | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nescape('
test
string
')\n// '<div>test<br />string</div>'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function escape(string: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### unescape\n\nRestore HTML Special Characters\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.5.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | -------- | -------- | -------- | ------- |\n| string | string | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nunescape('<div>test<br />string</div>')\n// '
test
string
'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function unescape(string: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### getNumber\n\nGet the number in the string\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------ | -------- | -------- | -------- | ------- |\n| string | pass in a string with a number | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetNumber('Chrome123.33')\n// '123.33'\n\ngetNumber('234test.88')\n// '234.88'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getNumber(string: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### camel2Dash\n\nConverts humped strings to -spaced and all lowercase Dash pattern\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------------------- | -------- | -------- | -------- | ------- |\n| string | the string to be converted | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ncamel2Dash('jsCool') // js-cool\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function camel2Dash(string: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### dash2Camel\n\nConverts -spaced and all lowercase Dash patterns to humped strings\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------------------- | -------- | -------- | -------- | ------- |\n| string | the string to be converted | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndash2Camel('js-cool') // jsCool\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function dash2Camel(string: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### randomColor\n\nGenerate random hexadecimal colors\n\n> Support for custom color value ranges starting with version 5.17.0, which can be used to customize the generation of darker, lighter, warmer colors, etc.\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.5.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------------------------------- | -------------------------------------- | -------- | -------- | ------- |\n| min | the minimum value of the random numbers | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " \\/ " + }, + { + "kind": "code", + "text": "`[number, number, number]`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n| max | the maximum value of the random numbers | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " \\/ " + }, + { + "kind": "code", + "text": "`[number, number, number]`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nrandomColor()\n// #bf444b\n\nrandomColor(200)\n// #d6e9d7\n\nrandomColor(200, 255)\n// #d3f9e4\n\nrandomColor([0, 0, 0], [255, 255, 255])\n// #e2f2f3\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function randomColor(\n min?: number | [number, number, number],\n max?: number | [number, number, number]\n): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### randomNumber\n\nGet a random number\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------------------------------- | -------- | -------- | -------- | ------- |\n| min | the minimum value of the random number | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | 1 |\n| max | the maximum value of the random number | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | 10 |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nrandomNumber() // 8\nrandomNumber(0.1, 0.9) // 0.8\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function randomNumber(min?: number, max?: number): number\n```" + }, + { + "kind": "text", + "text": "\n\n#### randomNumbers\n\nGenerate n random integers that sum to a fixed sum\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.4.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------------------------------- | --------- | -------- | -------- | ------- |\n| n | Number of generated integers | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | 1 |\n| sum | Sum of generated integers | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | 100 |\n| noZero | Generate integers that are not zero | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`Array`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nrandomNumbers()\n// [8]\n\nrandomNumbers(4, 5)\n// [1, 1, 2, 1]\n\nrandomNumbers(4, 5, false)\n// [0, 1, 2, 2]\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function randomNumbers(n?: number, sum?: number): number[]\n```" + }, + { + "kind": "text", + "text": "\n\n#### randomString\n\nGet a random string\n\n> v5.4.0 " + }, + { + "kind": "code", + "text": "`widthSpecialChar`" + }, + { + "kind": "text", + "text": " changed to " + }, + { + "kind": "code", + "text": "`options`" + }, + { + "kind": "text", + "text": ", still compatible with old usage, widthSpecialChar=true equivalent to " + }, + { + "kind": "text", + "text": "{ charTypes: ['uppercase', 'lowercase', 'number', 'special'] " + }, + { + "kind": "text", + "text": "}" + }, + { + "kind": "text", + "text": "\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------------------------------------------------- | ------------------------------- | -------- | -------- | ----------------------------------------------------- |\n| len | the length of the random string that needs to be obtained | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | 32 |\n| options | randomString options | " + }, + { + "kind": "code", + "text": "`RandomStringOptions`" + }, + { + "kind": "text", + "text": " " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`{ charTypes: ['uppercase', 'lowercase', 'number'] }`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\n// 1. No parameters are passed, a 32-bit (possibly) string containing upper and lower case letters and numbers is generated by default\nrandomString()\n// PVSjz902EqYbmxaLtvDnggtnlvt5uFTZ\n\n// 2. Generate a 16-bit random string\nrandomString(16)\n// coTgZy0mqqMJ1sMM\n\n// 3. Same effect as #2 above\nrandomString({\n length: 16\n})\n// ngCI5aPqJm84t90d\n\n// 4. Generate containing special characters (old way of passing values, not recommended)\nrandomString(true)\n// 0Uby@op3B-sK5]dHl4S|15As.OlHiNXd\n\n// 5. Same effect as #4 above (recommended)\nrandomString({\n charTypes: ['uppercase', 'lowercase', 'number', 'special']\n})\n// m,2^vpkrE,F,DbcSFk0=vr&@DJ27j9XK\n\n// 6. Same effect as #4 above, Limit string length to 16 bits\nrandomString(16, true)\n// dXz[J_sYM^3d8fnA\n\n// 7. Generate a 16-bit random number\nrandomString({\n length: 16,\n charTypes: 'number'\n})\n// 7450026301030286\n\n// 8. Elimination of confusing characters: oOLl,9gq,Vv,Uu,I1\nrandomString({\n length: 16,\n noConfuse: true\n})\n// 8DEGna8ppC4mqyew\n\n// 9. The generated random string must contain at least 1 character of each type of character specified, e.g. to generate a 16-bit password that must contain upper and lower case letters, numbers, and special characters.\nrandomString({\n length: 16,\n strict: true\n})\n// PFYAPD5KFqOHIADL\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function randomString(len?: number, options?: RandomStringOptions | boolean): string\n\ndeclare function randomString(\n len?: RandomStringOptions | boolean,\n options?: RandomStringOptions | boolean\n): string\n\ndeclare type RandomStringCharType = 'uppercase' | 'lowercase' | 'number' | 'special'\n\ndeclare interface RandomStringOptions {\n length?: number\n charTypes?: RandomStringCharType | ArrayOneMore\n /**\n * Elimination of confusing characters: oOLl,9gq,Vv,Uu,I1\n */\n noConfuse?: boolean\n /**\n * The generated random string must contain each of the listed character types\n */\n strict?: boolean\n}\n```" + }, + { + "kind": "text", + "text": "\n\n#### shuffle\n\nshuffling algorithm, Reordering arrays or strings\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.4.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------------------- | ---------------- | -------- | -------- | ------- |\n| value | arrays or strings | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| size | new array or string length | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`array | string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nconst str = 'abcde'\nconst arr = [1, 2, 3]\n\nshuffle(str)\n// cdbse\n\nshuffle(arr)\n// [3, 1, 2]\n\nshuffle(arr, 2)\n// [3, 2]\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function shuffle(value: string, size?: number): string\n\ndeclare function shuffle(value: T, size?: number): T\n```" + }, + { + "kind": "text", + "text": "\n\n#### fingerprint\n\nGenerating Browser Fingerprints\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.2.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | -------- | -------- | -------- | ------------- |\n| domain | key string | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | location.host |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nfingerprint('www.saqqdy.com') // wc7sWJJA8\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function fingerprint(domain?: string): string | null\n```" + }, + { + "kind": "text", + "text": "\n\n#### getCHSLength\n\nGet the length of the string, Chinese counts as 2 characters\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------ | -------- | -------- | -------- | ------- |\n| str | input string | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetCHSLength('测试') // 2\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getCHSLength(str: string): number\n```" + }, + { + "kind": "text", + "text": "\n\n#### cutCHSString\n\nIntercept string, Chinese counts as 2 bytes\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------------------- | --------- | -------- | -------- | ------- |\n| str | the string to be intercepted | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| len | length | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n| hasDot | output with dot | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ncutCHSString('测试', 1) // 测\ncutCHSString('测试', 1, true) // 测...\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function cutCHSString(str: string, len?: number, hasDot?: boolean): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### upperFirst\n\nFirst letter capitalized\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------------------- | -------- | -------- | -------- | ------- |\n| string | the string to be converted | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nupperFirst('saqqdy') // Saqqdy\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function upperFirst(string: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n### Determine\n\n#### isDigitals\n\nDetermine if a string is a number\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------------------- | -------- | -------- | -------- | ------- |\n| str | the string to be tested | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nisDigitals('2.11') // true\nisDigitals('2.3x') // false\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function isDigitals(str: string): boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### isExitsFunction\n\nDetermine if a function is defined\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | -------- | -------- | -------- | ------- |\n| name | function name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nisExitsFunction('test') // false\nisExitsFunction('console.log') // true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function isExitsFunction(name: string): boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### isExitsVariable\n\nDetermine if a variable is defined\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | -------- | -------- | -------- | ------- |\n| name | variable name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nisExitsVariable('test') // false\nisExitsVariable('window') // true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function isExitsVariable(name: string): boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### isEqual\n\nDetermine if 2 objects are equal\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.12.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ----- | -------- | -------- | ------- |\n| a | source | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| b | compare | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nisEqual({ a: 22, b: {} }, { b: {}, a: 22 })\n// true\n\nisEqual([1, 2], [2, 1])\n// false\n\nisEqual(NaN, NaN)\n// true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function isEqual(a: T, b: P): boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### isWindow\n\nDetermine if window object\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ----- | -------- | -------- | ------- |\n| target | any target | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nisWindow({}) // false\nisWindow(window) // true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function isWindow(target: T): target is Window\n```" + }, + { + "kind": "text", + "text": "\n\n#### isPlainObject\n\nDetermine if target is an plain object\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ----- | -------- | -------- | ------- |\n| target | any target | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nisPlainObject({}) // true\nisPlainObject(window) // false\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ntype Primitive = bigint | boolean | null | number | string | symbol | undefined\n\ntype JSONValue = Primitive | PlainObject | JSONArray\n\n// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style\ninterface PlainObject {\n [key: string]: JSONValue\n}\n\ninterface JSONArray extends Array {}\n\ndeclare function isPlainObject(target: unknown): target is PlainObject\n```" + }, + { + "kind": "text", + "text": "\n\n#### isDarkMode\n\nDetermine if dark color mode\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.5.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments: none\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nisDarkMode() // false\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function isDarkMode(): boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### isObject\n\nDetermine if target is an object\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ----- | -------- | -------- | ------- |\n| target | any target | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nisObject({}) // true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function isObject(target: T): target is Object\n```" + }, + { + "kind": "text", + "text": "\n\n#### isDate\n\nDetermine if target is Date\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.15.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ----- | -------- | -------- | ------- |\n| target | any target | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nconst now = new Date()\n\nisDate(now)\n// true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function isDate(target: T): target is Date\n```" + }, + { + "kind": "text", + "text": "\n\n#### isRegExp\n\nDetermine if target is RegExp\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.15.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ----- | -------- | -------- | ------- |\n| target | any target | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nisRegExp(/\\d/) // true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function isRegExp(target: T): target is RegExp\n```" + }, + { + "kind": "text", + "text": "\n\n#### isArray\n\nDetermine if it is an array\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ----- | -------- | -------- | ------- |\n| target | any target | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nisArray([]) // true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function isIterable(target: any): target is any[]\n```" + }, + { + "kind": "text", + "text": "\n\n#### isIterable\n\nDetermine if it is iterable\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.7.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ----- | -------- | -------- | ------- |\n| target | any target | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nisIterable([]) // true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function isIterable(target: T | Iterable): target is Iterable\n```" + }, + { + "kind": "text", + "text": "\n\n#### inBrowser\n\nDetermine if it is running on the browser side\n\n- Since: " + }, + { + "kind": "code", + "text": "`4.5.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments: " + }, + { + "kind": "code", + "text": "`none`" + }, + { + "kind": "text", + "text": "\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nfunction test() {\n if (!inBrowser) return null\n // ...\n}\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare const inBrowser: boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### inNodeJs\n\nDetermine if it is running on node.js\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments: " + }, + { + "kind": "code", + "text": "`none`" + }, + { + "kind": "text", + "text": "\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nif (inNodeJs) {\n //\n}\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare const inNodeJs: boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### isNumberBrowser\n\nDetect if the client is a 360 browser\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.22.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------------------------- | -------- | -------- | -------- | --------------------- |\n| userAgent | ua or any ua like string, allowed to be undefined | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`navigator.userAgent`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\n// 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36 QIHU 360EE'\n// true\n\n// 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36'\n// true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function isNumberBrowser(userAgent?: string): boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### windowSize\n\nGet the window size\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments: " + }, + { + "kind": "code", + "text": "`none`" + }, + { + "kind": "text", + "text": "\n\n- Returns: " + }, + { + "kind": "code", + "text": "`{ width, height }`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nwindowSize()\n// { width: 1280, height: 800 }\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare interface WindowSizeObj {\n width: number\n height: number\n}\n\ndeclare function windowSize(): WindowSizeObj\n```" + }, + { + "kind": "text", + "text": "\n\n#### getAppVersion\n\nGet the APP version number\n\n> deprecated please use 'appVersion' instead\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------------------------- | --------- | -------- | -------- | --------------------- |\n| appName | app name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| withApp | whether to bring the name | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n| userAgent | ua or any ua like string, allowed to be undefined | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`navigator.userAgent`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string | boolean | null`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\n// navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'\n\ngetAppVersion('Chrome') // 114.0.0.0\ngetAppVersion('Safari', true) // Safari/537.36\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getAppVersion(\n appName: string,\n withApp?: boolean,\n userAgent?: string\n): string | boolean | null\n```" + }, + { + "kind": "text", + "text": "\n\n#### appVersion\n\nGet the app version number\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.1.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------------------------- | --------- | -------------- | -------- | ------------------- |\n| appName | app name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| ua | ua or any ua like string, allowed to be undefined | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | navigator.userAgent |\n| ignoreCase | whether to ignore case | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string | null`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\n// navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'\n\nappVersion('Chrome') // 114.0.0.0\nappVersion('Safari') // 537.36\nappVersion('appname', false) // null\nappVersion('appname') // 1.0.0-beta.8\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function appVersion(appName: string): string | null\ndeclare function appVersion(appName: string, ua: string): string | null\ndeclare function appVersion(appName: string, ua: boolean): string | null\ndeclare function appVersion(appName: string, ua: string, ignoreCase: boolean): string | null\n```" + }, + { + "kind": "text", + "text": "\n\n#### getOsVersion\n\nGet the phone system version\n\n> deprecated: please use 'osVersion' instead\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------------------------------------------- | -------- | -------- | -------- | --------------------- |\n| osName | system type string Android, iPod, iWatch or iPhone | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| withOS | whether to bring the name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n| userAgent | ua or any ua like string, allowed to be undefined | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`navigator.userAgent`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string | boolean | null`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetOsVersion('iPhone')\n// '13.2.3'\n\ngetOsVersion('iPhone', true)\n// 'iPhone/13.2.3'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getOsVersion(\n osName: string,\n withOS?: boolean,\n userAgent?: string\n): string | boolean | null\n```" + }, + { + "kind": "text", + "text": "\n\n#### osVersion\n\nget the system version\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.1.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------------------------- | -------- | -------- | -------- | ------------------- |\n| ua | ua or any ua like string, allowed to be undefined | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | navigator.userAgent |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`OsVersion | null`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\n// ipad => 'Mozilla/5.0 (iPad; CPU OS 13_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/87.0.4280.77 Mobile/15E148 Safari/604.1'\nosVersion() // \\{ name: 'iOS', version: '13.3' \\}\n// iphone => 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1'\nosVersion() // \\{ name: 'iOS', version: '13.2.3' \\}\n// mac os => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'\nosVersion() // \\{ name: 'MacOS', version: '10.15.7' \\}\n// windows => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'\nosVersion() // \\{ name: 'Windows', version: '10.0' \\}\n// windows xp => 'Mozilla/5.0 (Windows NT 5.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'\nosVersion() // \\{ name: 'Windows', version: 'XP' \\}\n// windows phone => 'Mozilla/5.0 (Windows Phone OS 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36'\nosVersion() // \\{ name: 'WindowsPhone', version: '10.0' \\}\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare interface OsVersion {\n name: 'Windows' | 'MacOS' | 'Android' | 'iOS' | 'WindowsPhone' | 'Debian' | 'WebOS' | 'Harmony'\n version: string\n}\n\ndeclare function osVersion(ua?: string): OsVersion | null\n```" + }, + { + "kind": "text", + "text": "\n\n#### browserVersion\n\nGet the browser name and version\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.2.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------------------------- | -------- | -------- | -------- | ------------------- |\n| ua | ua or any ua like string, allowed to be undefined | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | navigator.userAgent |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`BrowserVersion | null`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\n// Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Ap…KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36\nbrowserVersion() // \\{ name: 'Chrome', version: '114.0.0.0' \\}\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare interface BrowserVersion {\n name:\n | 'Safari'\n | 'Chrome'\n | 'IE'\n | 'Edge'\n | 'Firefox'\n | 'Firefox Focus'\n | 'Chromium'\n | 'Opera'\n | 'Vivaldi'\n | 'Yandex'\n | 'Arora'\n | 'Lunascape'\n | 'QupZilla'\n | 'Coc Coc'\n | 'Kindle'\n | 'Iceweasel'\n | 'Konqueror'\n | 'Iceape'\n | 'SeaMonkey'\n | 'Epiphany'\n | '360'\n | '360SE'\n | '360EE'\n | 'Maxthon'\n | 'QQBrowser'\n | 'QQ'\n | 'Baidu'\n | 'UC'\n | 'Sogou'\n | 'Liebao'\n | 'LBBROWSER'\n | '2345Explorer'\n | '115Browser'\n | 'TheWorld'\n | 'XiaoMi'\n | 'Vivo'\n | 'Quark'\n | 'Qiyu'\n | 'Wechat'\n | 'WechatWork'\n | 'Taobao'\n | 'Alipay'\n | 'Weibo'\n | 'Douban'\n | 'Suning'\n | 'iQiYi'\n | 'DingTalk'\n | 'Huawei'\n version: string\n}\n\ndeclare function browserVersion(ua?: string): BrowserVersion | null\n```" + }, + { + "kind": "text", + "text": "\n\n#### compareVersion\n\n> v5.8.0 support compare tag version\n\nVersion number size comparison, tag version: " + }, + { + "kind": "code", + "text": "`rc`" + }, + { + "kind": "text", + "text": " > " + }, + { + "kind": "code", + "text": "`beta`" + }, + { + "kind": "text", + "text": " > " + }, + { + "kind": "code", + "text": "`alpha`" + }, + { + "kind": "text", + "text": " > " + }, + { + "kind": "code", + "text": "`other`" + }, + { + "kind": "text", + "text": "\n\n- Since: " + }, + { + "kind": "code", + "text": "`4.7.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------- | -------- | -------- | -------- | ------- |\n| input | input version | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| compare | compare version | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`0 | 1 | -1`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ncompareVersion('1.11.0', '1.9.9')\n// => 1: 1=Version 1.11.0 is newer than 1.9.9\n\ncompareVersion('1.11.0', '1.11.0')\n// => 0: 0=Versions 1.11.0 and 1.11.0 are the same\n\ncompareVersion('1.11.0', '1.99.0')\n// => -1: -1=Version 1.11.0 is older than 1.99.0\n\ncompareVersion('1.0.0.0.0.10', '1.0')\n// => -1\n\n// compare tag version: rc > beta > alpha > other\ncompareVersion('1.11.0', '1.11.0-beta.1')\n// => -1\n\ncompareVersion('1.11.0-beta.1', '1.11.0')\n// => -1\n\ncompareVersion('1.11.0-beta.10', '1.11.0-beta.10')\n// => 0\n\ncompareVersion('1.11.0-alpha.10', '1.11.0-beta.1')\n// => -1\n\ncompareVersion('1.11.0-alpha.10', '1.11.0-rc.1')\n// => -1\n\ncompareVersion('1.11.0-tag.10', '1.11.0-alpha.1')\n// => -1\n\ncompareVersion('1.11.0-tag.10', '1.11.0-tag.1')\n// => 1\n\ncompareVersion('1.11.0-release.10', '1.11.0-tag.1')\n// => 1\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function compareVersion(input: string, compare: string): 0 | 1 | -1\n```" + }, + { + "kind": "text", + "text": "\n\n#### parseUrlParam\n\nparse url params. (If covert is passed true: Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------------------------------------------- | --------- | -------------- | -------- | ------- |\n| url | url string (like: ?key1=value1&key2=value2) | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| covert | Converts a specific string to a corresponding value | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nparseUrlParam(\n '?key1=100&key2=true&key3=null&key4=undefined&key5=NaN&key6=10.888&key7=Infinity&key8=test'\n)\n// \\{\"key1\":\"100\",\"key2\":\"true\",\"key3\":\"null\",\"key4\":\"undefined\",\"key5\":\"NaN\",\"key6\":\"10.888\",\"key7\":\"Infinity\",\"key8\":\"test\"\\}\n\nparseUrlParam(\n '?key1=100&key2=true&key3=null&key4=undefined&key5=NaN&key6=10.888&key7=Infinity&key8=test',\n true\n)\n// \\{\"key1\":100,\"key2\":true,\"key3\":null,\"key5\":NaN,\"key6\":10.888,\"key7\":Infinity,\"key8\":\"test\"\\}\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function parseUrlParam(url: string, covert?: boolean): Record\n```" + }, + { + "kind": "text", + "text": "\n\n#### spliceUrlParam\n\nSplice URL parameters (single layer only)\n\n> v5.20.0 Breaking change: remove encodeURIComponent
\n> v5.21.0 Breaking change: covert support boolean & SpliceUrlParamOptions\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.3.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------------------------------------------------------------------------------- | ------------------------------------ | -------- | -------- | ------- |\n| params | json object | " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| covert | Convert a null value type (null/undefined/) to an empty string or spliceUrlParamOptions | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " \\| " + }, + { + "kind": "code", + "text": "`SpliceUrlParamOptions`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nspliceUrlParam({ key1: '100', key2: true, key3: null, key4: undefined, key5: '测试' })\n// ?key1=100&key2=true&key3=null&key4=undefined&key5=测试\n\nspliceUrlParam(\n { key1: '100', key2: true, key3: null, key4: undefined, key5: '测试' },\n { encode: true }\n)\n// ?key1=100&key2=true&key3=null&key4=undefined&key5=%E6%B5%8B%E8%AF%95\n\nspliceUrlParam({ key1: '100', key2: true, key3: null, key4: undefined }, true)\n// ?key1=100&key2=true&key3=&key4=\n\nspliceUrlParam(\n { key1: '100', key2: true, key3: null, key4: undefined },\n { covert: true, withQuestionsMark: false }\n)\n// key1=100&key2=true&key3=&key4=\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function spliceUrlParam>(\n params: T,\n covert?: SpliceUrlParamOptions | boolean\n): string\n\ndeclare interface SpliceUrlParamOptions {\n covert?: boolean\n encode?: boolean\n withQuestionsMark?: boolean\n}\n```" + }, + { + "kind": "text", + "text": "\n\n#### safeParse\n\nSecure parsing of JSON strings\n\n> support BigInt since " + }, + { + "kind": "code", + "text": "`v5.17.1`" + }, + { + "kind": "text", + "text": "\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.16.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------------------- | --------- | -------------- | -------- | ------- |\n| data | JSON string | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| covert | Whether to convert data | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`Object`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nsafeParse('100')\n// 100\n\nsafeParse('{\"a\":\"undefined\",\"b\":\"NaN\",\"c\":\"Infinity\",\"d\":\"9007199254740993\"}')\n// { b: NaN, c: Infinity, d: 9007199254740993n }\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function safeParse(data: string, covert?: boolean): any\n```" + }, + { + "kind": "text", + "text": "\n\n#### safeStringify\n\nSecure stringify of JSON Object\n\n> support BigInt since " + }, + { + "kind": "code", + "text": "`v5.17.1`" + }, + { + "kind": "text", + "text": "\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.16.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------------------- | --------- | -------------- | -------- | ------- |\n| data | JSON Object | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| covert | Whether to convert data | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nsafeStringify(100)\n// \"100\"\n\nsafeStringify(undefined)\n// \"undefined\"\n\nsafeStringify(NaN)\n// \"NaN\"\n\nsafeStringify(Infinity)\n// \"Infinity\"\n\nsafeStringify({ a: undefined, b: NaN, c: Infinity, d: BigInt(Number.MAX_SAFE_INTEGER) + 2n })\n// {\"a\":\"undefined\",\"b\":\"NaN\",\"c\":\"Infinity\",\"d\":\"9007199254740993\"}\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function safeStringify(data: any, covert?: boolean): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### getDirParam\n\nGet the URL parameter in the form of a directory\n\n> It will be refactored and renamed getDirParams in the next major release.\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | -------- | -------- | -------- | ------- |\n| url | http url | " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\n//\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare interface DirParamType {\n path?: string[]\n host?: string\n}\n\ndeclare function getDirParam(url: string): DirParamType\n```" + }, + { + "kind": "text", + "text": "\n\n#### getQueryParam\n\nGet a single query parameter (behind \"#\")\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------------- | -------- | -------- | -------- | --------------- |\n| key | key name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| url | pass in the url string | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`location.href`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetQueryParam('key1')\n// key1 => xxx\n\ngetQueryParam('key1', 'https://test.com?key1=100#/home?key1=200')\n// key1 => 200\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getQueryParam(key: string): string | undefined\n\ndeclare function getQueryParam(key: string, url: string): string | undefined\n```" + }, + { + "kind": "text", + "text": "\n\n#### getQueryParams\n\nGet all query parameters (behind \"#\"). (If covert is passed true: Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------------------------------------------- | --------- | -------------- | -------- | --------------- |\n| url | pass in the url string | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`location.href`" + }, + { + "kind": "text", + "text": " |\n| covert | Converts a specific string to a corresponding value | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetQueryParams('https://test.com?key1=100#/home?key1=200')\n// \\{\"key1\":\"200\"\\}\n\ngetQueryParams('https://test.com?key1=100#/home?key1=200', true)\n// \\{\"key1\":200\\}\n\ngetQueryParams(true)\n// \\{\"key1\":200\\}\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getQueryParams(url?: string, covert?: boolean): Record | null\n```" + }, + { + "kind": "text", + "text": "\n\n#### getUrlParam\n\nGet a single URL parameter (from the \"location.search\", before \"#\")\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------------- | -------- | -------- | -------- | --------------- |\n| key | key name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| url | pass in the url string | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`location.href`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetUrlParam('key1')\n// key1 => xxx\n\ngetUrlParam('key1', 'https://test.com?key1=100#/home?key1=200')\n// key1 => 100\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getUrlParam(key: string): string | undefined\n\ndeclare function getUrlParam(key: string, url: string): string | undefined\n```" + }, + { + "kind": "text", + "text": "\n\n#### getUrlParams\n\nGet all URL parameters (from the \"location.search\", before \"#\"). (If covert is passed true: Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------------------------------------------- | --------- | -------------- | -------- | --------------- |\n| url | pass in the url string | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`location.href`" + }, + { + "kind": "text", + "text": " |\n| covert | Converts a specific string to a corresponding value | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetUrlParams('https://test.com?key1=100#/home?key1=200')\n// \\{\"key1\":\"100\"\\}\n\ngetUrlParams('https://test.com?key1=100#/home?key1=200', true)\n// \\{\"key1\":100\\}\n\ngetUrlParams(true)\n// \\{\"key1\":100\\}\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getUrlParams(url?: string, covert?: boolean): Record | null\n```" + }, + { + "kind": "text", + "text": "\n\n### localStorage & sessionStorage & Cookie\n\n#### getCache\n\nGet the cache, if the deposited is Object, the retrieved is also Object, no need to convert again\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------- | -------- | -------- | -------- | ------- |\n| name | cache key name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { getCache, setCache } from 'js-cool'\n\nconst data1 = 100\nconst data2 = { a: 10 }\nconst data3 = null\n\nsetCache('data1', data1)\nsetCache('data2', data2)\nsetCache('data3', data3)\n\ngetCache('data1') // 100\ngetCache('data2') // {a:10}\ngetCache('data3') // null\n\ngetCache('data4') // null\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getCache(name: string): any\n```" + }, + { + "kind": "text", + "text": "\n\n#### setCache\n\nSet the cache, if the deposited is Object, the retrieved is also Object, no need to convert again\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------------------------------------- | -------- | -------- | -------- | ------- |\n| name | cache key name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| value | cache data, can be passed directly into Object | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| seconds | cache time (seconds) | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { getCache, setCache } from 'js-cool'\n\nconst data1 = 100\nconst data2 = { a: 10 }\nconst data3 = null\n\nsetCache('data1', data1)\nsetCache('data2', data2, 10)\n\ngetCache('data1') // 100\ngetCache('data2') // {a:10}\n\nsetTimeout(() => {\n getCache('data2') // null\n}, 15000)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function setCache(name: string, value: T, seconds?: number | string): void\n```" + }, + { + "kind": "text", + "text": "\n\n#### delCache\n\nDelete localStorage\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------- | -------- | -------- | -------- | ------- |\n| name | cache key name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndelCache('data')\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function delCache(name: string): void\n```" + }, + { + "kind": "text", + "text": "\n\n#### getSession\n\nGet the session, if the deposited is Object, the retrieved is also Object, no need to convert again\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------- | -------- | -------- | -------- | ------- |\n| name | session key name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nconst data1 = 100\nconst data2 = { a: 10 }\nconst data3 = null\n\nsetSession('data1', data1)\nsetSession('data2', data2)\nsetSession('data3', data3)\n\ngetSession('data1') // 100\ngetSession('data2') // {a:10}\ngetSession('data3') // null\n\ngetSession('data4') // null\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getSession(name: string): any\n```" + }, + { + "kind": "text", + "text": "\n\n#### setSession\n\nSet the session, if the deposited is Object, the retrieved is also Object, no need to convert again\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------------------------ | -------- | -------- | -------- | ------- |\n| name | session key name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| value | session data, can be passed directly into Object | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| seconds | session time (seconds) | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { getSession, setSession } from 'js-cool'\n\nconst data1 = 100\nconst data2 = { a: 10 }\nconst data3 = null\n\nsetSession('data1', data1)\nsetSession('data2', data2, 10)\n\ngetSession('data1') // 100\ngetSession('data2') // {a:10}\n\nsetTimeout(() => {\n getSession('data2') // null\n}, 15000)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function setSession(name: string, value: T, seconds?: number | string): void\n```" + }, + { + "kind": "text", + "text": "\n\n#### delSession\n\nDelete sessionStorage\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------- | -------- | -------- | -------- | ------- |\n| name | session key name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndelSession('data')\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function delSession(name: string): void\n```" + }, + { + "kind": "text", + "text": "\n\n#### getCookie\n\nGet cookie by name\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------- | -------- | -------- | -------- | ------- |\n| name | cookie key name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetCookie('data1') // 100\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getCookie(name: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### getCookies\n\nGet all cookies\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.6.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments: 'none'\n\n- Returns: " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetCookies()\n// { token: 'xxx', name: 'saqqdy' }\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getCookies(): Record\n```" + }, + { + "kind": "text", + "text": "\n\n#### setCookie\n\nSet cookie\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------------------------------------------- | -------- | ---------------------- | -------- | ------- |\n| name | cookie key name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| value | cookie data, can be passed directly into Object | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| seconds | cookie time (seconds) | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n| path | cookie path | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`/`" + }, + { + "kind": "text", + "text": " |\n| samesite | SameSite type | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`Strict`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`Lax`" + }, + { + "kind": "text", + "text": " /" + }, + { + "kind": "code", + "text": "`None`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`None`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { getCookie, setCookie } from 'js-cool'\n\nconst data1 = 100\nconst data2 = 200\n\nsetCookie('data1', data1)\nsetCookie('data2', data2, 10)\n\ngetCookie('data1') // 100\ngetCookie('data2') // 200\n\nsetTimeout(() => {\n getCookie('data2') // null\n}, 15000)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function setCookie(\n name: string,\n value: T,\n seconds: string | number,\n path?: string,\n samesite?: boolean\n): void\n```" + }, + { + "kind": "text", + "text": "\n\n#### delCookie\n\nDelete cookie\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------- | -------- | -------- | -------- | ------- |\n| name | cookie key name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndelCookie('data')\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function delCookie(name: string): void\n```" + }, + { + "kind": "text", + "text": "\n\n### Base64 & UTF8\n\n#### encodeBase64\n\nconvert strings, numbers to base64\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------ | ----------------- | -------- | -------- | ------- |\n| input | the string to be encoded | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nencodeBase64('data')\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function encodeBase64(name: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### decodeBase64\n\nbase64 decoding\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------ | ----------------- | -------- | -------- | ------- |\n| input | the string to be decoded | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndecodeBase64('data')\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function decodeBase64(name: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### encodeUtf8\n\nconvert strings, numbers to utf8\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------ | ----------------- | -------- | -------- | ------- |\n| input | the string to be encoded | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nencodeUtf8('data')\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function encodeUtf8(name: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### decodeUtf8\n\nutf8 decoding\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------ | ----------------- | -------- | -------- | ------- |\n| input | the string to be decoded | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndecodeUtf8('data')\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function decodeUtf8(name: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n### Events\n\n#### stopBubble\n\nstop bubbling\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------ | ------- | -------- | -------- | ------- |\n| e | dom's event object | " + }, + { + "kind": "code", + "text": "`Event`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nstopBubble(event)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function stopBubble(e: Event): boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### stopDefault\n\nstop default events\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------ | ------- | -------- | -------- | ------- |\n| e | dom's event object | " + }, + { + "kind": "code", + "text": "`Event`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nstopDefault(event)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function stopDefault(e: Event): boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### addEvent\n\nevent delegate, support multiple delegates\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------------------------------- | ------------- | -------- | -------- | ------- |\n| element | js dom object | " + }, + { + "kind": "code", + "text": "`HTMLElement`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| type | The type of the event. No need to add on | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| handler | Callback method | " + }, + { + "kind": "code", + "text": "`function`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\naddEvent(document, 'click', functionName)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function addEvent(element: AnyObject, type: string, handler: AnyFunction): void\n```" + }, + { + "kind": "text", + "text": "\n\n#### removeEvent\n\nremoveEvent removes the event delegate created by addEvent\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------------------------------- | ------------- | -------- | -------- | ------- |\n| element | js dom object | " + }, + { + "kind": "code", + "text": "`HTMLElement`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| type | The type of the event. No need to add on | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| handler | Callback method | " + }, + { + "kind": "code", + "text": "`function`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nremoveEvent(document, 'click', functionName)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function removeEvent(element: AnyObject, type: string, handler: AnyFunction): void\n```" + }, + { + "kind": "text", + "text": "\n\n#### getScrollPosition\n\nGet slide to top and bottom return 'top' 'bottom', recommend using limit flow\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments: " + }, + { + "kind": "code", + "text": "`none`" + }, + { + "kind": "text", + "text": "\n\n- Returns: 'top' | 'bottom' | undefined\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetScrollPosition() // ‘bottom’\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getScrollPosition(): string | void\n```" + }, + { + "kind": "text", + "text": "\n\n### Utilities\n\n#### nextIndex\n\nreturn the next zIndex value\n\n> change mix defaults to 0\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | -------- | -------- | -------- | ------- |\n| min | minimum value | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`0`" + }, + { + "kind": "text", + "text": " |\n| max | maximum value | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nnextIndex() // 1\n\nnextIndex(1000) // 1001\n\nnextIndex(10, 100) // 100\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function nextIndex(min?: number, max?: number): number\n```" + }, + { + "kind": "text", + "text": "\n\n#### nextVersion\n\nreturn the next version, **Only version types with no more than 3 digits are supported**. (Follow the npm version rules)\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.10.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------------- | --------------------------------------------------------------------------------------- | -------- | -------- | ------- |\n| version | version(like: 1.0.0) | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| type | version type | " + }, + { + "kind": "code", + "text": "`major`" + }, + { + "kind": "text", + "text": " \\| " + }, + { + "kind": "code", + "text": "`minor`" + }, + { + "kind": "text", + "text": " \\| " + }, + { + "kind": "code", + "text": "`patch`" + }, + { + "kind": "text", + "text": " \\| " + }, + { + "kind": "code", + "text": "`premajor`" + }, + { + "kind": "text", + "text": " \\| " + }, + { + "kind": "code", + "text": "`preminor`" + }, + { + "kind": "text", + "text": " \\| " + }, + { + "kind": "code", + "text": "`prepatch`" + }, + { + "kind": "text", + "text": " \\| " + }, + { + "kind": "code", + "text": "`prerelease`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`patch`" + }, + { + "kind": "text", + "text": " |\n| preid | prerelease id | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | '' |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nnextVersion('1.2.33') // 1.2.34\n\nnextVersion('1.2.33', 'major') // 2.0.0\n\nnextVersion('1.2.33', 'premajor', 'alpha') // 2.0.0-alpha.1\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function nextVersion(\n version: string,\n type?: 'major' | 'minor' | 'patch' | 'premajor' | 'preminor' | 'prepatch' | 'prerelease',\n preid?: string\n): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### punctualTimer\n\npunctual setInterval\n\n> v5.23.0 got returns of PunctualTimerReturns\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.18.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------- | -------- | -------- | ------- |\n| handler | A function to be executed after the timer expires. | " + }, + { + "kind": "code", + "text": "`function`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| delay | The time, in milliseconds that the timer should wait before the specified function or code is executed. If this parameter is omitted, a value of 0 is used, meaning execute \"immediately\", or more accurately, the next event cycle. | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| ...args | Additional arguments which are passed through to the function specified by handler. | " + }, + { + "kind": "code", + "text": "`any[]`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`PunctualTimerReturns`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nconst printDate = () => console.log(new Date())\nconst timer = punctualTimer(printDate, 1000)\nconsole.log(timer.count) // 10\ntimer.clear() // clear punctualTimer or use clearTimeout(timer.timer)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function punctualTimer(\n handler: (args: void) => void,\n delay: number,\n [...args]?: TArgs\n): PunctualTimerReturns\n\ndeclare function punctualTimer(\n handler: (...args: TArgs) => void,\n delay: number,\n [...args]?: TArgs\n): PunctualTimerReturns\n\ndeclare interface PunctualTimerReturns {\n count: number\n timer: number | null\n clear: () => void\n}\n```" + }, + { + "kind": "text", + "text": "\n\n#### promiseFactory\n\nConvert an object to a promise like api\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.10.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------------- | ---------- | -------- | -------- | ------- |\n| original | original object | " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| resolver | resolver function | " + }, + { + "kind": "code", + "text": "`Function`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`T & PromiseLike`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { promiseFactory, waiting } from 'js-cool'\n\nfunction promise() {\n const stats = {\n value: 100\n }\n\n const resolver = () =>\n new Promise(resolve =>\n waiting(2000).then(() => {\n stats.value = 200\n resolve(stats)\n })\n )\n\n return promiseFactory(stats, resolver)\n}\n\nconst res = promise()\n// res => 100\nconst res = await promise()\n// res => 200\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function promiseFactory(\n original: T,\n resolver: () => Promise\n): T & PromiseLike\n```" + }, + { + "kind": "text", + "text": "\n\n#### fixNumber\n\ntruncate a few decimal places, not 0 for shortage\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------------ | ----------------- | -------- | -------- | ------- |\n| number | the number of digits to be processed | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| n | the number of decimal places to keep | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`2`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string | number`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nfixNumber('100.888')\n// 100.88\n\nfixNumber('100.8', 2)\n// 100.8\n\nfixNumber('100.8888', 3)\n// 100.888\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function fixNumber(number: string | number, n?: number): number\n```" + }, + { + "kind": "text", + "text": "\n\n#### mapTemplate\n\nReplacing specific data in a template string, support " + }, + { + "kind": "code", + "text": "`${xxxx}`" + }, + { + "kind": "text", + "text": " " + }, + { + "kind": "code", + "text": "`{{xxxx}}`" + }, + { + "kind": "text", + "text": " and " + }, + { + "kind": "code", + "text": "`{xxxx}`" + }, + { + "kind": "text", + "text": "\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.9.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------------------------- | --------------------- | -------- | -------- | ------- |\n| tmp | Template string | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| data | Template data of map function | " + }, + { + "kind": "code", + "text": "`Function`" + }, + { + "kind": "text", + "text": "\\| " + }, + { + "kind": "code", + "text": "`Object`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nconst tmp = \"My name is ${name}, I'm ${age} years old.\"\nmapTemplate(tmp, {\n name: 'saqqdy',\n age: 18\n})\n// My name is saqqdy, I'm 18 years old.\n\nmapTemplate(tmp, key => ({ name: 'saqqdy', age: 28 })[key])\n// My name is saqqdy, I'm 28 years old.\n\nconst tmp1 = \"My name is {{name}}, I'm {{age}} years old.\"\nmapTemplate(tmp1, {\n name: 'saqqdy',\n age: 18\n})\n// My name is saqqdy, I'm 18 years old.\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function mapTemplate(\n tmp: string,\n data: ((value: string) => unknown) | Record\n): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### extend\n\ndeep copy & merge objects\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------------------- | ------------------------------------ | -------- | -------- | ------- |\n| target | boolean or array or object | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`ArrayOneMore`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| ...args | array or object | " + }, + { + "kind": "code", + "text": "`ArrayOneMore`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`array | object`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nextend(true, {}, {})\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function extend(\n target: ExtendObjectData,\n ...args: ArrayOneMore\n): ExtendObjectData\n\ndeclare function extend(target: boolean, ...args: ArrayOneMore): ExtendObjectData\n\ndeclare function extend(\n target: ExtendArrayData,\n ...args: ArrayOneMore\n): ExtendArrayData\n\ndeclare function extend(target: boolean, ...args: ArrayOneMore): ExtendArrayData\n\ndeclare type ExtendArrayData = any[]\n\ndeclare type ExtendData = ExtendArrayData | ExtendObjectData\n\ndeclare type ExtendObjectData = Record\n```" + }, + { + "kind": "text", + "text": "\n\n#### clone\n\ndeep copy (Buffer, Promise, Set, Map are not supported)\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.15.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | ----- | -------- | -------- | ------- |\n| source | source object | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nconst source = { a: 100, reg: /\\d+/g, arr: [1, 2] }\nconst res = clone(source)\n// { a: 100, reg: /\\d+/g, arr: [1, 2] }\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function clone(parent: T): T\n```" + }, + { + "kind": "text", + "text": "\n\n#### delay\n\nanti-dither throttling\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments: " + }, + { + "kind": "code", + "text": "`none`" + }, + { + "kind": "text", + "text": "\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nconst delay = new Delay()\n\ndelay.register('key', () => {\n //\n})\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function delay(): {\n map: any\n register(id: string, fn: AnyFunction, time: number, boo: boolean): void\n destroy(id: string): void\n}\n```" + }, + { + "kind": "text", + "text": "\n\n#### getType\n\nGet the target type\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ----- | -------- | -------- | ------- |\n| target | any target | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetType({}) // object\ngetType([]) // array\ngetType(new Promise()) // promise\ngetType(new Date()) // date\ngetType(async () => {}) // function\ngetType(navigator) // navigator\ngetType(global) // global\ngetType(window) // window\ngetType(Symbol('')) // symbol\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getType(\n target: T\n):\n | 'string'\n | 'number'\n | 'bigint'\n | 'boolean'\n | 'symbol'\n | 'undefined'\n | 'object'\n | 'function'\n | 'window'\n | 'error'\n | 'promise'\n | 'math'\n | 'document'\n | 'navigator'\n | 'global'\n | 'array'\n | 'date'\n | 'regexp'\n | 'null'\n```" + }, + { + "kind": "text", + "text": "\n\n#### getFileType\n\nDetermine file type based on link suffix\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.11.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | -------- | -------- | -------- | ------- |\n| url | file url | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetFileType('/name.png')\n// { \"suffix\": \"png\", \"type\": \"image\" }\n\ngetFileType('/name.PDF')\n// { \"suffix\": \"pdf\", \"type\": \"pdf\" }\n\ngetFileType('/name.xyz')\n// { \"suffix\": \"xyz\", \"type\": \"other\" }\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getFileType(url: string): {\n suffix: string\n type: 'audio' | 'video' | 'image' | 'other' | 'word' | 'txt' | 'excel' | 'pdf' | 'ppt' | 'zip'\n}\n```" + }, + { + "kind": "text", + "text": "\n\n#### sorter\n\nSorter factory function\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.14.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------------------------------------------------------- | ---------------------- | -------- | -------- | ------- |\n| locales | A string with a BCP 47 language tag, or an array of such strings | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " " + }, + { + "kind": "code", + "text": "`Array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n| options | An object adjusting the output format. | " + }, + { + "kind": "code", + "text": "`Intl.CollatorOptions`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`Function`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nconst items = ['啊我', '波拉', 'abc', 0, 3, '10', ',11', 13, null, '阿吧', 'ABB', 'BDD', 'ACD', 'ä']\n\nitems.sort(\n sorter('zh-Hans-CN', {\n ignorePunctuation: true,\n sensitivity: 'variant',\n numeric: true\n })\n)\n// [ 0, 3, \"10\", \",11\", 13, \"ä\", \"ABB\", \"abc\", \"ACD\", \"BDD\", null, \"阿吧\", \"啊我\", \"波拉\" ]\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function sorter(\n locales?: string | string[],\n options?: Intl.CollatorOptions\n): (a: T, b: P) => number\n```" + }, + { + "kind": "text", + "text": "\n\n#### sortPinyin\n\nSort Chinese by Chinese phonetic alphabet\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.14.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------------------------------- | ---------------------- | -------- | -------- | ------- |\n| a | The first element for comparison. | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| b | The second element for comparison. | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| options | An object adjusting the output format. | " + }, + { + "kind": "code", + "text": "`Intl.CollatorOptions`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nconst items = ['啊我', '波拉', 'abc', 0, 3, '10', ',11', 13, null, '阿吧', 'ABB', 'BDD', 'ACD', 'ä']\n\nitems.sort(sortPinyin)\n// [ \",11\", 0, \"10\", 13, 3, \"ä\", \"ABB\", \"abc\", \"ACD\", \"BDD\", null, \"阿吧\", \"啊我\", \"波拉\" ]\n\nitems.sort((a, b) => sortPinyin(a, b, { ignorePunctuation: true, numeric: true }))\n// [ 0, 3, \"10\", \",11\", 13, \"ä\", \"ABB\", \"abc\", \"ACD\", \"BDD\", null, \"阿吧\", \"啊我\", \"波拉\" ]\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function sortPinyin(\n a: T,\n b: P,\n options?: Intl.CollatorOptions\n): number\n```" + }, + { + "kind": "text", + "text": "\n\n#### cleanData\n\nData cleaning methods\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------------------------------------------------------------------------------------------- | ---------------- | -------- | -------- | ------- |\n| data | the object to be cleaned | " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| map | the data queue to be cleaned, can be passed as array or object | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| nullFix | the value returned if there is no corresponding property, the default does not return the property | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\n//\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function cleanData(data: any, map: any[] | AnyObject, nullFix?: any): any\n```" + }, + { + "kind": "text", + "text": "\n\n#### download\n\nSeveral ways of file downloading:\n\n1. For file formats that some browsers do not recognize. Enter the file URL in the address bar, window.location.href = URL, window.open(URL);\n2. using a tag download attribute (or js create a tag);\n3. browser-recognizable pdf, txt files, back-end compatible with handling attachment;\n4. add token in the header for authenticated download, use XmlHttpRequest to want to backend to launch the request\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.5`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | -------- | ---------------------------------- | -------- | ---------- |\n| url | url link | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| filename | file name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| type | download type | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`href`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`open`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`download`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`request`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`download`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndownload('https://unpkg.com/browse/js-cool@5.2.0/dist/index.global.prod.js')\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function download(url: string, filename: string, type?: string): void\n```" + }, + { + "kind": "text", + "text": "\n\n#### searchObject\n\ntree object depth lookup\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------------------------------------------- | ---------------- | -------- | -------- | ------- |\n| tree | tree object | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| expression | required Query method | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| keySet | optional Default subclass name, query name | " + }, + { + "kind": "code", + "text": "`SearchKeySet`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| number | optional Number of lookups, if not passed, query all | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\n//\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function searchObject(\n tree: object | any[],\n expression: any,\n keySet: SearchKeySet,\n number?: number\n): any[]\n```" + }, + { + "kind": "text", + "text": "\n\n#### openUrl\n\nOpen link in new tab (file jump download if browser can't parse)\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.6`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | -------- | -------- | -------- | ------- |\n| url | http url | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean | undefined`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nopenUrl('https://www.saqqdy.com/js-cool')\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function openUrl(url: string): void\n```" + }, + { + "kind": "text", + "text": "\n\n#### copy\n\ncopy to clipboard\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ----- | -------- | -------- | ------- |\n| value | any value | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean | undefined`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ncopy('10000')\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function copy(value: string): boolean | undefined\n```" + }, + { + "kind": "text", + "text": "\n\n#### toThousands\n\nDigital thousandths division\n\n- Since: " + }, + { + "kind": "code", + "text": "`3.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ----------------- | -------- | -------- | ------- |\n| num | the number | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ntoThousands(10000) // '10,000'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function toThousands(num: string | number): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### all\n\nreturn true if the provided predicate function returns true for all elements in a set, otherwise return false\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.9`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------- | ---------- | -------- | -------- | ------- |\n| arr | the target array | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| fn | the judgment method | " + }, + { + "kind": "code", + "text": "`function`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nall([4, 2, 3], x => x > 1)\n// true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare const all: (arr: T[], fn: AnyFunction) => boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### any\n\nReturns true if the provided predicate function returns true for at least one element of a set, false otherwise\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.9`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------- | ---------- | -------- | -------- | ------- |\n| arr | the target array | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| fn | the judgment method | " + }, + { + "kind": "code", + "text": "`function`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nany([0, 1, 2, 0], x => x >= 2)\n// true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare const any: (arr: T[], fn: AnyFunction) => boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### uuid\n\ngenerate uuid on browser side, use v4 method\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.9`" + }, + { + "kind": "text", + "text": "\n\n- Arguments: " + }, + { + "kind": "code", + "text": "`none`" + }, + { + "kind": "text", + "text": "\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nuuid() // '4222fcfe-5721-4632-bede-6043885be57d'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare const uuid: () => string\n```" + }, + { + "kind": "text", + "text": "\n\n#### CSVToArray\n\nConverts a comma-separated string of values (CSV) to a 2D array.\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.9`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ------------ | -------------------------------------- | --------- | -------- | -------- | ------- |\n| data | csv data | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| delimiter | delimiter | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | ',' |\n| omitFirstRow | the first row is the table header data | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nCSVToArray('a,b\\\\nc,d') // `[['a','b'],['c','d']]`\nCSVToArray('a;b\\\\\\nc;d', ';') // `[['a','b'],['c','d']]`\nCSVToArray('col1,col2\\\\\\na,b\\\\\\nc,d', ',', true) // `[['a','b'],['c','d']]`\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare const CSVToArray: (data: string, delimiter?: string, omitFirstRow?: boolean) => string[][]\n```" + }, + { + "kind": "text", + "text": "\n\n#### arrayToCSV\n\nConverts a two-dimensional array to a comma-separated string of values (CSV).\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.9`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | -------- | -------- | -------- | ------- |\n| arr | json data | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| delimiter | delimiter | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | ',' |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\narrayToCSV([\n ['a', 'b'],\n ['c', 'd']\n])\n// '\"a\", \"b\" \\n \"c\", \"d\"'\n\narrayToCSV(\n [\n ['a', 'b'],\n ['c', 'd']\n ],\n ';'\n)\n// '\"a\"; \"b\"\\n \"c\"; \"d\"'\n\narrayToCSV([\n ['a', '\"b\" great'],\n ['c', 3.1415]\n])\n// '\"a\", \"\"\"b\"\" great\"\\n \"c\",3.1415'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function arrayToCSV(data: T, delimiter?: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### CSVToJSON\n\nConverts a comma-separated string of values (CSV) to an array of 2D objects. The first line of the string is used as the header line.\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.9`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | -------- | -------- | -------- | ------- |\n| data | csv data | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| delimiter | delimiter | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | ',' |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nCSVToJSON('col1,col2\\\\na,b\\\\\\nc,d')\n// `[{'col1': 'a', 'col2': 'b'}, {'col1': 'c', 'col2': 'd'}]`\n\nCSVToJSON('col1;col2\\\\\\na;b\\\\\\nc;d', ';')\n// `[{'col1': 'a', 'col2': 'b'}, {'col1': 'c', 'col2': 'd'}]`\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function CSVToJSON(data: string, delimiter?: string): any[]\n```" + }, + { + "kind": "text", + "text": "\n\n#### JSONToCSV\n\nConverts an array of objects to a comma-separated value (CSV) string containing only the specified columns.\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.9`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------------- | -------- | -------- | -------- | ------- |\n| arr | json data | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| columns | the specified columns | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| delimiter | delimiter | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | ',' |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nJSONToCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b']) // 'a,b\\n \"1\", \"2\"\\n \"3\", \"4\"\\n \"6\",\"\"\\n\"\", \"7\"'\nJSONToCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b'], ';') // 'a;b\\n \"1\"; \"2\"\\n \"3\"; \"4\"\\n \"6\";\"\"\\n\"\"; \"7\"'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare const JSONToCSV: (arr: any[], columns: any[], delimiter?: string) => string\n```" + }, + { + "kind": "text", + "text": "\n\n#### RGBToHex\n\nConverts RGB component values to color codes.\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.9`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------------- | -------- | -------- | -------- | ------- |\n| r | the 1st value of RGB | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| g | RGB's 2nd value | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| b | RGB's 3nd value | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nRGBToHex(255, 165, 1) // 'ffa501'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare const RGBToHex: (r: number, g: number, b: number) => string\n```" + }, + { + "kind": "text", + "text": "\n\n#### intersect\n\nFind the intersection of multiple arrays\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.2.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | ------- | -------- | -------- | ------- |\n| ...arr | array targets | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nintersect([1, 2], [2, 3, 4], [2, 8], [2, '33']) // [2]\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function intersect(...args: T[][]): T[]\n```" + }, + { + "kind": "text", + "text": "\n\n#### union\n\nFind the concatenation of multiple arrays\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.2.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | ------- | -------- | -------- | ------- |\n| ...arr | array targets | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nunion([1, 2], [2, '33']) // [1, 2, '33']\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function union(...args: T[][]): T[]\n```" + }, + { + "kind": "text", + "text": "\n\n#### minus\n\nFind the set of differences of multiple arrays that belong to A but not to B/C/D... of the elements of\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.2.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | ------- | -------- | -------- | ------- |\n| ...arr | array targets | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nminus([1, 2], [2, '33'], [2, 4]) // [1]\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function minus(...args: T[][]): T[]\n```" + }, + { + "kind": "text", + "text": "\n\n#### complement\n\nFind the complement of multiple arrays\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.2.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | ------- | -------- | -------- | ------- |\n| ...arr | array targets | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ncomplement([1, 2], [2, '33'], [2]) // [1, '33']\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function complement(...args: T[][]): T[]\n```" + }, + { + "kind": "text", + "text": "\n\n#### contains\n\nWhether the array contains the specified element\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.2.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------- | ------- | -------- | -------- | ------- |\n| arr | array target | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| item | any array member | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ncontains([1, 2], 2) // true\ncontains([1, 2], 3) // false\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function contains(arr: any[], item: any): boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### unique\n\nArray de-duplication\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.2.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------ | ------- | -------- | -------- | ------- |\n| arr | array target | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nunique([1, 2, 2, '33']) // [1, 2, '33']\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function unique(arr: T[]): T[]\n```" + }, + { + "kind": "text", + "text": "\n\n#### fillIPv6\n\nipv6 address completion\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.2.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | -------- | -------- | -------- | ------- |\n| ip | ip address | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nfillIPv6('2409:8005:800::2') // '2409:8005:0800:0000:0000:0000:0000:0002'\nfillIPv6('2409:8005:800::1c') // '2409:8005:0800:0000:0000:0000:0000:001c'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function fillIPv6(ip: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### getProperty\n\nGet array, object property values based on path string\n\n> v5.19.0 support defaultValue\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.2.4`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ------------ | ------------------------------- | ------------------- | -------- | -------- | ------- |\n| target | target array, object | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| prop | query target, can pass function | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`function`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| defaultValue | default value | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nconst target = {\n a: 1,\n b: [\n {\n c: 2,\n d: NaN\n }\n ]\n}\ngetProperty(target, 'a') // 1\ngetProperty(target, 'd', 100) // 100\ngetProperty(target, 'b[0].c') // 2\ngetProperty(target, 'b[0].d', 100) // 100\ngetProperty(target, () => 'a') // 1\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\nexport declare function getProperty>(\n target: T,\n prop:\n | string\n | {\n (): string\n },\n defaultValue?: any\n): any\n\nexport declare function getProperty>(\n target: T,\n prop:\n | string\n | {\n (): string\n },\n defaultValue?: any\n): any\n```" + }, + { + "kind": "text", + "text": "\n\n#### setProperty\n\nSet array, object property values based on path string\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.7.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------------------------------------------- | ------------------- | -------- | -------- | ------- |\n| target | target array, object | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| prop | set target, support function, 'a' \\| 'a\\[1\\].c' | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`function`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| value | value | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nconst target = {\n a: 1,\n b: [\n {\n c: 2\n }\n ]\n}\nsetProperty(target, 'a', 2)\nsetProperty(target, 'b[0].c', 3)\nsetProperty(target, () => 'a', 100)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function setProperty(\n target: any,\n prop:\n | string\n | {\n (): string\n },\n value: any\n): any\n```" + }, + { + "kind": "text", + "text": "\n\n#### loadSource\n\nload resources dynamically, support js, images, css links, css style strings\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.8.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------------------------------------------------------------- | --------------- | -------- | -------- | ------- |\n| url | link to the resource, type must be passed when passing in styleString | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| options | parameters: attrs, props, force | " + }, + { + "kind": "code", + "text": "`SourceOptions`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean | imageUrl`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nloadSource('/source/url', options)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { ImageAttributes } from 'mount-image'\nimport { LinkAttributes } from 'mount-css'\nimport { ScriptAttributes } from 'mount-script'\nimport { StyleAttributes } from 'mount-style'\n\ndeclare function loadSource(\n url: string,\n option: SourceFileType | SourceOptions\n): Promise\n\ndeclare type SourceFileType = 'js' | 'img' | 'css' | 'style' | string\n\ndeclare interface SourceOptions {\n type: SourceFileType\n attrs?: LinkAttributes | StyleAttributes | ScriptAttributes | ImageAttributes\n props?: LinkAttributes | StyleAttributes | ScriptAttributes | ImageAttributes\n force?: boolean\n}\n```" + }, + { + "kind": "text", + "text": "\n\n#### mountCss\n\ndynamically load css link resources\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.8.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------- | ------------ | -------- | -------- | ------- |\n| url | resource url | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| options | parameters: attrs, props, force | " + }, + { + "kind": "code", + "text": "`CssOptions`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nmountCss('/source/url', options)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare interface CssOptions {\n attrs?: LinkAttributes\n props?: LinkAttributes\n force?: boolean\n}\n\ndeclare interface HTMLLinkElementEX extends HTMLLinkElement {\n onreadystatechange?: any\n readyState?: 'loaded' | 'complete'\n}\n\ndeclare type LinkAttributes = Pick<\n HTMLLinkElement,\n | 'as'\n | 'charset'\n | 'crossOrigin'\n | 'disabled'\n | 'href'\n | 'hreflang'\n | 'imageSizes'\n | 'imageSrcset'\n | 'integrity'\n | 'media'\n | 'referrerPolicy'\n | 'rel'\n | 'rev'\n | 'target'\n | 'type'\n>\n\ndeclare function mountCss(src: string, option?: CssOptions): Promise\n```" + }, + { + "kind": "text", + "text": "\n\n#### mountImg\n\nload image resource dynamically\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.8.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------- | ------------ | -------- | -------- | ------- |\n| url | resource url | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| options | parameters: attrs, props, force | " + }, + { + "kind": "code", + "text": "`ImgOptions`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean | imageUrl`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nmountImg('/source/url', options)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare interface HTMLImageElementEX extends HTMLImageElement {\n onreadystatechange?: any\n readyState?: 'loaded' | 'complete'\n}\n\ndeclare type ImageAttributes = Pick<\n HTMLImageElement,\n | 'align'\n | 'alt'\n | 'border'\n | 'crossOrigin'\n | 'decoding'\n | 'height'\n | 'hspace'\n | 'isMap'\n | 'loading'\n | 'longDesc'\n | 'lowsrc'\n | 'name'\n | 'referrerPolicy'\n | 'sizes'\n | 'src'\n | 'srcset'\n | 'useMap'\n | 'vspace'\n | 'width'\n>\n\ndeclare interface ImgOptions {\n attrs?: ImageAttributes\n props?: ImageAttributes\n force?: boolean\n}\n\ndeclare function mountImage(src: string, option?: ImgOptions): Promise\n```" + }, + { + "kind": "text", + "text": "\n\n#### mountJs\n\nload js link resources dynamically\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.8.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------- | ----------- | -------- | -------- | ------- |\n| url | resource url | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| options | parameters: attrs, props, force | " + }, + { + "kind": "code", + "text": "`JsOptions`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nmountJs('/source/url', options)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare interface HTMLScriptElementEX extends HTMLScriptElement {\n onreadystatechange?: any\n readyState?: 'loaded' | 'complete'\n}\n\ndeclare interface JsOptions {\n attrs?: ScriptAttributes\n props?: ScriptAttributes\n force?: boolean\n}\n\ndeclare function mountJs(src: string, option?: JsOptions): Promise\n\ndeclare type ScriptAttributes = Pick<\n HTMLScriptElement,\n | 'async'\n | 'charset'\n | 'crossOrigin'\n | 'defer'\n | 'event'\n | 'htmlFor'\n | 'integrity'\n | 'noModule'\n | 'referrerPolicy'\n | 'src'\n | 'text'\n | 'type'\n>\n```" + }, + { + "kind": "text", + "text": "\n\n#### mountStyle\n\nload css styles dynamically\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.8.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------- | -------------- | -------- | -------- | ------- |\n| url | resource url | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| options | parameters: attrs, props, force | " + }, + { + "kind": "code", + "text": "`StyleOptions`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nmountStyle('/source/url', options)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function mountStyle(css: string, option?: StyleOptions): Promise\n\ndeclare type StyleAttributes = Pick\n\ndeclare interface StyleOptions {\n attrs?: StyleAttributes\n props?: StyleAttributes\n}\n```" + }, + { + "kind": "text", + "text": "\n\n#### preloader\n\nImage preloading\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.5.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ---------------- | -------- | -------- | ------- |\n| images | images url | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: void\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\npreloader('path/of/image')\n\npreloader(['path/of/image'])\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function preloader(images: string): HTMLImageElement\n\ndeclare function preloader(images: string[]): Record\n```" + }, + { + "kind": "text", + "text": "\n\n#### waiting\n\n> v5.8.1 Support throw on timeout\n\nwaiting for a while\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.5.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| -------------- | --------------------------- | --------- | -------- | -------- | ------- |\n| milliseconds | waiting time (milliseconds) | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| throwOnTimeout | throw on timeout | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`Promise`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nwaiting(2000)\n\nawait waiting(2000, true)\n// reject\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function waiting(milliseconds: number, throwOnTimeout?: boolean): Promise\n```" + }, + { + "kind": "text", + "text": "\n\n#### awaitTo\n\nAsync await wrapper for easy error handling\n\n> v5.7.0 Extend awaitTo to support passing in multiple promises\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.2.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ----------- | ------------------- | --------------------- | -------- | -------- | ------- |\n| promise | promise function | " + }, + { + "kind": "code", + "text": "`Promise`" + }, + { + "kind": "text", + "text": " " + }, + { + "kind": "code", + "text": "`Promise[]`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| ...promises | Promise rest params | " + }, + { + "kind": "code", + "text": "`Promise[]`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`[Error, undefined]`" + }, + { + "kind": "text", + "text": " or " + }, + { + "kind": "code", + "text": "`[null, data | data[]]`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { awaitTo as to } from 'js-cool'\n\n// 1. simple use\nconst [err, data] = await to(new Promise())\nif (err) {\n // handle request error\n}\n\n// 2. Pass in multiple promises\nconst [err, data] = await to(promise1, promise2)\n// or\nconst [err, data] = await to([promise1, promise2])\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function awaitTo(promise: Promise): Promise<[E, undefined] | [null, T]>\n\ndeclare function awaitTo

(\n promise: PromiseAll

\n): Promise<[E, undefined] | [null, P]>\n\ndeclare function awaitTo(\n promise: Promise,\n ...promises: PromiseAll

\n): Promise<[E, undefined] | [null, [T, ...P]]>\n\nexport declare type PromiseAll

= {\n -readonly [K in keyof P]: Promise\n}\n```" + }, + { + "kind": "text", + "text": "\n\n### Blob arrayBuffer base64 file blobUrl\n\n#### arrayBufferToBase64\n\narrayBuffer to base64\n\n> v5.19.1 remove default params of mime\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------- | ------------- | -------- | -------- | ------- |\n| input | arrayBuffer data | " + }, + { + "kind": "code", + "text": "`ArrayBuffer`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| mime | image mime | " + }, + { + "kind": "code", + "text": "`String`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`String`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\narrayBufferToBase64(arrayBuffer, 'image/png')\n// data:image/png;base64,xxxxxxxxxxxx\n\narrayBufferToBase64(arrayBuffer)\n// xxxxxxxxxxxx\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function arrayBufferToBase64(input: ArrayBuffer, mime?: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### arrayBufferToBlob\n\narrayBuffer to blob\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------- | ------------- | -------- | -------- | ----------- |\n| input | arrayBuffer data | " + }, + { + "kind": "code", + "text": "`ArrayBuffer`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| mime | image mime | " + }, + { + "kind": "code", + "text": "`String`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`image/png`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`Blob`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\narrayBufferToBlob(arrayBuffer, 'image/png')\n// Blob\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function arrayBufferToBlob(input: ArrayBuffer, mime?: string): Blob\n```" + }, + { + "kind": "text", + "text": "\n\n#### base64ToArrayBuffer\n\nbase64 to arrayBuffer\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | -------- | -------- | -------- | ------- |\n| input | base64 string | " + }, + { + "kind": "code", + "text": "`String`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`ArrayBuffer`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nbase64ToArrayBuffer(base64)\n// ArrayBuffer\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function base64ToArrayBuffer(input: string): ArrayBuffer\n```" + }, + { + "kind": "text", + "text": "\n\n#### base64ToBlob\n\nbase64 to blob\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | -------- | -------- | -------- | ------- |\n| input | base64 string | " + }, + { + "kind": "code", + "text": "`String`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`Blob`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nbase64ToBlob(base64)\n// Blob\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function base64ToBlob(input: string): Blob\n```" + }, + { + "kind": "text", + "text": "\n\n#### base64ToFile\n\nbase64 to file\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | -------- | -------- | -------- | ------- |\n| input | base64 string | " + }, + { + "kind": "code", + "text": "`String`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| fileName | file name | " + }, + { + "kind": "code", + "text": "`String`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`File`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nbase64ToFile(base64, 'image.png')\n// File\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function base64ToFile(input: string, fileName: string): File\n```" + }, + { + "kind": "text", + "text": "\n\n#### blobToArrayBuffer\n\nblob to arrayBuffer\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ------ | -------- | -------- | ------- |\n| input | blob data | " + }, + { + "kind": "code", + "text": "`Blob`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`ArrayBuffer`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nblobToArrayBuffer(blob).then(data => {\n // ArrayBuffer\n})\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function blobToArrayBuffer(input: Blob): Promise\n```" + }, + { + "kind": "text", + "text": "\n\n#### blobToBase64\n\nblob to base64\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ------ | -------- | -------- | ------- |\n| input | blob data | " + }, + { + "kind": "code", + "text": "`Blob`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`String`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nblobToBase64(blob).then(data => {\n // data:image/png;base64,xxxxxxxxxxxx\n})\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function blobToBase64(input: Blob): Promise\n```" + }, + { + "kind": "text", + "text": "\n\n#### blobToUrl\n\nblob to url\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ------ | -------- | -------- | ------- |\n| input | blob data | " + }, + { + "kind": "code", + "text": "`Blob`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`Object`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nblobToUrl(blob)\n// blob:xxxxxxx\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function blobToUrl(input: Blob): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### fileToBase64\n\nfile to base64\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ------ | -------- | -------- | ------- |\n| input | file data | " + }, + { + "kind": "code", + "text": "`File`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`String`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nfileToBase64(file).then(data => {\n // data:image/png;base64,xxxxxxxxxxxx\n})\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function fileToBase64(input: File): Promise\n```" + }, + { + "kind": "text", + "text": "\n\n#### svgToBlob\n\nsvg to blob\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | -------- | -------- | -------- | ------- |\n| input | svg string | " + }, + { + "kind": "code", + "text": "`String`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`Blob`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nsvgToBlob(svg)\n// Blob\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function svgToBlob(input: string): Blob\n```" + }, + { + "kind": "text", + "text": "\n\n#### urlToBlob\n\nurl to blob\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | -------- | -------- | -------- | ------- |\n| input | url | " + }, + { + "kind": "code", + "text": "`String`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`Blob`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nurlToBlob(url).then(blob => {\n // Blob\n})\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function urlToBlob(input: string): Promise\n```" + }, + { + "kind": "text", + "text": "\n\n## Support & Issues\n\nPlease open an issue [here](https://github.com/saqqdy/js-cool/issues).\n\n## License\n\n[MIT](" + }, + { + "kind": "relative-link", + "text": "LICENSE", + "target": 4 + }, + { + "kind": "text", + "text": ")\n\n[npm-image]: https://img.shields.io/npm/v/js-cool.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/js-cool\n[codacy-image]: https://app.codacy.com/project/badge/Grade/f70d4880e4ad4f40aa970eb9ee9d0696\n[codacy-url]: https://www.codacy.com/gh/saqqdy/js-cool/dashboard?utm_source=github.com&utm_medium=referral&utm_content=saqqdy/js-cool&utm_campaign=Badge_Grade\n[tree-shaking-image]: https://badgen.net/bundlephobia/tree-shaking/js-cool\n[tree-shaking-url]: https://bundlephobia.com/package/js-cool\n[typescript-url]: https://badgen.net/badge/icon/typescript?icon=typescript&label\n[codecov-image]: https://img.shields.io/codecov/c/github/saqqdy/js-cool.svg?style=flat-square\n[codecov-url]: https://codecov.io/github/saqqdy/js-cool?branch=master\n[download-image]: https://img.shields.io/npm/dm/js-cool.svg?style=flat-square\n[download-url]: https://npmjs.org/package/js-cool\n[gzip-image]: http://img.badgesize.io/https://unpkg.com/js-cool/dist/index.global.prod.js?compression=gzip&label=gzip%20size:%20JS\n[gzip-url]: http://img.badgesize.io/https://unpkg.com/js-cool/dist/index.global.prod.js?compression=gzip&label=gzip%20size:%20JS\n[license-image]: https://img.shields.io/badge/License-MIT-blue.svg\n[license-url]: " + }, + { + "kind": "relative-link", + "text": "LICENSE", + "target": 4 + }, + { + "kind": "text", + "text": "\n[sonar-image]: https://sonarcloud.io/api/project_badges/quality_gate?project=saqqdy_js-cool\n[sonar-url]: https://sonarcloud.io/dashboard?id=saqqdy_js-cool" + } + ], + "symbolIdMap": { + "0": { + "sourceFileName": "src/index.ts", + "qualifiedName": "" + }, + "1": { + "sourceFileName": "src/index.ts", + "qualifiedName": "version" + }, + "2": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "loadSource" + }, + "3": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "loadSource" + }, + "4": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "url" + }, + "5": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "option" + }, + "6": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "mountCss" + }, + "7": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "mountCss" + }, + "8": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "src" + }, + "9": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "option" + }, + "10": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "mountImage" + }, + "11": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "mountImage" + }, + "12": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "src" + }, + "13": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "option" + }, + "14": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "mountScript" + }, + "15": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "mountScript" + }, + "16": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "src" + }, + "17": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "option" + }, + "18": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "mountStyle" + }, + "19": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "mountStyle" + }, + "20": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "css" + }, + "21": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "option" + }, + "22": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.1/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "download" + }, + "23": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.1/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "download" + }, + "24": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.1/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "url" + }, + "25": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.1/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "filename" + }, + "26": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.1/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "type" + }, + "27": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "awaitToDone" + }, + "28": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "awaitToDone" + }, + "29": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "T" + }, + "30": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "E" + }, + "31": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "promise" + }, + "32": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "awaitToDone" + }, + "33": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "P" + }, + "34": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "E" + }, + "35": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "promise" + }, + "36": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "awaitToDone" + }, + "37": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "T" + }, + "38": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "P" + }, + "39": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "E" + }, + "40": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "promise" + }, + "41": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "promises" + }, + "42": { + "sourceFileName": "src/client.ts", + "qualifiedName": "client" + }, + "43": { + "sourceFileName": "src/client.ts", + "qualifiedName": "client" + }, + "44": { + "sourceFileName": "src/client.ts", + "qualifiedName": "name" + }, + "45": { + "sourceFileName": "src/client.ts", + "qualifiedName": "userAgent" + }, + "46": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object" + }, + "47": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.IE" + }, + "48": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.GECKO" + }, + "49": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.WEBKIT" + }, + "50": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.OPERA" + }, + "51": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.TRIDENT" + }, + "52": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.MOBILE" + }, + "53": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.IOS" + }, + "54": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.ANDROID" + }, + "55": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.IPHONE" + }, + "56": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.IPAD" + }, + "57": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.QQBROWSER" + }, + "58": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.WEIXIN" + }, + "59": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.QQ" + }, + "60": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "pattern" + }, + "61": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object" + }, + "62": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.any" + }, + "63": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.number" + }, + "64": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.string" + }, + "65": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.postcode" + }, + "66": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.url" + }, + "67": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.username" + }, + "68": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.float" + }, + "69": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.email" + }, + "70": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.mobile" + }, + "71": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.chinese" + }, + "72": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.tel" + }, + "73": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.qq" + }, + "74": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.pass" + }, + "75": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.json" + }, + "76": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.arrjson" + }, + "77": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.array" + }, + "78": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.isjson" + }, + "79": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.textarea" + }, + "80": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.mac" + }, + "81": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.ip4" + }, + "82": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.ip4_pri" + }, + "83": { + "sourceFileName": "src/trim.ts", + "qualifiedName": "trim" + }, + "84": { + "sourceFileName": "src/trim.ts", + "qualifiedName": "trim" + }, + "85": { + "sourceFileName": "src/trim.ts", + "qualifiedName": "string" + }, + "86": { + "sourceFileName": "src/clearAttr.ts", + "qualifiedName": "clearAttr" + }, + "87": { + "sourceFileName": "src/clearAttr.ts", + "qualifiedName": "clearAttr" + }, + "88": { + "sourceFileName": "src/clearAttr.ts", + "qualifiedName": "string" + }, + "89": { + "sourceFileName": "src/clearHtml.ts", + "qualifiedName": "clearHtml" + }, + "90": { + "sourceFileName": "src/clearHtml.ts", + "qualifiedName": "clearHtml" + }, + "91": { + "sourceFileName": "src/clearHtml.ts", + "qualifiedName": "string" + }, + "92": { + "sourceFileName": "src/escape.ts", + "qualifiedName": "escape" + }, + "93": { + "sourceFileName": "src/escape.ts", + "qualifiedName": "escape" + }, + "94": { + "sourceFileName": "src/escape.ts", + "qualifiedName": "string" + }, + "95": { + "sourceFileName": "src/unescape.ts", + "qualifiedName": "unescape" + }, + "96": { + "sourceFileName": "src/unescape.ts", + "qualifiedName": "unescape" + }, + "97": { + "sourceFileName": "src/unescape.ts", + "qualifiedName": "string" + }, + "98": { + "sourceFileName": "src/getNumber.ts", + "qualifiedName": "getNumber" + }, + "99": { + "sourceFileName": "src/getNumber.ts", + "qualifiedName": "getNumber" + }, + "100": { + "sourceFileName": "src/getNumber.ts", + "qualifiedName": "string" + }, + "101": { + "sourceFileName": "src/camel2Dash.ts", + "qualifiedName": "camel2Dash" + }, + "102": { + "sourceFileName": "src/camel2Dash.ts", + "qualifiedName": "camel2Dash" + }, + "103": { + "sourceFileName": "src/camel2Dash.ts", + "qualifiedName": "string" + }, + "104": { + "sourceFileName": "src/dash2Camel.ts", + "qualifiedName": "dash2Camel" + }, + "105": { + "sourceFileName": "src/dash2Camel.ts", + "qualifiedName": "dash2Camel" + }, + "106": { + "sourceFileName": "src/dash2Camel.ts", + "qualifiedName": "string" + }, + "107": { + "sourceFileName": "src/upperFirst.ts", + "qualifiedName": "upperFirst" + }, + "108": { + "sourceFileName": "src/upperFirst.ts", + "qualifiedName": "upperFirst" + }, + "109": { + "sourceFileName": "src/upperFirst.ts", + "qualifiedName": "string" + }, + "110": { + "sourceFileName": "src/randomColor.ts", + "qualifiedName": "randomColor" + }, + "111": { + "sourceFileName": "src/randomColor.ts", + "qualifiedName": "randomColor" + }, + "112": { + "sourceFileName": "src/randomColor.ts", + "qualifiedName": "min" + }, + "113": { + "sourceFileName": "src/randomColor.ts", + "qualifiedName": "max" + }, + "114": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "randomNumber" + }, + "115": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "randomNumber" + }, + "116": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "min" + }, + "117": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "max" + }, + "118": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "randomNumbers" + }, + "119": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "randomNumbers" + }, + "120": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "n" + }, + "121": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "sum" + }, + "122": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "noZero" + }, + "123": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "randomString" + }, + "124": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "randomString" + }, + "125": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "len" + }, + "126": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "options" + }, + "127": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "randomString" + }, + "128": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "len" + }, + "129": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "options" + }, + "130": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "RandomStringOptions" + }, + "131": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "RandomStringOptions.length" + }, + "132": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "RandomStringOptions.charTypes" + }, + "133": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "RandomStringOptions.noConfuse" + }, + "134": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "RandomStringOptions.strict" + }, + "135": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "RandomStringCharType" + }, + "136": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "shuffle" + }, + "137": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "shuffle" + }, + "138": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "value" + }, + "139": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "size" + }, + "140": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "shuffle" + }, + "141": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "T" + }, + "142": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "value" + }, + "143": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "size" + }, + "144": { + "sourceFileName": "src/fingerprint.ts", + "qualifiedName": "fingerprint" + }, + "145": { + "sourceFileName": "src/fingerprint.ts", + "qualifiedName": "fingerprint" + }, + "146": { + "sourceFileName": "src/fingerprint.ts", + "qualifiedName": "domain" + }, + "147": { + "sourceFileName": "src/getCHSLength.ts", + "qualifiedName": "getCHSLength" + }, + "148": { + "sourceFileName": "src/getCHSLength.ts", + "qualifiedName": "getCHSLength" + }, + "149": { + "sourceFileName": "src/getCHSLength.ts", + "qualifiedName": "str" + }, + "150": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "cutCHSString" + }, + "151": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "cutCHSString" + }, + "152": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "str" + }, + "153": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "len" + }, + "154": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "hasDot" + }, + "155": { + "sourceFileName": "src/isDigitals.ts", + "qualifiedName": "isDigitals" + }, + "156": { + "sourceFileName": "src/isDigitals.ts", + "qualifiedName": "isDigitals" + }, + "157": { + "sourceFileName": "src/isDigitals.ts", + "qualifiedName": "str" + }, + "158": { + "sourceFileName": "src/isExitsFunction.ts", + "qualifiedName": "isExitsFunction" + }, + "159": { + "sourceFileName": "src/isExitsFunction.ts", + "qualifiedName": "isExitsFunction" + }, + "160": { + "sourceFileName": "src/isExitsFunction.ts", + "qualifiedName": "name" + }, + "161": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "isEqual" + }, + "162": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "isEqual" + }, + "163": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "T" + }, + "164": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "P" + }, + "165": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "a" + }, + "166": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "b" + }, + "167": { + "sourceFileName": "src/isExitsVariable.ts", + "qualifiedName": "isExitsVariable" + }, + "168": { + "sourceFileName": "src/isExitsVariable.ts", + "qualifiedName": "isExitsVariable" + }, + "169": { + "sourceFileName": "src/isExitsVariable.ts", + "qualifiedName": "name" + }, + "170": { + "sourceFileName": "src/isWindow.ts", + "qualifiedName": "isWindow" + }, + "171": { + "sourceFileName": "src/isWindow.ts", + "qualifiedName": "isWindow" + }, + "172": { + "sourceFileName": "src/isWindow.ts", + "qualifiedName": "target" + }, + "173": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "isPlainObject" + }, + "174": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "isPlainObject" + }, + "175": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "target" + }, + "176": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "Primitive" + }, + "177": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "PlainObject" + }, + "178": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "PlainObject.__index" + }, + "180": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "JSONValue" + }, + "181": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "JSONArray" + }, + "182": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.length" + }, + "183": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.toString" + }, + "184": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.toString" + }, + "185": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.toLocaleString" + }, + "186": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.toLocaleString" + }, + "187": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.toLocaleString" + }, + "188": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "locales" + }, + "189": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "options" + }, + "190": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.pop" + }, + "191": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.pop" + }, + "192": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.push" + }, + "193": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.push" + }, + "194": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "items" + }, + "195": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.concat" + }, + "196": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.concat" + }, + "197": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "items" + }, + "198": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.concat" + }, + "199": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "items" + }, + "200": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.join" + }, + "201": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.join" + }, + "202": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "separator" + }, + "203": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reverse" + }, + "204": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reverse" + }, + "205": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.shift" + }, + "206": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.shift" + }, + "207": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.slice" + }, + "208": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.slice" + }, + "209": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "start" + }, + "210": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "end" + }, + "211": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.sort" + }, + "212": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.sort" + }, + "213": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "compareFn" + }, + "214": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "215": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "216": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "a" + }, + "217": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "b" + }, + "218": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.splice" + }, + "219": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.splice" + }, + "220": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "start" + }, + "221": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "deleteCount" + }, + "222": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.splice" + }, + "223": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "start" + }, + "224": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "deleteCount" + }, + "225": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "items" + }, + "226": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.unshift" + }, + "227": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.unshift" + }, + "228": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "items" + }, + "229": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.indexOf" + }, + "230": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.indexOf" + }, + "231": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "searchElement" + }, + "232": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "fromIndex" + }, + "233": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.lastIndexOf" + }, + "234": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.lastIndexOf" + }, + "235": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "searchElement" + }, + "236": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "fromIndex" + }, + "237": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.every" + }, + "238": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.every" + }, + "239": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "S" + }, + "240": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "predicate" + }, + "241": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "242": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "243": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "value" + }, + "244": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "index" + }, + "245": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "246": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "thisArg" + }, + "247": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.every" + }, + "248": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "predicate" + }, + "249": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "250": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "251": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "value" + }, + "252": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "index" + }, + "253": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "254": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "thisArg" + }, + "255": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.some" + }, + "256": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.some" + }, + "257": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "predicate" + }, + "258": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "259": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "260": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "value" + }, + "261": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "index" + }, + "262": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "263": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "thisArg" + }, + "264": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.forEach" + }, + "265": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.forEach" + }, + "266": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "267": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "268": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "269": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "value" + }, + "270": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "index" + }, + "271": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "272": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "thisArg" + }, + "273": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.map" + }, + "274": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.map" + }, + "275": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "U" + }, + "276": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "277": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "278": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "279": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "value" + }, + "280": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "index" + }, + "281": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "282": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "thisArg" + }, + "283": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.filter" + }, + "284": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.filter" + }, + "285": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "S" + }, + "286": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "predicate" + }, + "287": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "288": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "289": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "value" + }, + "290": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "index" + }, + "291": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "292": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "thisArg" + }, + "293": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.filter" + }, + "294": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "predicate" + }, + "295": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "296": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "297": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "value" + }, + "298": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "index" + }, + "299": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "300": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "thisArg" + }, + "301": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduce" + }, + "302": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduce" + }, + "303": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "304": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "305": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "306": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "previousValue" + }, + "307": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentValue" + }, + "308": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentIndex" + }, + "309": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "310": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduce" + }, + "311": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "312": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "313": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "314": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "previousValue" + }, + "315": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentValue" + }, + "316": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentIndex" + }, + "317": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "318": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "initialValue" + }, + "319": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduce" + }, + "320": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "U" + }, + "321": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "322": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "323": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "324": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "previousValue" + }, + "325": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentValue" + }, + "326": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentIndex" + }, + "327": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "328": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "initialValue" + }, + "329": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduceRight" + }, + "330": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduceRight" + }, + "331": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "332": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "333": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "334": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "previousValue" + }, + "335": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentValue" + }, + "336": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentIndex" + }, + "337": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "338": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduceRight" + }, + "339": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "340": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "341": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "342": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "previousValue" + }, + "343": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentValue" + }, + "344": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentIndex" + }, + "345": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "346": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "initialValue" + }, + "347": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduceRight" + }, + "348": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "U" + }, + "349": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "350": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "351": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "352": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "previousValue" + }, + "353": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentValue" + }, + "354": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentIndex" + }, + "355": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "356": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "initialValue" + }, + "357": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.find" + }, + "358": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.find" + }, + "359": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "S" + }, + "360": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "predicate" + }, + "361": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "__type" + }, + "362": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "__type" + }, + "363": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "value" + }, + "364": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "index" + }, + "365": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "obj" + }, + "366": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "thisArg" + }, + "367": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.find" + }, + "368": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "predicate" + }, + "369": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "__type" + }, + "370": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "__type" + }, + "371": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "value" + }, + "372": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "index" + }, + "373": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "obj" + }, + "374": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "thisArg" + }, + "375": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.findIndex" + }, + "376": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.findIndex" + }, + "377": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "predicate" + }, + "378": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "__type" + }, + "379": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "__type" + }, + "380": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "value" + }, + "381": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "index" + }, + "382": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "obj" + }, + "383": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "thisArg" + }, + "384": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.fill" + }, + "385": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.fill" + }, + "386": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "value" + }, + "387": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "start" + }, + "388": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "end" + }, + "389": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.copyWithin" + }, + "390": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.copyWithin" + }, + "391": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "target" + }, + "392": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "start" + }, + "393": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "end" + }, + "394": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.entries" + }, + "395": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.entries" + }, + "396": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.keys" + }, + "397": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.keys" + }, + "398": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.values" + }, + "399": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.values" + }, + "400": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "qualifiedName": "Array.includes" + }, + "401": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "qualifiedName": "Array.includes" + }, + "402": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "qualifiedName": "searchElement" + }, + "403": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "qualifiedName": "fromIndex" + }, + "404": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "Array.flatMap" + }, + "405": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "Array.flatMap" + }, + "406": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "U" + }, + "407": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "This" + }, + "408": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "callback" + }, + "409": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "__type" + }, + "410": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "__type" + }, + "411": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "this" + }, + "412": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "value" + }, + "413": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "index" + }, + "414": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "array" + }, + "415": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "thisArg" + }, + "416": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "Array.flat" + }, + "417": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "Array.flat" + }, + "418": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "A" + }, + "419": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "D" + }, + "420": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "this" + }, + "421": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "depth" + }, + "422": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.array.d.ts", + "qualifiedName": "Array.at" + }, + "423": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.array.d.ts", + "qualifiedName": "Array.at" + }, + "424": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.array.d.ts", + "qualifiedName": "index" + }, + "425": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.findLast" + }, + "426": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.findLast" + }, + "427": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "S" + }, + "428": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "predicate" + }, + "429": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "430": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "431": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "value" + }, + "432": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "index" + }, + "433": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "array" + }, + "434": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "thisArg" + }, + "435": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.findLast" + }, + "436": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "predicate" + }, + "437": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "438": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "439": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "value" + }, + "440": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "index" + }, + "441": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "array" + }, + "442": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "thisArg" + }, + "443": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.findLastIndex" + }, + "444": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.findLastIndex" + }, + "445": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "predicate" + }, + "446": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "447": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "448": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "value" + }, + "449": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "index" + }, + "450": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "array" + }, + "451": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "thisArg" + }, + "452": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.toReversed" + }, + "453": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.toReversed" + }, + "454": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.toSorted" + }, + "455": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.toSorted" + }, + "456": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "compareFn" + }, + "457": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "458": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "459": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "a" + }, + "460": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "b" + }, + "461": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.toSpliced" + }, + "462": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.toSpliced" + }, + "463": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "start" + }, + "464": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "deleteCount" + }, + "465": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "items" + }, + "466": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.toSpliced" + }, + "467": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "start" + }, + "468": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "deleteCount" + }, + "469": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.with" + }, + "470": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.with" + }, + "471": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "index" + }, + "472": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "value" + }, + "473": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.[iterator]" + }, + "474": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.[iterator]" + }, + "475": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "qualifiedName": "Array.[unscopables]" + }, + "476": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "qualifiedName": "__type" + }, + "477": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "length" + }, + "478": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "toString" + }, + "479": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "toLocaleString" + }, + "480": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "pop" + }, + "481": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "push" + }, + "482": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "concat" + }, + "483": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "join" + }, + "484": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "reverse" + }, + "485": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "shift" + }, + "486": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "slice" + }, + "487": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "sort" + }, + "488": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "splice" + }, + "489": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "unshift" + }, + "490": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "indexOf" + }, + "491": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "lastIndexOf" + }, + "492": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "every" + }, + "493": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "some" + }, + "494": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "forEach" + }, + "495": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "map" + }, + "496": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "filter" + }, + "497": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "reduce" + }, + "498": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "reduceRight" + }, + "499": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "find" + }, + "500": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "findIndex" + }, + "501": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "fill" + }, + "502": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "copyWithin" + }, + "503": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "entries" + }, + "504": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "keys" + }, + "505": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "values" + }, + "506": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "qualifiedName": "includes" + }, + "507": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "flatMap" + }, + "508": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "flat" + }, + "509": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.array.d.ts", + "qualifiedName": "at" + }, + "510": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "findLast" + }, + "511": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "findLastIndex" + }, + "512": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "toReversed" + }, + "513": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "toSorted" + }, + "514": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "toSpliced" + }, + "515": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "with" + }, + "516": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "[iterator]" + }, + "517": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "qualifiedName": "[unscopables]" + }, + "520": { + "sourceFileName": "node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.__index" + }, + "522": { + "sourceFileName": "src/isDarkMode.ts", + "qualifiedName": "isDarkMode" + }, + "523": { + "sourceFileName": "src/isDarkMode.ts", + "qualifiedName": "isDarkMode" + }, + "524": { + "sourceFileName": "src/isObject.ts", + "qualifiedName": "isObject" + }, + "525": { + "sourceFileName": "src/isObject.ts", + "qualifiedName": "isObject" + }, + "526": { + "sourceFileName": "src/isObject.ts", + "qualifiedName": "target" + }, + "527": { + "sourceFileName": "src/isDate.ts", + "qualifiedName": "isDate" + }, + "528": { + "sourceFileName": "src/isDate.ts", + "qualifiedName": "isDate" + }, + "529": { + "sourceFileName": "src/isDate.ts", + "qualifiedName": "target" + }, + "530": { + "sourceFileName": "src/isRegExp.ts", + "qualifiedName": "isRegExp" + }, + "531": { + "sourceFileName": "src/isRegExp.ts", + "qualifiedName": "isRegExp" + }, + "532": { + "sourceFileName": "src/isRegExp.ts", + "qualifiedName": "target" + }, + "533": { + "sourceFileName": "src/isArray.ts", + "qualifiedName": "isArray" + }, + "534": { + "sourceFileName": "src/isArray.ts", + "qualifiedName": "isArray" + }, + "535": { + "sourceFileName": "src/isArray.ts", + "qualifiedName": "target" + }, + "536": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "isIterable" + }, + "537": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "isIterable" + }, + "538": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "T" + }, + "539": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "target" + }, + "540": { + "sourceFileName": "src/inBrowser.ts", + "qualifiedName": "inBrowser" + }, + "541": { + "sourceFileName": "src/inNodeJs.ts", + "qualifiedName": "inNodeJs" + }, + "542": { + "sourceFileName": "src/isNumberBrowser.ts", + "qualifiedName": "isNumberBrowser" + }, + "543": { + "sourceFileName": "src/isNumberBrowser.ts", + "qualifiedName": "isNumberBrowser" + }, + "544": { + "sourceFileName": "src/isNumberBrowser.ts", + "qualifiedName": "userAgent" + }, + "545": { + "sourceFileName": "src/windowSize.ts", + "qualifiedName": "windowSize" + }, + "546": { + "sourceFileName": "src/windowSize.ts", + "qualifiedName": "windowSize" + }, + "547": { + "sourceFileName": "src/windowSize.ts", + "qualifiedName": "WindowSizeObj" + }, + "548": { + "sourceFileName": "src/windowSize.ts", + "qualifiedName": "WindowSizeObj.width" + }, + "549": { + "sourceFileName": "src/windowSize.ts", + "qualifiedName": "WindowSizeObj.height" + }, + "550": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "getAppVersion" + }, + "551": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "getAppVersion" + }, + "552": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "appName" + }, + "553": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "withApp" + }, + "554": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "userAgent" + }, + "555": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "556": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "557": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "558": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "559": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "560": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ua" + }, + "561": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "562": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "563": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ua" + }, + "564": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "565": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "566": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ua" + }, + "567": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ignoreCase" + }, + "568": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "getOsVersion" + }, + "569": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "getOsVersion" + }, + "570": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "osName" + }, + "571": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "withOS" + }, + "572": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "userAgent" + }, + "573": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "osVersion" + }, + "574": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "osVersion" + }, + "575": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "ua" + }, + "576": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "OsVersion" + }, + "577": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "OsVersion.name" + }, + "578": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "OsVersion.version" + }, + "579": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "browserVersion" + }, + "580": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "browserVersion" + }, + "581": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "ua" + }, + "582": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "BrowserVersion" + }, + "583": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "BrowserVersion.name" + }, + "584": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "BrowserVersion.version" + }, + "585": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "compareVersion" + }, + "586": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "compareVersion" + }, + "587": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "input" + }, + "588": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "compare" + }, + "589": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "parseUrlParam" + }, + "590": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "parseUrlParam" + }, + "591": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "url" + }, + "592": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "covert" + }, + "593": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "spliceUrlParam" + }, + "594": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "spliceUrlParam" + }, + "595": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "T" + }, + "596": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "params" + }, + "597": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "covert" + }, + "598": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "SpliceUrlParamOptions" + }, + "599": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "SpliceUrlParamOptions.covert" + }, + "600": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "SpliceUrlParamOptions.encode" + }, + "601": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "SpliceUrlParamOptions.withQuestionsMark" + }, + "602": { + "sourceFileName": "src/safeParse.ts", + "qualifiedName": "safeParse" + }, + "603": { + "sourceFileName": "src/safeParse.ts", + "qualifiedName": "safeParse" + }, + "604": { + "sourceFileName": "src/safeParse.ts", + "qualifiedName": "data" + }, + "605": { + "sourceFileName": "src/safeParse.ts", + "qualifiedName": "covert" + }, + "606": { + "sourceFileName": "src/safeStringify.ts", + "qualifiedName": "safeStringify" + }, + "607": { + "sourceFileName": "src/safeStringify.ts", + "qualifiedName": "safeStringify" + }, + "608": { + "sourceFileName": "src/safeStringify.ts", + "qualifiedName": "data" + }, + "609": { + "sourceFileName": "src/safeStringify.ts", + "qualifiedName": "covert" + }, + "610": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "getDirParam" + }, + "611": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "getDirParam" + }, + "612": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "url" + }, + "613": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "DirParamType" + }, + "614": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "DirParamType.path" + }, + "615": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "DirParamType.host" + }, + "616": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "getQueryParam" + }, + "617": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "getQueryParam" + }, + "618": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "key" + }, + "619": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "getQueryParam" + }, + "620": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "key" + }, + "621": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "url" + }, + "622": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "623": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "624": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "url" + }, + "625": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "626": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "url" + }, + "627": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "628": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "url" + }, + "629": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "covert" + }, + "630": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "getUrlParam" + }, + "631": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "getUrlParam" + }, + "632": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "key" + }, + "633": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "getUrlParam" + }, + "634": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "key" + }, + "635": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "url" + }, + "636": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "637": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "638": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "url" + }, + "639": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "640": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "url" + }, + "641": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "642": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "url" + }, + "643": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "covert" + }, + "644": { + "sourceFileName": "src/getCache.ts", + "qualifiedName": "getCache" + }, + "645": { + "sourceFileName": "src/getCache.ts", + "qualifiedName": "getCache" + }, + "646": { + "sourceFileName": "src/getCache.ts", + "qualifiedName": "name" + }, + "647": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "setCache" + }, + "648": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "setCache" + }, + "649": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "T" + }, + "650": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "name" + }, + "651": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "value" + }, + "652": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "seconds" + }, + "653": { + "sourceFileName": "src/delCache.ts", + "qualifiedName": "delCache" + }, + "654": { + "sourceFileName": "src/delCache.ts", + "qualifiedName": "delCache" + }, + "655": { + "sourceFileName": "src/delCache.ts", + "qualifiedName": "name" + }, + "656": { + "sourceFileName": "src/getSession.ts", + "qualifiedName": "getSession" + }, + "657": { + "sourceFileName": "src/getSession.ts", + "qualifiedName": "getSession" + }, + "658": { + "sourceFileName": "src/getSession.ts", + "qualifiedName": "name" + }, + "659": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "setSession" + }, + "660": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "setSession" + }, + "661": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "T" + }, + "662": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "name" + }, + "663": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "value" + }, + "664": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "seconds" + }, + "665": { + "sourceFileName": "src/delSession.ts", + "qualifiedName": "delSession" + }, + "666": { + "sourceFileName": "src/delSession.ts", + "qualifiedName": "delSession" + }, + "667": { + "sourceFileName": "src/delSession.ts", + "qualifiedName": "name" + }, + "668": { + "sourceFileName": "src/getCookie.ts", + "qualifiedName": "getCookie" + }, + "669": { + "sourceFileName": "src/getCookie.ts", + "qualifiedName": "getCookie" + }, + "670": { + "sourceFileName": "src/getCookie.ts", + "qualifiedName": "name" + }, + "671": { + "sourceFileName": "src/getCookies.ts", + "qualifiedName": "getCookies" + }, + "672": { + "sourceFileName": "src/getCookies.ts", + "qualifiedName": "getCookies" + }, + "673": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "setCookie" + }, + "674": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "setCookie" + }, + "675": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "T" + }, + "676": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "name" + }, + "677": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "value" + }, + "678": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "seconds" + }, + "679": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "path" + }, + "680": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "samesite" + }, + "681": { + "sourceFileName": "src/delCookie.ts", + "qualifiedName": "delCookie" + }, + "682": { + "sourceFileName": "src/delCookie.ts", + "qualifiedName": "delCookie" + }, + "683": { + "sourceFileName": "src/delCookie.ts", + "qualifiedName": "name" + }, + "684": { + "sourceFileName": "src/encodeBase64.ts", + "qualifiedName": "encodeBase64" + }, + "685": { + "sourceFileName": "src/encodeBase64.ts", + "qualifiedName": "encodeBase64" + }, + "686": { + "sourceFileName": "src/encodeBase64.ts", + "qualifiedName": "input" + }, + "687": { + "sourceFileName": "src/encodeUtf8.ts", + "qualifiedName": "encodeUtf8" + }, + "688": { + "sourceFileName": "src/encodeUtf8.ts", + "qualifiedName": "encodeUtf8" + }, + "689": { + "sourceFileName": "src/encodeUtf8.ts", + "qualifiedName": "string" + }, + "690": { + "sourceFileName": "src/decodeBase64.ts", + "qualifiedName": "decodeBase64" + }, + "691": { + "sourceFileName": "src/decodeBase64.ts", + "qualifiedName": "decodeBase64" + }, + "692": { + "sourceFileName": "src/decodeBase64.ts", + "qualifiedName": "input" + }, + "693": { + "sourceFileName": "src/decodeUtf8.ts", + "qualifiedName": "decodeUtf8" + }, + "694": { + "sourceFileName": "src/decodeUtf8.ts", + "qualifiedName": "decodeUtf8" + }, + "695": { + "sourceFileName": "src/decodeUtf8.ts", + "qualifiedName": "utftext" + }, + "696": { + "sourceFileName": "src/stopBubble.ts", + "qualifiedName": "stopBubble" + }, + "697": { + "sourceFileName": "src/stopBubble.ts", + "qualifiedName": "stopBubble" + }, + "698": { + "sourceFileName": "src/stopBubble.ts", + "qualifiedName": "e" + }, + "699": { + "sourceFileName": "src/stopDefault.ts", + "qualifiedName": "stopDefault" + }, + "700": { + "sourceFileName": "src/stopDefault.ts", + "qualifiedName": "stopDefault" + }, + "701": { + "sourceFileName": "src/stopDefault.ts", + "qualifiedName": "e" + }, + "702": { + "sourceFileName": "src/addEvent.ts", + "qualifiedName": "addEvent" + }, + "703": { + "sourceFileName": "src/addEvent.ts", + "qualifiedName": "addEvent" + }, + "704": { + "sourceFileName": "src/addEvent.ts", + "qualifiedName": "element" + }, + "705": { + "sourceFileName": "src/addEvent.ts", + "qualifiedName": "type" + }, + "706": { + "sourceFileName": "src/addEvent.ts", + "qualifiedName": "handler" + }, + "707": { + "sourceFileName": "src/addEvent.ts", + "qualifiedName": "addEvent.guid" + }, + "708": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "removeEvent" + }, + "709": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "removeEvent" + }, + "710": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "element" + }, + "711": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "type" + }, + "712": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "handler" + }, + "713": { + "sourceFileName": "src/getScrollPosition.ts", + "qualifiedName": "getScrollPosition" + }, + "714": { + "sourceFileName": "src/getScrollPosition.ts", + "qualifiedName": "getScrollPosition" + }, + "715": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "nextIndex" + }, + "716": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "nextIndex" + }, + "717": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "min" + }, + "718": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "max" + }, + "719": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "nextVersion" + }, + "720": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "nextVersion" + }, + "721": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "version" + }, + "722": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "type" + }, + "723": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "preid" + }, + "724": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "Version" + }, + "725": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "Version.major" + }, + "726": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "Version.minor" + }, + "727": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "Version.patch" + }, + "728": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "Version.preid" + }, + "729": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "Version.release" + }, + "730": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "punctualTimer" + }, + "731": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "punctualTimer" + }, + "732": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "TArgs" + }, + "733": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "handler" + }, + "734": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__type" + }, + "735": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__type" + }, + "736": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "args" + }, + "737": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "delay" + }, + "738": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__2" + }, + "739": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "punctualTimer" + }, + "740": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "TArgs" + }, + "741": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "handler" + }, + "742": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__type" + }, + "743": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__type" + }, + "744": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "args" + }, + "745": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "delay" + }, + "746": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__2" + }, + "747": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "PunctualTimerReturns" + }, + "748": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "PunctualTimerReturns.count" + }, + "749": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "PunctualTimerReturns.timer" + }, + "750": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "PunctualTimerReturns.clear" + }, + "751": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__type" + }, + "752": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__type" + }, + "753": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "promiseFactory" + }, + "754": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "promiseFactory" + }, + "755": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "T" + }, + "756": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "original" + }, + "757": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "resolver" + }, + "758": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "__type" + }, + "759": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "__type" + }, + "760": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "fixNumber" + }, + "761": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "fixNumber" + }, + "762": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "number" + }, + "763": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "n" + }, + "764": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "mapTemplate" + }, + "765": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "mapTemplate" + }, + "766": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "tmp" + }, + "767": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "data" + }, + "768": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "__type" + }, + "769": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "__type" + }, + "770": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "value" + }, + "771": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "772": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "773": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "774": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "775": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "776": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "777": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "778": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "779": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "780": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "781": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "782": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "783": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "784": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "ExtendArrayData" + }, + "785": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "ExtendObjectData" + }, + "786": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "ExtendData" + }, + "787": { + "sourceFileName": "src/clone.ts", + "qualifiedName": "clone" + }, + "788": { + "sourceFileName": "src/clone.ts", + "qualifiedName": "clone" + }, + "789": { + "sourceFileName": "src/clone.ts", + "qualifiedName": "T" + }, + "790": { + "sourceFileName": "src/clone.ts", + "qualifiedName": "parent" + }, + "791": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "delay" + }, + "792": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "delay" + }, + "793": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object" + }, + "794": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.map" + }, + "795": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.register" + }, + "796": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.register" + }, + "797": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "id" + }, + "798": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "fn" + }, + "799": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "time" + }, + "800": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "boo" + }, + "801": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.destroy" + }, + "802": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.destroy" + }, + "803": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "id" + }, + "804": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "getType" + }, + "805": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "getType" + }, + "806": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "T" + }, + "807": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "target" + }, + "808": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "getFileType" + }, + "809": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "getFileType" + }, + "810": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "url" + }, + "811": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "__object" + }, + "812": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "__object.suffix" + }, + "813": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "__object.type" + }, + "814": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "sorter" + }, + "815": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "sorter" + }, + "816": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "locales" + }, + "817": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "options" + }, + "818": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "__function" + }, + "819": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "__function" + }, + "820": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "T" + }, + "821": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "P" + }, + "822": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "a" + }, + "823": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "b" + }, + "824": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "sortPinyin" + }, + "825": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "sortPinyin" + }, + "826": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "T" + }, + "827": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "P" + }, + "828": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "a" + }, + "829": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "b" + }, + "830": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "options" + }, + "831": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "cleanData" + }, + "832": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "cleanData" + }, + "833": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "data" + }, + "834": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "map" + }, + "835": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "nullFix" + }, + "836": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "searchObject" + }, + "837": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "searchObject" + }, + "838": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "tree" + }, + "839": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "expression" + }, + "840": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "keySet" + }, + "841": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "number" + }, + "842": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "SearchKeySet" + }, + "843": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "SearchKeySet.childName" + }, + "844": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "SearchKeySet.keyName" + }, + "845": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "SearchKeySet.__index" + }, + "847": { + "sourceFileName": "src/openUrl.ts", + "qualifiedName": "openUrl" + }, + "848": { + "sourceFileName": "src/openUrl.ts", + "qualifiedName": "openUrl" + }, + "849": { + "sourceFileName": "src/openUrl.ts", + "qualifiedName": "url" + }, + "850": { + "sourceFileName": "src/copy.ts", + "qualifiedName": "copy" + }, + "851": { + "sourceFileName": "src/copy.ts", + "qualifiedName": "copy" + }, + "852": { + "sourceFileName": "src/copy.ts", + "qualifiedName": "value" + }, + "853": { + "sourceFileName": "src/toThousands.ts", + "qualifiedName": "toThousands" + }, + "854": { + "sourceFileName": "src/toThousands.ts", + "qualifiedName": "toThousands" + }, + "855": { + "sourceFileName": "src/toThousands.ts", + "qualifiedName": "num" + }, + "856": { + "sourceFileName": "src/all.ts", + "qualifiedName": "all" + }, + "857": { + "sourceFileName": "src/all.ts", + "qualifiedName": "all" + }, + "858": { + "sourceFileName": "src/all.ts", + "qualifiedName": "T" + }, + "859": { + "sourceFileName": "src/all.ts", + "qualifiedName": "arr" + }, + "860": { + "sourceFileName": "src/all.ts", + "qualifiedName": "fn" + }, + "861": { + "sourceFileName": "src/any.ts", + "qualifiedName": "any" + }, + "862": { + "sourceFileName": "src/any.ts", + "qualifiedName": "any" + }, + "863": { + "sourceFileName": "src/any.ts", + "qualifiedName": "T" + }, + "864": { + "sourceFileName": "src/any.ts", + "qualifiedName": "arr" + }, + "865": { + "sourceFileName": "src/any.ts", + "qualifiedName": "fn" + }, + "866": { + "sourceFileName": "src/uuid.ts", + "qualifiedName": "uuid" + }, + "867": { + "sourceFileName": "src/uuid.ts", + "qualifiedName": "uuid" + }, + "868": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "CSVToArray" + }, + "869": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "CSVToArray" + }, + "870": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "data" + }, + "871": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "delimiter" + }, + "872": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "omitFirstRow" + }, + "873": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "arrayToCSV" + }, + "874": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "arrayToCSV" + }, + "875": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "T" + }, + "876": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "arr" + }, + "877": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "delimiter" + }, + "878": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "CSVToJSON" + }, + "879": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "CSVToJSON" + }, + "880": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "data" + }, + "881": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "delimiter" + }, + "882": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "JSONToCSV" + }, + "883": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "JSONToCSV" + }, + "884": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "arr" + }, + "885": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "columns" + }, + "886": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "delimiter" + }, + "887": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "RGBToHex" + }, + "888": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "RGBToHex" + }, + "889": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "r" + }, + "890": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "g" + }, + "891": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "b" + }, + "892": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "intersect" + }, + "893": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "intersect" + }, + "894": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "T" + }, + "895": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "args" + }, + "896": { + "sourceFileName": "src/union.ts", + "qualifiedName": "union" + }, + "897": { + "sourceFileName": "src/union.ts", + "qualifiedName": "union" + }, + "898": { + "sourceFileName": "src/union.ts", + "qualifiedName": "T" + }, + "899": { + "sourceFileName": "src/union.ts", + "qualifiedName": "args" + }, + "900": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "minus" + }, + "901": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "minus" + }, + "902": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "T" + }, + "903": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "args" + }, + "904": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "complement" + }, + "905": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "complement" + }, + "906": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "T" + }, + "907": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "args" + }, + "908": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "contains" + }, + "909": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "contains" + }, + "910": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "arr" + }, + "911": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "item" + }, + "912": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "unique" + }, + "913": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "unique" + }, + "914": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "T" + }, + "915": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "arr" + }, + "916": { + "sourceFileName": "src/fillIPv6.ts", + "qualifiedName": "fillIPv6" + }, + "917": { + "sourceFileName": "src/fillIPv6.ts", + "qualifiedName": "fillIPv6" + }, + "918": { + "sourceFileName": "src/fillIPv6.ts", + "qualifiedName": "ip" + }, + "919": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "getProperty" + }, + "920": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "getProperty" + }, + "921": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "T" + }, + "922": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "target" + }, + "923": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "prop" + }, + "924": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "__type" + }, + "925": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "__type" + }, + "926": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "defaultValue" + }, + "927": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "getProperty" + }, + "928": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "T" + }, + "929": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "target" + }, + "930": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "prop" + }, + "931": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "__type" + }, + "932": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "__type" + }, + "933": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "defaultValue" + }, + "934": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "setProperty" + }, + "935": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "setProperty" + }, + "936": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "target" + }, + "937": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "prop" + }, + "938": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "__type" + }, + "939": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "__type" + }, + "940": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "value" + }, + "941": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "preloader" + }, + "942": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "preloader" + }, + "943": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "images" + }, + "944": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "preloader" + }, + "945": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "images" + }, + "946": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "waiting" + }, + "947": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "waiting" + }, + "948": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "milliseconds" + }, + "949": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "throwOnTimeout" + }, + "950": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "arrayBufferToBase64" + }, + "951": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "arrayBufferToBase64" + }, + "952": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "input" + }, + "953": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "mime" + }, + "954": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "arrayBufferToBlob" + }, + "955": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "arrayBufferToBlob" + }, + "956": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "input" + }, + "957": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "mime" + }, + "958": { + "sourceFileName": "src/base64ToArrayBuffer.ts", + "qualifiedName": "base64ToArrayBuffer" + }, + "959": { + "sourceFileName": "src/base64ToArrayBuffer.ts", + "qualifiedName": "base64ToArrayBuffer" + }, + "960": { + "sourceFileName": "src/base64ToArrayBuffer.ts", + "qualifiedName": "input" + }, + "961": { + "sourceFileName": "src/base64ToBlob.ts", + "qualifiedName": "base64ToBlob" + }, + "962": { + "sourceFileName": "src/base64ToBlob.ts", + "qualifiedName": "base64ToBlob" + }, + "963": { + "sourceFileName": "src/base64ToBlob.ts", + "qualifiedName": "input" + }, + "964": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "base64ToFile" + }, + "965": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "base64ToFile" + }, + "966": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "input" + }, + "967": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "fileName" + }, + "968": { + "sourceFileName": "src/blobToArrayBuffer.ts", + "qualifiedName": "blobToArrayBuffer" + }, + "969": { + "sourceFileName": "src/blobToArrayBuffer.ts", + "qualifiedName": "blobToArrayBuffer" + }, + "970": { + "sourceFileName": "src/blobToArrayBuffer.ts", + "qualifiedName": "input" + }, + "971": { + "sourceFileName": "src/blobToBase64.ts", + "qualifiedName": "blobToBase64" + }, + "972": { + "sourceFileName": "src/blobToBase64.ts", + "qualifiedName": "blobToBase64" + }, + "973": { + "sourceFileName": "src/blobToBase64.ts", + "qualifiedName": "input" + }, + "974": { + "sourceFileName": "src/blobToUrl.ts", + "qualifiedName": "blobToUrl" + }, + "975": { + "sourceFileName": "src/blobToUrl.ts", + "qualifiedName": "blobToUrl" + }, + "976": { + "sourceFileName": "src/blobToUrl.ts", + "qualifiedName": "input" + }, + "977": { + "sourceFileName": "src/fileToBase64.ts", + "qualifiedName": "fileToBase64" + }, + "978": { + "sourceFileName": "src/fileToBase64.ts", + "qualifiedName": "fileToBase64" + }, + "979": { + "sourceFileName": "src/fileToBase64.ts", + "qualifiedName": "input" + }, + "980": { + "sourceFileName": "src/svgToBlob.ts", + "qualifiedName": "svgToBlob" + }, + "981": { + "sourceFileName": "src/svgToBlob.ts", + "qualifiedName": "svgToBlob" + }, + "982": { + "sourceFileName": "src/svgToBlob.ts", + "qualifiedName": "input" + }, + "983": { + "sourceFileName": "src/urlToBlob.ts", + "qualifiedName": "urlToBlob" + }, + "984": { + "sourceFileName": "src/urlToBlob.ts", + "qualifiedName": "urlToBlob" + }, + "985": { + "sourceFileName": "src/urlToBlob.ts", + "qualifiedName": "input" + }, + "986": { + "sourceFileName": "src/types.ts", + "qualifiedName": "AnyObject" + }, + "987": { + "sourceFileName": "src/types.ts", + "qualifiedName": "AnyFunction" + }, + "988": { + "sourceFileName": "src/types.ts", + "qualifiedName": "AnyFunction" + }, + "989": { + "sourceFileName": "src/types.ts", + "qualifiedName": "args" + }, + "992": { + "sourceFileName": "src/types.ts", + "qualifiedName": "ArrayOne" + }, + "993": { + "sourceFileName": "src/types.ts", + "qualifiedName": "ArrayOne.0" + }, + "994": { + "sourceFileName": "src/types.ts", + "qualifiedName": "ArrayOne.T" + }, + "995": { + "sourceFileName": "src/types.ts", + "qualifiedName": "ArrayOneMore" + }, + "996": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "997": { + "sourceFileName": "src/types.ts", + "qualifiedName": "ArrayTwoMore" + }, + "998": { + "sourceFileName": "src/types.ts", + "qualifiedName": "__type" + }, + "999": { + "sourceFileName": "src/types.ts", + "qualifiedName": "__type.0" + }, + "1000": { + "sourceFileName": "src/types.ts", + "qualifiedName": "__type.1" + }, + "1001": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "1002": { + "sourceFileName": "src/types.ts", + "qualifiedName": "PickRequired" + }, + "1003": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "1004": { + "sourceFileName": "src/types.ts", + "qualifiedName": "K" + }, + "1005": { + "sourceFileName": "src/types.ts", + "qualifiedName": "OmitRequired" + }, + "1006": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "1007": { + "sourceFileName": "src/types.ts", + "qualifiedName": "K" + }, + "1008": { + "sourceFileName": "src/types.ts", + "qualifiedName": "PickPartial" + }, + "1009": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "1010": { + "sourceFileName": "src/types.ts", + "qualifiedName": "K" + }, + "1011": { + "sourceFileName": "src/types.ts", + "qualifiedName": "OmitPartial" + }, + "1012": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "1013": { + "sourceFileName": "src/types.ts", + "qualifiedName": "K" + }, + "1014": { + "sourceFileName": "src/types.ts", + "qualifiedName": "MaybePromiseOrGetter" + }, + "1015": { + "sourceFileName": "src/types.ts", + "qualifiedName": "__type" + }, + "1016": { + "sourceFileName": "src/types.ts", + "qualifiedName": "__type" + }, + "1017": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "1018": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "1019": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "default" + }, + "1020": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object" + }, + "1021": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.version" + }, + "1022": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.download" + }, + "1023": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.1/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "download" + }, + "1024": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.1/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "download" + }, + "1025": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.1/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "url" + }, + "1026": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.1/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "filename" + }, + "1027": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.1/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "type" + }, + "1028": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.RGBToHex" + }, + "1029": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "__function" + }, + "1030": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "__function" + }, + "1031": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "r" + }, + "1032": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "g" + }, + "1033": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "b" + }, + "1034": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.addEvent" + }, + "1035": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.all" + }, + "1036": { + "sourceFileName": "src/all.ts", + "qualifiedName": "__function" + }, + "1037": { + "sourceFileName": "src/all.ts", + "qualifiedName": "__function" + }, + "1038": { + "sourceFileName": "src/all.ts", + "qualifiedName": "T" + }, + "1039": { + "sourceFileName": "src/all.ts", + "qualifiedName": "arr" + }, + "1040": { + "sourceFileName": "src/all.ts", + "qualifiedName": "fn" + }, + "1041": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.any" + }, + "1042": { + "sourceFileName": "src/any.ts", + "qualifiedName": "__function" + }, + "1043": { + "sourceFileName": "src/any.ts", + "qualifiedName": "__function" + }, + "1044": { + "sourceFileName": "src/any.ts", + "qualifiedName": "T" + }, + "1045": { + "sourceFileName": "src/any.ts", + "qualifiedName": "arr" + }, + "1046": { + "sourceFileName": "src/any.ts", + "qualifiedName": "fn" + }, + "1047": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getCache" + }, + "1048": { + "sourceFileName": "src/getCache.ts", + "qualifiedName": "getCache" + }, + "1049": { + "sourceFileName": "src/getCache.ts", + "qualifiedName": "getCache" + }, + "1050": { + "sourceFileName": "src/getCache.ts", + "qualifiedName": "name" + }, + "1051": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.setCache" + }, + "1052": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "setCache" + }, + "1053": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "setCache" + }, + "1054": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "T" + }, + "1055": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "name" + }, + "1056": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "value" + }, + "1057": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "seconds" + }, + "1058": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.delCache" + }, + "1059": { + "sourceFileName": "src/delCache.ts", + "qualifiedName": "delCache" + }, + "1060": { + "sourceFileName": "src/delCache.ts", + "qualifiedName": "delCache" + }, + "1061": { + "sourceFileName": "src/delCache.ts", + "qualifiedName": "name" + }, + "1062": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getSession" + }, + "1063": { + "sourceFileName": "src/getSession.ts", + "qualifiedName": "getSession" + }, + "1064": { + "sourceFileName": "src/getSession.ts", + "qualifiedName": "getSession" + }, + "1065": { + "sourceFileName": "src/getSession.ts", + "qualifiedName": "name" + }, + "1066": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.setSession" + }, + "1067": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "setSession" + }, + "1068": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "setSession" + }, + "1069": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "T" + }, + "1070": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "name" + }, + "1071": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "value" + }, + "1072": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "seconds" + }, + "1073": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.delSession" + }, + "1074": { + "sourceFileName": "src/delSession.ts", + "qualifiedName": "delSession" + }, + "1075": { + "sourceFileName": "src/delSession.ts", + "qualifiedName": "delSession" + }, + "1076": { + "sourceFileName": "src/delSession.ts", + "qualifiedName": "name" + }, + "1077": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getCookie" + }, + "1078": { + "sourceFileName": "src/getCookie.ts", + "qualifiedName": "getCookie" + }, + "1079": { + "sourceFileName": "src/getCookie.ts", + "qualifiedName": "getCookie" + }, + "1080": { + "sourceFileName": "src/getCookie.ts", + "qualifiedName": "name" + }, + "1081": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getCookies" + }, + "1082": { + "sourceFileName": "src/getCookies.ts", + "qualifiedName": "getCookies" + }, + "1083": { + "sourceFileName": "src/getCookies.ts", + "qualifiedName": "getCookies" + }, + "1084": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.setCookie" + }, + "1085": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "setCookie" + }, + "1086": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "setCookie" + }, + "1087": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "T" + }, + "1088": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "name" + }, + "1089": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "value" + }, + "1090": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "seconds" + }, + "1091": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "path" + }, + "1092": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "samesite" + }, + "1093": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.delCookie" + }, + "1094": { + "sourceFileName": "src/delCookie.ts", + "qualifiedName": "delCookie" + }, + "1095": { + "sourceFileName": "src/delCookie.ts", + "qualifiedName": "delCookie" + }, + "1096": { + "sourceFileName": "src/delCookie.ts", + "qualifiedName": "name" + }, + "1097": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.camel2Dash" + }, + "1098": { + "sourceFileName": "src/camel2Dash.ts", + "qualifiedName": "camel2Dash" + }, + "1099": { + "sourceFileName": "src/camel2Dash.ts", + "qualifiedName": "camel2Dash" + }, + "1100": { + "sourceFileName": "src/camel2Dash.ts", + "qualifiedName": "string" + }, + "1101": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.cleanData" + }, + "1102": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "cleanData" + }, + "1103": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "cleanData" + }, + "1104": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "data" + }, + "1105": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "map" + }, + "1106": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "nullFix" + }, + "1107": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.clearAttr" + }, + "1108": { + "sourceFileName": "src/clearAttr.ts", + "qualifiedName": "clearAttr" + }, + "1109": { + "sourceFileName": "src/clearAttr.ts", + "qualifiedName": "clearAttr" + }, + "1110": { + "sourceFileName": "src/clearAttr.ts", + "qualifiedName": "string" + }, + "1111": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.clearHtml" + }, + "1112": { + "sourceFileName": "src/clearHtml.ts", + "qualifiedName": "clearHtml" + }, + "1113": { + "sourceFileName": "src/clearHtml.ts", + "qualifiedName": "clearHtml" + }, + "1114": { + "sourceFileName": "src/clearHtml.ts", + "qualifiedName": "string" + }, + "1115": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.escape" + }, + "1116": { + "sourceFileName": "src/escape.ts", + "qualifiedName": "escape" + }, + "1117": { + "sourceFileName": "src/escape.ts", + "qualifiedName": "escape" + }, + "1118": { + "sourceFileName": "src/escape.ts", + "qualifiedName": "string" + }, + "1119": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.unescape" + }, + "1120": { + "sourceFileName": "src/unescape.ts", + "qualifiedName": "unescape" + }, + "1121": { + "sourceFileName": "src/unescape.ts", + "qualifiedName": "unescape" + }, + "1122": { + "sourceFileName": "src/unescape.ts", + "qualifiedName": "string" + }, + "1123": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.client" + }, + "1124": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__function" + }, + "1125": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__function" + }, + "1126": { + "sourceFileName": "src/client.ts", + "qualifiedName": "name" + }, + "1127": { + "sourceFileName": "src/client.ts", + "qualifiedName": "userAgent" + }, + "1128": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object" + }, + "1129": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.IE" + }, + "1130": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.GECKO" + }, + "1131": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.WEBKIT" + }, + "1132": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.OPERA" + }, + "1133": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.TRIDENT" + }, + "1134": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.MOBILE" + }, + "1135": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.IOS" + }, + "1136": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.ANDROID" + }, + "1137": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.IPHONE" + }, + "1138": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.IPAD" + }, + "1139": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.QQBROWSER" + }, + "1140": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.WEIXIN" + }, + "1141": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.QQ" + }, + "1142": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.complement" + }, + "1143": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "complement" + }, + "1144": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "complement" + }, + "1145": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "T" + }, + "1146": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "args" + }, + "1147": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.contains" + }, + "1148": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "contains" + }, + "1149": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "contains" + }, + "1150": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "arr" + }, + "1151": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "item" + }, + "1152": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.CSVToArray" + }, + "1153": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "__function" + }, + "1154": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "__function" + }, + "1155": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "data" + }, + "1156": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "delimiter" + }, + "1157": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "omitFirstRow" + }, + "1158": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.arrayToCSV" + }, + "1159": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "__function" + }, + "1160": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "__function" + }, + "1161": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "T" + }, + "1162": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "arr" + }, + "1163": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "delimiter" + }, + "1164": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.CSVToJSON" + }, + "1165": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "CSVToJSON" + }, + "1166": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "CSVToJSON" + }, + "1167": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "data" + }, + "1168": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "delimiter" + }, + "1169": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.JSONToCSV" + }, + "1170": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "__function" + }, + "1171": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "__function" + }, + "1172": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "arr" + }, + "1173": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "columns" + }, + "1174": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "delimiter" + }, + "1175": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.cutCHSString" + }, + "1176": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "cutCHSString" + }, + "1177": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "cutCHSString" + }, + "1178": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "str" + }, + "1179": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "len" + }, + "1180": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "hasDot" + }, + "1181": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.dash2Camel" + }, + "1182": { + "sourceFileName": "src/dash2Camel.ts", + "qualifiedName": "dash2Camel" + }, + "1183": { + "sourceFileName": "src/dash2Camel.ts", + "qualifiedName": "dash2Camel" + }, + "1184": { + "sourceFileName": "src/dash2Camel.ts", + "qualifiedName": "string" + }, + "1185": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.decodeBase64" + }, + "1186": { + "sourceFileName": "src/decodeBase64.ts", + "qualifiedName": "decodeBase64" + }, + "1187": { + "sourceFileName": "src/decodeBase64.ts", + "qualifiedName": "decodeBase64" + }, + "1188": { + "sourceFileName": "src/decodeBase64.ts", + "qualifiedName": "input" + }, + "1189": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.decodeUtf8" + }, + "1190": { + "sourceFileName": "src/decodeUtf8.ts", + "qualifiedName": "decodeUtf8" + }, + "1191": { + "sourceFileName": "src/decodeUtf8.ts", + "qualifiedName": "decodeUtf8" + }, + "1192": { + "sourceFileName": "src/decodeUtf8.ts", + "qualifiedName": "utftext" + }, + "1193": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.delay" + }, + "1194": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "delay" + }, + "1195": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "delay" + }, + "1196": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object" + }, + "1197": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.map" + }, + "1198": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.register" + }, + "1199": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.register" + }, + "1200": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "id" + }, + "1201": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "fn" + }, + "1202": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "time" + }, + "1203": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "boo" + }, + "1204": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.destroy" + }, + "1205": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.destroy" + }, + "1206": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "id" + }, + "1207": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.encodeBase64" + }, + "1208": { + "sourceFileName": "src/encodeBase64.ts", + "qualifiedName": "encodeBase64" + }, + "1209": { + "sourceFileName": "src/encodeBase64.ts", + "qualifiedName": "encodeBase64" + }, + "1210": { + "sourceFileName": "src/encodeBase64.ts", + "qualifiedName": "input" + }, + "1211": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.encodeUtf8" + }, + "1212": { + "sourceFileName": "src/encodeUtf8.ts", + "qualifiedName": "encodeUtf8" + }, + "1213": { + "sourceFileName": "src/encodeUtf8.ts", + "qualifiedName": "encodeUtf8" + }, + "1214": { + "sourceFileName": "src/encodeUtf8.ts", + "qualifiedName": "string" + }, + "1215": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.extend" + }, + "1216": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "1217": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "1218": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "1219": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "1220": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "1221": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "1222": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "1223": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "1224": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "1225": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "1226": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "1227": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "1228": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "1229": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.clone" + }, + "1230": { + "sourceFileName": "src/clone.ts", + "qualifiedName": "clone" + }, + "1231": { + "sourceFileName": "src/clone.ts", + "qualifiedName": "clone" + }, + "1232": { + "sourceFileName": "src/clone.ts", + "qualifiedName": "T" + }, + "1233": { + "sourceFileName": "src/clone.ts", + "qualifiedName": "parent" + }, + "1234": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.fillIPv6" + }, + "1235": { + "sourceFileName": "src/fillIPv6.ts", + "qualifiedName": "fillIPv6" + }, + "1236": { + "sourceFileName": "src/fillIPv6.ts", + "qualifiedName": "fillIPv6" + }, + "1237": { + "sourceFileName": "src/fillIPv6.ts", + "qualifiedName": "ip" + }, + "1238": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.fixNumber" + }, + "1239": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "fixNumber" + }, + "1240": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "fixNumber" + }, + "1241": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "number" + }, + "1242": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "n" + }, + "1243": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.mapTemplate" + }, + "1244": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "mapTemplate" + }, + "1245": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "mapTemplate" + }, + "1246": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "tmp" + }, + "1247": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "data" + }, + "1248": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "__type" + }, + "1249": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "__type" + }, + "1250": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "value" + }, + "1251": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getAppVersion" + }, + "1252": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "getAppVersion" + }, + "1253": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "getAppVersion" + }, + "1254": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "appName" + }, + "1255": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "withApp" + }, + "1256": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "userAgent" + }, + "1257": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.appVersion" + }, + "1258": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "1259": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "1260": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "1261": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "1262": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "1263": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ua" + }, + "1264": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "1265": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "1266": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ua" + }, + "1267": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "1268": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "1269": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ua" + }, + "1270": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ignoreCase" + }, + "1271": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getCHSLength" + }, + "1272": { + "sourceFileName": "src/getCHSLength.ts", + "qualifiedName": "getCHSLength" + }, + "1273": { + "sourceFileName": "src/getCHSLength.ts", + "qualifiedName": "getCHSLength" + }, + "1274": { + "sourceFileName": "src/getCHSLength.ts", + "qualifiedName": "str" + }, + "1275": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getDirParam" + }, + "1276": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "getDirParam" + }, + "1277": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "getDirParam" + }, + "1278": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "url" + }, + "1279": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.compareVersion" + }, + "1280": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "compareVersion" + }, + "1281": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "compareVersion" + }, + "1282": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "input" + }, + "1283": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "compare" + }, + "1284": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getNumber" + }, + "1285": { + "sourceFileName": "src/getNumber.ts", + "qualifiedName": "getNumber" + }, + "1286": { + "sourceFileName": "src/getNumber.ts", + "qualifiedName": "getNumber" + }, + "1287": { + "sourceFileName": "src/getNumber.ts", + "qualifiedName": "string" + }, + "1288": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getOsVersion" + }, + "1289": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "getOsVersion" + }, + "1290": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "getOsVersion" + }, + "1291": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "osName" + }, + "1292": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "withOS" + }, + "1293": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "userAgent" + }, + "1294": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.osVersion" + }, + "1295": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "osVersion" + }, + "1296": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "osVersion" + }, + "1297": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "ua" + }, + "1298": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.browserVersion" + }, + "1299": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "browserVersion" + }, + "1300": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "browserVersion" + }, + "1301": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "ua" + }, + "1302": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getQueryParam" + }, + "1303": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "getQueryParam" + }, + "1304": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "getQueryParam" + }, + "1305": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "key" + }, + "1306": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "getQueryParam" + }, + "1307": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "key" + }, + "1308": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "url" + }, + "1309": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getQueryParams" + }, + "1310": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "1311": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "1312": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "url" + }, + "1313": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "1314": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "url" + }, + "1315": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "1316": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "url" + }, + "1317": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "covert" + }, + "1318": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getProperty" + }, + "1319": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "getProperty" + }, + "1320": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "getProperty" + }, + "1321": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "T" + }, + "1322": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "target" + }, + "1323": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "prop" + }, + "1324": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "__type" + }, + "1325": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "__type" + }, + "1326": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "defaultValue" + }, + "1327": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "getProperty" + }, + "1328": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "T" + }, + "1329": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "target" + }, + "1330": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "prop" + }, + "1331": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "__type" + }, + "1332": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "__type" + }, + "1333": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "defaultValue" + }, + "1334": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.randomColor" + }, + "1335": { + "sourceFileName": "src/randomColor.ts", + "qualifiedName": "randomColor" + }, + "1336": { + "sourceFileName": "src/randomColor.ts", + "qualifiedName": "randomColor" + }, + "1337": { + "sourceFileName": "src/randomColor.ts", + "qualifiedName": "min" + }, + "1338": { + "sourceFileName": "src/randomColor.ts", + "qualifiedName": "max" + }, + "1339": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.randomNumber" + }, + "1340": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "randomNumber" + }, + "1341": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "randomNumber" + }, + "1342": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "min" + }, + "1343": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "max" + }, + "1344": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.randomNumbers" + }, + "1345": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "randomNumbers" + }, + "1346": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "randomNumbers" + }, + "1347": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "n" + }, + "1348": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "sum" + }, + "1349": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "noZero" + }, + "1350": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.randomString" + }, + "1351": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "randomString" + }, + "1352": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "randomString" + }, + "1353": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "len" + }, + "1354": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "options" + }, + "1355": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "randomString" + }, + "1356": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "len" + }, + "1357": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "options" + }, + "1358": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.shuffle" + }, + "1359": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "shuffle" + }, + "1360": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "shuffle" + }, + "1361": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "value" + }, + "1362": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "size" + }, + "1363": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "shuffle" + }, + "1364": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "T" + }, + "1365": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "value" + }, + "1366": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "size" + }, + "1367": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.fingerprint" + }, + "1368": { + "sourceFileName": "src/fingerprint.ts", + "qualifiedName": "fingerprint" + }, + "1369": { + "sourceFileName": "src/fingerprint.ts", + "qualifiedName": "fingerprint" + }, + "1370": { + "sourceFileName": "src/fingerprint.ts", + "qualifiedName": "domain" + }, + "1371": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getScrollPosition" + }, + "1372": { + "sourceFileName": "src/getScrollPosition.ts", + "qualifiedName": "getScrollPosition" + }, + "1373": { + "sourceFileName": "src/getScrollPosition.ts", + "qualifiedName": "getScrollPosition" + }, + "1374": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getType" + }, + "1375": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "getType" + }, + "1376": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "getType" + }, + "1377": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "T" + }, + "1378": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "target" + }, + "1379": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getFileType" + }, + "1380": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "getFileType" + }, + "1381": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "getFileType" + }, + "1382": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "url" + }, + "1383": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "__object" + }, + "1384": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "__object.suffix" + }, + "1385": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "__object.type" + }, + "1386": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.sorter" + }, + "1387": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "sorter" + }, + "1388": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "sorter" + }, + "1389": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "locales" + }, + "1390": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "options" + }, + "1391": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "__function" + }, + "1392": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "__function" + }, + "1393": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "T" + }, + "1394": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "P" + }, + "1395": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "a" + }, + "1396": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "b" + }, + "1397": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.sortPinyin" + }, + "1398": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "sortPinyin" + }, + "1399": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "sortPinyin" + }, + "1400": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "T" + }, + "1401": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "P" + }, + "1402": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "a" + }, + "1403": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "b" + }, + "1404": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "options" + }, + "1405": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.parseUrlParam" + }, + "1406": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "parseUrlParam" + }, + "1407": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "parseUrlParam" + }, + "1408": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "url" + }, + "1409": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "covert" + }, + "1410": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.spliceUrlParam" + }, + "1411": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "spliceUrlParam" + }, + "1412": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "spliceUrlParam" + }, + "1413": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "T" + }, + "1414": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "params" + }, + "1415": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "covert" + }, + "1416": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.safeParse" + }, + "1417": { + "sourceFileName": "src/safeParse.ts", + "qualifiedName": "safeParse" + }, + "1418": { + "sourceFileName": "src/safeParse.ts", + "qualifiedName": "safeParse" + }, + "1419": { + "sourceFileName": "src/safeParse.ts", + "qualifiedName": "data" + }, + "1420": { + "sourceFileName": "src/safeParse.ts", + "qualifiedName": "covert" + }, + "1421": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.safeStringify" + }, + "1422": { + "sourceFileName": "src/safeStringify.ts", + "qualifiedName": "safeStringify" + }, + "1423": { + "sourceFileName": "src/safeStringify.ts", + "qualifiedName": "safeStringify" + }, + "1424": { + "sourceFileName": "src/safeStringify.ts", + "qualifiedName": "data" + }, + "1425": { + "sourceFileName": "src/safeStringify.ts", + "qualifiedName": "covert" + }, + "1426": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getUrlParam" + }, + "1427": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "getUrlParam" + }, + "1428": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "getUrlParam" + }, + "1429": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "key" + }, + "1430": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "getUrlParam" + }, + "1431": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "key" + }, + "1432": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "url" + }, + "1433": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getUrlParams" + }, + "1434": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "1435": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "1436": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "url" + }, + "1437": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "1438": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "url" + }, + "1439": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "1440": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "url" + }, + "1441": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "covert" + }, + "1442": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.intersect" + }, + "1443": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "intersect" + }, + "1444": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "intersect" + }, + "1445": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "T" + }, + "1446": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "args" + }, + "1447": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isDigitals" + }, + "1448": { + "sourceFileName": "src/isDigitals.ts", + "qualifiedName": "isDigitals" + }, + "1449": { + "sourceFileName": "src/isDigitals.ts", + "qualifiedName": "isDigitals" + }, + "1450": { + "sourceFileName": "src/isDigitals.ts", + "qualifiedName": "str" + }, + "1451": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isExitsFunction" + }, + "1452": { + "sourceFileName": "src/isExitsFunction.ts", + "qualifiedName": "isExitsFunction" + }, + "1453": { + "sourceFileName": "src/isExitsFunction.ts", + "qualifiedName": "isExitsFunction" + }, + "1454": { + "sourceFileName": "src/isExitsFunction.ts", + "qualifiedName": "name" + }, + "1455": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isExitsVariable" + }, + "1456": { + "sourceFileName": "src/isExitsVariable.ts", + "qualifiedName": "isExitsVariable" + }, + "1457": { + "sourceFileName": "src/isExitsVariable.ts", + "qualifiedName": "isExitsVariable" + }, + "1458": { + "sourceFileName": "src/isExitsVariable.ts", + "qualifiedName": "name" + }, + "1459": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isEqual" + }, + "1460": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "isEqual" + }, + "1461": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "isEqual" + }, + "1462": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "T" + }, + "1463": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "P" + }, + "1464": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "a" + }, + "1465": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "b" + }, + "1466": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isWindow" + }, + "1467": { + "sourceFileName": "src/isWindow.ts", + "qualifiedName": "isWindow" + }, + "1468": { + "sourceFileName": "src/isWindow.ts", + "qualifiedName": "isWindow" + }, + "1469": { + "sourceFileName": "src/isWindow.ts", + "qualifiedName": "target" + }, + "1470": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isObject" + }, + "1471": { + "sourceFileName": "src/isObject.ts", + "qualifiedName": "isObject" + }, + "1472": { + "sourceFileName": "src/isObject.ts", + "qualifiedName": "isObject" + }, + "1473": { + "sourceFileName": "src/isObject.ts", + "qualifiedName": "target" + }, + "1474": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isDate" + }, + "1475": { + "sourceFileName": "src/isDate.ts", + "qualifiedName": "isDate" + }, + "1476": { + "sourceFileName": "src/isDate.ts", + "qualifiedName": "isDate" + }, + "1477": { + "sourceFileName": "src/isDate.ts", + "qualifiedName": "target" + }, + "1478": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isRegExp" + }, + "1479": { + "sourceFileName": "src/isRegExp.ts", + "qualifiedName": "isRegExp" + }, + "1480": { + "sourceFileName": "src/isRegExp.ts", + "qualifiedName": "isRegExp" + }, + "1481": { + "sourceFileName": "src/isRegExp.ts", + "qualifiedName": "target" + }, + "1482": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isArray" + }, + "1483": { + "sourceFileName": "src/isArray.ts", + "qualifiedName": "isArray" + }, + "1484": { + "sourceFileName": "src/isArray.ts", + "qualifiedName": "isArray" + }, + "1485": { + "sourceFileName": "src/isArray.ts", + "qualifiedName": "target" + }, + "1486": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isIterable" + }, + "1487": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "isIterable" + }, + "1488": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "isIterable" + }, + "1489": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "T" + }, + "1490": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "target" + }, + "1491": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isPlainObject" + }, + "1492": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "isPlainObject" + }, + "1493": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "isPlainObject" + }, + "1494": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "target" + }, + "1495": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isDarkMode" + }, + "1496": { + "sourceFileName": "src/isDarkMode.ts", + "qualifiedName": "isDarkMode" + }, + "1497": { + "sourceFileName": "src/isDarkMode.ts", + "qualifiedName": "isDarkMode" + }, + "1498": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.inBrowser" + }, + "1499": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.inNodeJs" + }, + "1500": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isNumberBrowser" + }, + "1501": { + "sourceFileName": "src/isNumberBrowser.ts", + "qualifiedName": "isNumberBrowser" + }, + "1502": { + "sourceFileName": "src/isNumberBrowser.ts", + "qualifiedName": "isNumberBrowser" + }, + "1503": { + "sourceFileName": "src/isNumberBrowser.ts", + "qualifiedName": "userAgent" + }, + "1504": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.minus" + }, + "1505": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "minus" + }, + "1506": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "minus" + }, + "1507": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "T" + }, + "1508": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "args" + }, + "1509": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.nextIndex" + }, + "1510": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "nextIndex" + }, + "1511": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "nextIndex" + }, + "1512": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "min" + }, + "1513": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "max" + }, + "1514": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.nextVersion" + }, + "1515": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "nextVersion" + }, + "1516": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "nextVersion" + }, + "1517": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "version" + }, + "1518": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "type" + }, + "1519": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "preid" + }, + "1520": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.punctualTimer" + }, + "1521": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "punctualTimer" + }, + "1522": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "punctualTimer" + }, + "1523": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "TArgs" + }, + "1524": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "handler" + }, + "1525": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__type" + }, + "1526": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__type" + }, + "1527": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "args" + }, + "1528": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "delay" + }, + "1529": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__2" + }, + "1530": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "punctualTimer" + }, + "1531": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "TArgs" + }, + "1532": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "handler" + }, + "1533": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__type" + }, + "1534": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__type" + }, + "1535": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "args" + }, + "1536": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "delay" + }, + "1537": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__2" + }, + "1538": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.promiseFactory" + }, + "1539": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "promiseFactory" + }, + "1540": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "promiseFactory" + }, + "1541": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "T" + }, + "1542": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "original" + }, + "1543": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "resolver" + }, + "1544": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "__type" + }, + "1545": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "__type" + }, + "1546": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.waiting" + }, + "1547": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "__function" + }, + "1548": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "__function" + }, + "1549": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "milliseconds" + }, + "1550": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "throwOnTimeout" + }, + "1551": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.awaitTo" + }, + "1552": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "awaitToDone" + }, + "1553": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "awaitToDone" + }, + "1554": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "T" + }, + "1555": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "E" + }, + "1556": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "promise" + }, + "1557": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "awaitToDone" + }, + "1558": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "P" + }, + "1559": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "E" + }, + "1560": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "promise" + }, + "1561": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "awaitToDone" + }, + "1562": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "T" + }, + "1563": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "P" + }, + "1564": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "E" + }, + "1565": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "promise" + }, + "1566": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "promises" + }, + "1567": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.arrayBufferToBase64" + }, + "1568": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "arrayBufferToBase64" + }, + "1569": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "arrayBufferToBase64" + }, + "1570": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "input" + }, + "1571": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "mime" + }, + "1572": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.arrayBufferToBlob" + }, + "1573": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "arrayBufferToBlob" + }, + "1574": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "arrayBufferToBlob" + }, + "1575": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "input" + }, + "1576": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "mime" + }, + "1577": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.base64ToArrayBuffer" + }, + "1578": { + "sourceFileName": "src/base64ToArrayBuffer.ts", + "qualifiedName": "base64ToArrayBuffer" + }, + "1579": { + "sourceFileName": "src/base64ToArrayBuffer.ts", + "qualifiedName": "base64ToArrayBuffer" + }, + "1580": { + "sourceFileName": "src/base64ToArrayBuffer.ts", + "qualifiedName": "input" + }, + "1581": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.base64ToBlob" + }, + "1582": { + "sourceFileName": "src/base64ToBlob.ts", + "qualifiedName": "base64ToBlob" + }, + "1583": { + "sourceFileName": "src/base64ToBlob.ts", + "qualifiedName": "base64ToBlob" + }, + "1584": { + "sourceFileName": "src/base64ToBlob.ts", + "qualifiedName": "input" + }, + "1585": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.base64ToFile" + }, + "1586": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "base64ToFile" + }, + "1587": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "base64ToFile" + }, + "1588": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "input" + }, + "1589": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "fileName" + }, + "1590": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.blobToArrayBuffer" + }, + "1591": { + "sourceFileName": "src/blobToArrayBuffer.ts", + "qualifiedName": "blobToArrayBuffer" + }, + "1592": { + "sourceFileName": "src/blobToArrayBuffer.ts", + "qualifiedName": "blobToArrayBuffer" + }, + "1593": { + "sourceFileName": "src/blobToArrayBuffer.ts", + "qualifiedName": "input" + }, + "1594": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.blobToBase64" + }, + "1595": { + "sourceFileName": "src/blobToBase64.ts", + "qualifiedName": "blobToBase64" + }, + "1596": { + "sourceFileName": "src/blobToBase64.ts", + "qualifiedName": "blobToBase64" + }, + "1597": { + "sourceFileName": "src/blobToBase64.ts", + "qualifiedName": "input" + }, + "1598": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.blobToUrl" + }, + "1599": { + "sourceFileName": "src/blobToUrl.ts", + "qualifiedName": "blobToUrl" + }, + "1600": { + "sourceFileName": "src/blobToUrl.ts", + "qualifiedName": "blobToUrl" + }, + "1601": { + "sourceFileName": "src/blobToUrl.ts", + "qualifiedName": "input" + }, + "1602": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.fileToBase64" + }, + "1603": { + "sourceFileName": "src/fileToBase64.ts", + "qualifiedName": "fileToBase64" + }, + "1604": { + "sourceFileName": "src/fileToBase64.ts", + "qualifiedName": "fileToBase64" + }, + "1605": { + "sourceFileName": "src/fileToBase64.ts", + "qualifiedName": "input" + }, + "1606": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.svgToBlob" + }, + "1607": { + "sourceFileName": "src/svgToBlob.ts", + "qualifiedName": "svgToBlob" + }, + "1608": { + "sourceFileName": "src/svgToBlob.ts", + "qualifiedName": "svgToBlob" + }, + "1609": { + "sourceFileName": "src/svgToBlob.ts", + "qualifiedName": "input" + }, + "1610": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.urlToBlob" + }, + "1611": { + "sourceFileName": "src/urlToBlob.ts", + "qualifiedName": "urlToBlob" + }, + "1612": { + "sourceFileName": "src/urlToBlob.ts", + "qualifiedName": "urlToBlob" + }, + "1613": { + "sourceFileName": "src/urlToBlob.ts", + "qualifiedName": "input" + }, + "1614": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.openUrl" + }, + "1615": { + "sourceFileName": "src/openUrl.ts", + "qualifiedName": "openUrl" + }, + "1616": { + "sourceFileName": "src/openUrl.ts", + "qualifiedName": "openUrl" + }, + "1617": { + "sourceFileName": "src/openUrl.ts", + "qualifiedName": "url" + }, + "1618": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.copy" + }, + "1619": { + "sourceFileName": "src/copy.ts", + "qualifiedName": "copy" + }, + "1620": { + "sourceFileName": "src/copy.ts", + "qualifiedName": "copy" + }, + "1621": { + "sourceFileName": "src/copy.ts", + "qualifiedName": "value" + }, + "1622": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.pattern" + }, + "1623": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object" + }, + "1624": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.any" + }, + "1625": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.number" + }, + "1626": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.string" + }, + "1627": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.postcode" + }, + "1628": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.url" + }, + "1629": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.username" + }, + "1630": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.float" + }, + "1631": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.email" + }, + "1632": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.mobile" + }, + "1633": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.chinese" + }, + "1634": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.tel" + }, + "1635": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.qq" + }, + "1636": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.pass" + }, + "1637": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.json" + }, + "1638": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.arrjson" + }, + "1639": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.array" + }, + "1640": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.isjson" + }, + "1641": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.textarea" + }, + "1642": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.mac" + }, + "1643": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.ip4" + }, + "1644": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.ip4_pri" + }, + "1645": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.removeEvent" + }, + "1646": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "removeEvent" + }, + "1647": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "removeEvent" + }, + "1648": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "element" + }, + "1649": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "type" + }, + "1650": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "handler" + }, + "1651": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.searchObject" + }, + "1652": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "searchObject" + }, + "1653": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "searchObject" + }, + "1654": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "tree" + }, + "1655": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "expression" + }, + "1656": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "keySet" + }, + "1657": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "number" + }, + "1658": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.setProperty" + }, + "1659": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "setProperty" + }, + "1660": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "setProperty" + }, + "1661": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "target" + }, + "1662": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "prop" + }, + "1663": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "__type" + }, + "1664": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "__type" + }, + "1665": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "value" + }, + "1666": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.stopBubble" + }, + "1667": { + "sourceFileName": "src/stopBubble.ts", + "qualifiedName": "stopBubble" + }, + "1668": { + "sourceFileName": "src/stopBubble.ts", + "qualifiedName": "stopBubble" + }, + "1669": { + "sourceFileName": "src/stopBubble.ts", + "qualifiedName": "e" + }, + "1670": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.stopDefault" + }, + "1671": { + "sourceFileName": "src/stopDefault.ts", + "qualifiedName": "stopDefault" + }, + "1672": { + "sourceFileName": "src/stopDefault.ts", + "qualifiedName": "stopDefault" + }, + "1673": { + "sourceFileName": "src/stopDefault.ts", + "qualifiedName": "e" + }, + "1674": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.toThousands" + }, + "1675": { + "sourceFileName": "src/toThousands.ts", + "qualifiedName": "toThousands" + }, + "1676": { + "sourceFileName": "src/toThousands.ts", + "qualifiedName": "toThousands" + }, + "1677": { + "sourceFileName": "src/toThousands.ts", + "qualifiedName": "num" + }, + "1678": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.trim" + }, + "1679": { + "sourceFileName": "src/trim.ts", + "qualifiedName": "trim" + }, + "1680": { + "sourceFileName": "src/trim.ts", + "qualifiedName": "trim" + }, + "1681": { + "sourceFileName": "src/trim.ts", + "qualifiedName": "string" + }, + "1682": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.union" + }, + "1683": { + "sourceFileName": "src/union.ts", + "qualifiedName": "union" + }, + "1684": { + "sourceFileName": "src/union.ts", + "qualifiedName": "union" + }, + "1685": { + "sourceFileName": "src/union.ts", + "qualifiedName": "T" + }, + "1686": { + "sourceFileName": "src/union.ts", + "qualifiedName": "args" + }, + "1687": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.unique" + }, + "1688": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "unique" + }, + "1689": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "unique" + }, + "1690": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "T" + }, + "1691": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "arr" + }, + "1692": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.upperFirst" + }, + "1693": { + "sourceFileName": "src/upperFirst.ts", + "qualifiedName": "upperFirst" + }, + "1694": { + "sourceFileName": "src/upperFirst.ts", + "qualifiedName": "upperFirst" + }, + "1695": { + "sourceFileName": "src/upperFirst.ts", + "qualifiedName": "string" + }, + "1696": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.uuid" + }, + "1697": { + "sourceFileName": "src/uuid.ts", + "qualifiedName": "__function" + }, + "1698": { + "sourceFileName": "src/uuid.ts", + "qualifiedName": "__function" + }, + "1699": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.windowSize" + }, + "1700": { + "sourceFileName": "src/windowSize.ts", + "qualifiedName": "windowSize" + }, + "1701": { + "sourceFileName": "src/windowSize.ts", + "qualifiedName": "windowSize" + }, + "1702": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.loadSource" + }, + "1703": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "loadSource" + }, + "1704": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "loadSource" + }, + "1705": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "url" + }, + "1706": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "option" + }, + "1707": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.mountCss" + }, + "1708": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "mountCss" + }, + "1709": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "mountCss" + }, + "1710": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "src" + }, + "1711": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "option" + }, + "1712": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.mountImg" + }, + "1713": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "mountImage" + }, + "1714": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "mountImage" + }, + "1715": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "src" + }, + "1716": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "option" + }, + "1717": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.mountJs" + }, + "1718": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "mountScript" + }, + "1719": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "mountScript" + }, + "1720": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "src" + }, + "1721": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "option" + }, + "1722": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.mountStyle" + }, + "1723": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "mountStyle" + }, + "1724": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "mountStyle" + }, + "1725": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "css" + }, + "1726": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "option" + }, + "1727": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.preloader" + }, + "1728": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "preloader" + }, + "1729": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "preloader" + }, + "1730": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "images" + }, + "1731": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "preloader" + }, + "1732": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "images" + } + }, + "files": { + "entries": { + "1": "src/index.ts", + "2": "CHANGELOG.md", + "3": "README-zh_CN.md", + "4": "LICENSE" + }, + "reflections": { + "1": 0 + } + } +} diff --git a/sitemap.xml b/sitemap.xml new file mode 100644 index 0000000..ab6073a --- /dev/null +++ b/sitemap.xml @@ -0,0 +1,623 @@ + + + + https://www.saqqdy.com/js-cool/modules.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/index.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/awaitTo.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/loadSource.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/mountCss.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/mountImg.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/mountJs.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/mountStyle.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/download.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/CSVToArray.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/CSVToJSON.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/JSONToCSV.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/RGBToHex.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/addEvent.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/all.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/any.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/appVersion.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/arrayBufferToBase64.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/arrayBufferToBlob.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/arrayToCSV.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/base64ToArrayBuffer.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/base64ToBlob.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/base64ToFile.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/blobToArrayBuffer.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/blobToBase64.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/blobToUrl.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/interfaces/BrowserVersion.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/browserVersion-1.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/camel2Dash.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/cleanData.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/clearAttr.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/clearHtml.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/client.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/clone.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/compareVersion.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/complement.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/contains.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/copy.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/cutCHSString.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/dash2Camel.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/decodeBase64.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/decodeUtf8.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/delCache.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/delCookie.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/delSession.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/delay.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/encodeBase64.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/encodeUtf8.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/escape.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/types/ExtendArrayData.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/types/ExtendObjectData.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/types/ExtendData.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/extend.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/fileToBase64.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/fillIPv6.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/fingerprint.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/fixNumber.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/getAppVersion.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/getCHSLength.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/getCache.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/getCookie.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/getCookies.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/interfaces/DirParamType.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/getDirParam.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/getFileType.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/getNumber.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/getOsVersion.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/getProperty.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/getQueryParam.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/getQueryParams.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/getScrollPosition.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/getSession.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/getType.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/getUrlParam.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/getUrlParams.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/variables/inBrowser.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/variables/inNodeJs.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/variables/default.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/variables/version.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/intersect.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/isArray.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/isDarkMode.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/isDate.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/isDigitals.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/isEqual.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/isExitsFunction.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/isExitsVariable.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/isIterable.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/isNumberBrowser.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/isObject.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/types/Primitive.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/types/JSONValue.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/interfaces/PlainObject.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/interfaces/JSONArray.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/isPlainObject.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/isRegExp.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/isWindow.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/mapTemplate.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/minus.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/nextIndex.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/interfaces/Version-1.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/nextVersion.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/openUrl.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/interfaces/OsVersion.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/osVersion-1.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/parseUrlParam.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/variables/pattern.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/preloader.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/promiseFactory.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/interfaces/PunctualTimerReturns.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/punctualTimer.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/randomColor.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/randomNumber.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/randomNumbers.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/types/RandomStringCharType.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/interfaces/RandomStringOptions.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/randomString.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/removeEvent.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/safeParse.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/safeStringify.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/interfaces/SearchKeySet.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/searchObject.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/setCache.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/setCookie.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/setProperty.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/setSession.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/shuffle.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/sortPinyin.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/sorter.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/interfaces/SpliceUrlParamOptions.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/spliceUrlParam.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/stopBubble.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/stopDefault.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/svgToBlob.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/toThousands.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/trim.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/types/AnyObject.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/interfaces/AnyFunction.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/interfaces/ArrayOne.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/types/ArrayOneMore.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/types/ArrayTwoMore.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/types/PickRequired.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/types/OmitRequired.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/types/PickPartial.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/types/OmitPartial.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/types/MaybePromiseOrGetter.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/unescape.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/union.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/unique.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/upperFirst.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/urlToBlob.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/uuid.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/waiting.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/interfaces/WindowSizeObj.html + 2025-01-17T02:27:27.380Z + + + https://www.saqqdy.com/js-cool/functions/windowSize.html + 2025-01-17T02:27:27.380Z + + diff --git a/types/AnyObject.html b/types/AnyObject.html new file mode 100644 index 0000000..32875d5 --- /dev/null +++ b/types/AnyObject.html @@ -0,0 +1 @@ +AnyObject | JS-COOL DOCS - v5.23.1

Type Alias AnyObject

AnyObject: Record<string, any>
diff --git a/types/ArrayOneMore.html b/types/ArrayOneMore.html new file mode 100644 index 0000000..2de3303 --- /dev/null +++ b/types/ArrayOneMore.html @@ -0,0 +1 @@ +ArrayOneMore | JS-COOL DOCS - v5.23.1

Type Alias ArrayOneMore<T>

ArrayOneMore: ArrayOne<T> & T[]

Type Parameters

  • T
diff --git a/types/ArrayTwoMore.html b/types/ArrayTwoMore.html new file mode 100644 index 0000000..8d1bd3c --- /dev/null +++ b/types/ArrayTwoMore.html @@ -0,0 +1 @@ +ArrayTwoMore | JS-COOL DOCS - v5.23.1

Type Alias ArrayTwoMore<T>

ArrayTwoMore: { "0": T; "1": T } & T[]

Type Parameters

  • T
diff --git a/types/ExtendArrayData.html b/types/ExtendArrayData.html new file mode 100644 index 0000000..c2546aa --- /dev/null +++ b/types/ExtendArrayData.html @@ -0,0 +1 @@ +ExtendArrayData | JS-COOL DOCS - v5.23.1

Type Alias ExtendArrayData

ExtendArrayData: any[]
diff --git a/types/ExtendData.html b/types/ExtendData.html new file mode 100644 index 0000000..ed402e4 --- /dev/null +++ b/types/ExtendData.html @@ -0,0 +1 @@ +ExtendData | JS-COOL DOCS - v5.23.1

Type Alias ExtendData

diff --git a/types/ExtendObjectData.html b/types/ExtendObjectData.html new file mode 100644 index 0000000..179bbf7 --- /dev/null +++ b/types/ExtendObjectData.html @@ -0,0 +1 @@ +ExtendObjectData | JS-COOL DOCS - v5.23.1

Type Alias ExtendObjectData

ExtendObjectData: Record<string, any>
diff --git a/types/JSONValue.html b/types/JSONValue.html new file mode 100644 index 0000000..9304120 --- /dev/null +++ b/types/JSONValue.html @@ -0,0 +1 @@ +JSONValue | JS-COOL DOCS - v5.23.1

Type Alias JSONValue

diff --git a/types/MaybePromiseOrGetter.html b/types/MaybePromiseOrGetter.html new file mode 100644 index 0000000..6057b0d --- /dev/null +++ b/types/MaybePromiseOrGetter.html @@ -0,0 +1 @@ +MaybePromiseOrGetter | JS-COOL DOCS - v5.23.1

Type Alias MaybePromiseOrGetter<T>

MaybePromiseOrGetter: Promise<T> | <T>() => Promise<T>

Type Parameters

  • T
diff --git a/types/OmitPartial.html b/types/OmitPartial.html new file mode 100644 index 0000000..4c7bd32 --- /dev/null +++ b/types/OmitPartial.html @@ -0,0 +1 @@ +OmitPartial | JS-COOL DOCS - v5.23.1

Type Alias OmitPartial<T, K>

OmitPartial: { [P in K]: T[P] } & Omit<Partial<T>, K>

Type Parameters

  • T
  • K extends keyof T
diff --git a/types/OmitRequired.html b/types/OmitRequired.html new file mode 100644 index 0000000..f37e833 --- /dev/null +++ b/types/OmitRequired.html @@ -0,0 +1 @@ +OmitRequired | JS-COOL DOCS - v5.23.1

Type Alias OmitRequired<T, K>

OmitRequired: { [P in K]: T[P] } & Omit<Required<T>, K>

Type Parameters

  • T
  • K extends keyof T
diff --git a/types/PickPartial.html b/types/PickPartial.html new file mode 100644 index 0000000..5006b9c --- /dev/null +++ b/types/PickPartial.html @@ -0,0 +1 @@ +PickPartial | JS-COOL DOCS - v5.23.1

Type Alias PickPartial<T, K>

PickPartial: { [P in K]?: T[P] } & Omit<T, K>

Type Parameters

  • T
  • K extends keyof T
diff --git a/types/PickRequired.html b/types/PickRequired.html new file mode 100644 index 0000000..fd55d59 --- /dev/null +++ b/types/PickRequired.html @@ -0,0 +1 @@ +PickRequired | JS-COOL DOCS - v5.23.1

Type Alias PickRequired<T, K>

PickRequired: { [P in K]-?: T[P] } & Omit<T, K>

Type Parameters

  • T
  • K extends keyof T
diff --git a/types/Primitive.html b/types/Primitive.html new file mode 100644 index 0000000..230396a --- /dev/null +++ b/types/Primitive.html @@ -0,0 +1 @@ +Primitive | JS-COOL DOCS - v5.23.1

Type Alias Primitive

Primitive: bigint | boolean | null | number | string | symbol | undefined
diff --git a/types/RandomStringCharType.html b/types/RandomStringCharType.html new file mode 100644 index 0000000..bbef8d1 --- /dev/null +++ b/types/RandomStringCharType.html @@ -0,0 +1 @@ +RandomStringCharType | JS-COOL DOCS - v5.23.1

Type Alias RandomStringCharType

RandomStringCharType: "uppercase" | "lowercase" | "number" | "special"
diff --git a/variables/default.html b/variables/default.html new file mode 100644 index 0000000..88b025d --- /dev/null +++ b/variables/default.html @@ -0,0 +1 @@ +default | JS-COOL DOCS - v5.23.1

Variable default

default: {
    version: string;
    download: (url: string, filename: string, type?: string) => void;
    RGBToHex: (r: number, g: number, b: number) => string;
    addEvent: typeof addEvent;
    all: <T = unknown>(arr: T[], fn: AnyFunction) => boolean;
    any: <T = unknown>(arr: T[], fn: AnyFunction) => boolean;
    getCache: (name: string) => any;
    setCache: <T = unknown>(
        name: string,
        value: T,
        seconds?: string | number,
    ) => void;
    delCache: (name: string) => void;
    getSession: (name: string) => any;
    setSession: <T = unknown>(
        name: string,
        value: T,
        seconds?: string | number,
    ) => void;
    delSession: (name: string) => void;
    getCookie: (name: string) => any;
    getCookies: () => Record<string, string>;
    setCookie: <T extends string | number | boolean>(
        name: string,
        value: T,
        seconds: string | number,
        path?: string,
        samesite?: boolean,
    ) => void;
    delCookie: (name: string) => void;
    camel2Dash: (string: string) => string;
    cleanData: (data: any, map: any[] | AnyObject, nullFix?: any) => any;
    clearAttr: (string: string) => string;
    clearHtml: (string: string) => string;
    escape: (string: string) => string;
    unescape: (string: string) => string;
    client: (
        name?: string,
        userAgent?: string,
    ) =>
        | boolean
        | {
            IE: boolean;
            GECKO: boolean;
            WEBKIT: boolean;
            OPERA: boolean;
            TRIDENT: boolean;
            MOBILE: boolean;
            IOS: boolean;
            ANDROID: boolean;
            IPHONE: boolean;
            IPAD: boolean;
            QQBROWSER: boolean;
            WEIXIN: boolean;
            QQ: null
            | RegExpMatchArray;
        };
    complement: <T = unknown>(...args: T[][]) => T[];
    contains: (arr: any[], item: any) => boolean;
    CSVToArray: (
        data: string,
        delimiter?: string,
        omitFirstRow?: boolean,
    ) => string[][];
    arrayToCSV: <T extends unknown[][]>(arr: T, delimiter?: string) => string;
    CSVToJSON: (data: string, delimiter?: string) => any[];
    JSONToCSV: (arr: any[], columns: any[], delimiter?: string) => string;
    cutCHSString: (str: string, len?: number, hasDot?: boolean) => string;
    dash2Camel: (string: string) => string;
    decodeBase64: (input: string) => string;
    decodeUtf8: (utftext: string) => string;
    delay: () => {
        map: any;
        register(id: string, fn: AnyFunction, time: number, boo: boolean): void;
        destroy(id: string): void;
    };
    encodeBase64: (input: string) => string;
    encodeUtf8: (string: string) => string;
    extend: {
        (
            target: ExtendObjectData,
            ...args: ArrayOneMore<ExtendObjectData>,
        ): ExtendObjectData;
        (
            target: boolean,
            ...args: ArrayOneMore<ExtendObjectData>,
        ): ExtendObjectData;
        (
            target: ExtendArrayData,
            ...args: ArrayOneMore<ExtendArrayData>,
        ): ExtendArrayData;
        (target: boolean, ...args: ArrayOneMore<ExtendArrayData>): ExtendArrayData;
    };
    clone: <T = any>(parent: T) => T;
    fillIPv6: (ip: string) => string;
    fixNumber: (number: string | number, n?: number) => number;
    mapTemplate: (
        tmp: string,
        data: Record<string, unknown> | (value: string) => unknown,
    ) => string;
    getAppVersion: (
        appName: string,
        withApp?: boolean,
        userAgent?: string,
    ) => string | boolean | null;
    appVersion: {
        (appName: string): string | null;
        (appName: string, ua: string): string | null;
        (appName: string, ua: boolean): string | null;
        (appName: string, ua: string, ignoreCase: boolean): string | null;
    };
    getCHSLength: (str: string) => number;
    getDirParam: (url: string) => DirParamType;
    compareVersion: (input: string, compare: string) => -1 | 0 | 1;
    getNumber: (string: string) => string;
    getOsVersion: (
        osName: string,
        withOS?: boolean,
        userAgent?: string,
    ) => string | boolean | null;
    osVersion: (ua?: string) => OsVersion | null;
    browserVersion: (ua?: string) => BrowserVersion | null;
    getQueryParam: {
        (key: string): string | undefined;
        (key: string, url: string): string | undefined;
    };
    getQueryParams: {
        (url: string): Record<string, string>;
        (url: boolean): Record<string, unknown>;
        (url: string, covert: boolean): Record<string, unknown>;
    };
    getProperty: {
        <T extends Record<string, any>>(
            target: T,
            prop: string | () => string,
            defaultValue?: any,
        ): any;
        <T extends any[]>(
            target: T,
            prop: string | () => string,
            defaultValue?: any,
        ): any;
    };
    randomColor: (
        min?: number | [number, number, number],
        max?: number | [number, number, number],
    ) => string;
    randomNumber: (min?: number, max?: number) => number;
    randomNumbers: (n?: number, sum?: number, noZero?: boolean) => number[];
    randomString: {
        (len?: number, options?: boolean | RandomStringOptions): string;
        (
            len?: boolean | RandomStringOptions,
            options?: boolean | RandomStringOptions,
        ): string;
    };
    shuffle: {
        (value: string, size?: number): string;
        <T extends unknown[] = unknown[]>(value: T, size?: number): T;
    };
    fingerprint: (domain?: string) => null | string;
    getScrollPosition: () => undefined | "bottom" | "top";
    getType: <T = any>(
        target: T,
    ) =>
        | "string"
        | "number"
        | "bigint"
        | "boolean"
        | "symbol"
        | "undefined"
        | "object"
        | "function"
        | "window"
        | "error"
        | "promise"
        | "math"
        | "document"
        | "navigator"
        | "global"
        | "array"
        | "null"
        | "date"
        | "regexp";
    getFileType: (
        url: string,
    ) => {
        suffix: string;
        type:
            | "audio"
            | "video"
            | "image"
            | "other"
            | "word"
            | "txt"
            | "excel"
            | "pdf"
            | "ppt"
            | "zip";
    };
    sorter: (
        locales?: string | string[],
        options?: CollatorOptions,
    ) => <T = string, P = string>(a: T, b: P) => number;
    sortPinyin: <T = string, P = string>(
        a: T,
        b: P,
        options?: CollatorOptions,
    ) => number;
    parseUrlParam: (url: string, covert?: boolean) => Record<string, unknown>;
    spliceUrlParam: <T extends Record<string, unknown>>(
        params: T,
        covert?: boolean | SpliceUrlParamOptions,
    ) => string;
    safeParse: (data: string, covert?: boolean) => any;
    safeStringify: (data: any, covert?: boolean) => string;
    getUrlParam: {
        (key: string): string | undefined;
        (key: string, url: string): string | undefined;
    };
    getUrlParams: {
        (url: string): Record<string, string>;
        (url: boolean): Record<string, unknown>;
        (url: string, covert: boolean): Record<string, unknown>;
    };
    intersect: <T = unknown>(...args: T[][]) => T[];
    isDigitals: (str: string) => boolean;
    isExitsFunction: (name: string) => boolean;
    isExitsVariable: (name: string) => boolean;
    isEqual: <T, P>(a: T, b: P) => boolean;
    isWindow: (target: any) => target is Window;
    isObject: (target: any) => target is Object;
    isDate: (target: any) => target is Date;
    isRegExp: (target: any) => target is RegExp;
    isArray: (target: any) => target is any[];
    isIterable: <T = any>(target: T | Iterable<T>) => target is Iterable<T>;
    isPlainObject: (target: unknown) => target is PlainObject;
    isDarkMode: () => boolean;
    inBrowser: boolean;
    inNodeJs: boolean;
    isNumberBrowser: (userAgent?: string) => boolean;
    minus: <T = unknown>(...args: T[][]) => T[];
    nextIndex: (min?: number, max?: number) => number;
    nextVersion: (
        version: string,
        type?:
            | "major"
            | "minor"
            | "patch"
            | "premajor"
            | "preminor"
            | "prepatch"
            | "prerelease",
        preid?: string,
    ) => string;
    punctualTimer: {
        <TArgs extends any[]>(
            handler: (args: void) => void,
            delay: number,
            args?: TArgs,
        ): PunctualTimerReturns;
        <TArgs extends any[]>(
            handler: (...args: TArgs) => void,
            delay: number,
            args?: TArgs,
        ): PunctualTimerReturns;
    };
    promiseFactory: <T extends object>(
        original: T,
        resolver: () => Promise<any>,
    ) => T & PromiseLike<T>;
    waiting: (milliseconds: number, throwOnTimeout?: boolean) => Promise<void>;
    awaitTo: {
        <T, E = Error>(
            promise: Promise<T>,
        ): Promise<[E, undefined] | [null, T]>;
        <P extends [] | readonly unknown[], E = Error>(
            promise: PromiseAll<P>,
        ): Promise<[E, undefined] | [null, P]>;
        <T, P extends [] | readonly unknown[], E = Error>(
            promise: Promise<T>,
            ...promises: PromiseAll<P>,
        ): Promise<[E, undefined] | [null, [T, ...P]]>;
    };
    arrayBufferToBase64: (input: ArrayBuffer, mime?: string) => string;
    arrayBufferToBlob: (input: ArrayBuffer, mime?: string) => Blob;
    base64ToArrayBuffer: (
        input: string,
    ) => Uint8Array<ArrayBuffer> | Buffer<ArrayBuffer>;
    base64ToBlob: (input: string) => Blob;
    base64ToFile: (input: string, fileName: string) => File;
    blobToArrayBuffer: (input: Blob) => Promise<ArrayBuffer | null>;
    blobToBase64: (input: Blob) => Promise<string | null>;
    blobToUrl: (input: Blob) => string;
    fileToBase64: (input: File) => Promise<string | null>;
    svgToBlob: (input: string) => Blob;
    urlToBlob: (input: string) => Promise<Blob | null>;
    openUrl: (url: string) => void;
    copy: (value: any) => undefined | boolean;
    pattern: {
        any: RegExp;
        number: RegExp;
        string: RegExp;
        postcode: RegExp;
        url: RegExp;
        username: RegExp;
        float: RegExp;
        email: RegExp;
        mobile: RegExp;
        chinese: RegExp;
        tel: RegExp;
        qq: RegExp;
        pass: RegExp;
        json: RegExp;
        arrjson: RegExp;
        array: RegExp;
        isjson: RegExp;
        textarea: RegExp;
        mac: RegExp;
        ip4: RegExp;
        ip4_pri: RegExp;
    };
    removeEvent: (
        element: AnyObject,
        type: string,
        handler: AnyFunction,
    ) => void;
    searchObject: (
        tree: object | any[],
        expression: any,
        keySet: SearchKeySet,
        number?: number,
    ) => any[];
    setProperty: (target: any, prop: string | () => string, value: any) => any;
    stopBubble: (e: Event) => boolean;
    stopDefault: (e: Event) => boolean;
    toThousands: (num: string | number) => string;
    trim: (string: string) => string;
    union: <T = unknown>(...args: T[][]) => T[];
    unique: <T = unknown>(arr: T[]) => T[];
    upperFirst: (string: string) => string;
    uuid: () => string;
    windowSize: () => WindowSizeObj;
    loadSource: (
        url: string,
        option: string | SourceOptions,
    ) => Promise<boolean | string>;
    mountCss: (src: string, option?: CssOptions) => Promise<boolean>;
    mountImg: (src: string, option?: ImgOptions) => Promise<boolean | string>;
    mountJs: (src: string, option?: JsOptions) => Promise<boolean>;
    mountStyle: (css: string, option?: StyleOptions) => Promise<boolean>;
    preloader: {
        (images: string): HTMLImageElement;
        (images: string[]): Record<string, HTMLImageElement>;
    };
}

Type declaration

  • version: string
  • download: (url: string, filename: string, type?: string) => void
  • RGBToHex: (r: number, g: number, b: number) => string
  • addEvent: typeof addEvent
  • all: <T = unknown>(arr: T[], fn: AnyFunction) => boolean
  • any: <T = unknown>(arr: T[], fn: AnyFunction) => boolean
  • getCache: (name: string) => any
  • setCache: <T = unknown>(name: string, value: T, seconds?: string | number) => void
  • delCache: (name: string) => void
  • getSession: (name: string) => any
  • setSession: <T = unknown>(name: string, value: T, seconds?: string | number) => void
  • delSession: (name: string) => void
  • getCookie: (name: string) => any
  • getCookies: () => Record<string, string>
  • setCookie: <T extends string | number | boolean>(
        name: string,
        value: T,
        seconds: string | number,
        path?: string,
        samesite?: boolean,
    ) => void
  • delCookie: (name: string) => void
  • camel2Dash: (string: string) => string
  • cleanData: (data: any, map: any[] | AnyObject, nullFix?: any) => any
  • clearAttr: (string: string) => string
  • clearHtml: (string: string) => string
  • escape: (string: string) => string
  • unescape: (string: string) => string
  • client: (
        name?: string,
        userAgent?: string,
    ) =>
        | boolean
        | {
            IE: boolean;
            GECKO: boolean;
            WEBKIT: boolean;
            OPERA: boolean;
            TRIDENT: boolean;
            MOBILE: boolean;
            IOS: boolean;
            ANDROID: boolean;
            IPHONE: boolean;
            IPAD: boolean;
            QQBROWSER: boolean;
            WEIXIN: boolean;
            QQ: null
            | RegExpMatchArray;
        }
  • complement: <T = unknown>(...args: T[][]) => T[]
  • contains: (arr: any[], item: any) => boolean
  • CSVToArray: (data: string, delimiter?: string, omitFirstRow?: boolean) => string[][]
  • arrayToCSV: <T extends unknown[][]>(arr: T, delimiter?: string) => string
  • CSVToJSON: (data: string, delimiter?: string) => any[]
  • JSONToCSV: (arr: any[], columns: any[], delimiter?: string) => string
  • cutCHSString: (str: string, len?: number, hasDot?: boolean) => string
  • dash2Camel: (string: string) => string
  • decodeBase64: (input: string) => string
  • decodeUtf8: (utftext: string) => string
  • delay: () => {
        map: any;
        register(id: string, fn: AnyFunction, time: number, boo: boolean): void;
        destroy(id: string): void;
    }
  • encodeBase64: (input: string) => string
  • encodeUtf8: (string: string) => string
  • extend: {
        (
            target: ExtendObjectData,
            ...args: ArrayOneMore<ExtendObjectData>,
        ): ExtendObjectData;
        (
            target: boolean,
            ...args: ArrayOneMore<ExtendObjectData>,
        ): ExtendObjectData;
        (
            target: ExtendArrayData,
            ...args: ArrayOneMore<ExtendArrayData>,
        ): ExtendArrayData;
        (target: boolean, ...args: ArrayOneMore<ExtendArrayData>): ExtendArrayData;
    }
  • clone: <T = any>(parent: T) => T
  • fillIPv6: (ip: string) => string
  • fixNumber: (number: string | number, n?: number) => number
  • mapTemplate: (
        tmp: string,
        data: Record<string, unknown> | (value: string) => unknown,
    ) => string
  • getAppVersion: (
        appName: string,
        withApp?: boolean,
        userAgent?: string,
    ) => string | boolean | null
  • appVersion: {
        (appName: string): string | null;
        (appName: string, ua: string): string | null;
        (appName: string, ua: boolean): string | null;
        (appName: string, ua: string, ignoreCase: boolean): string | null;
    }
  • getCHSLength: (str: string) => number
  • getDirParam: (url: string) => DirParamType
  • compareVersion: (input: string, compare: string) => -1 | 0 | 1
  • getNumber: (string: string) => string
  • getOsVersion: (
        osName: string,
        withOS?: boolean,
        userAgent?: string,
    ) => string | boolean | null
  • osVersion: (ua?: string) => OsVersion | null
  • browserVersion: (ua?: string) => BrowserVersion | null
  • getQueryParam: {
        (key: string): string | undefined;
        (key: string, url: string): string | undefined;
    }
  • getQueryParams: {
        (url: string): Record<string, string>;
        (url: boolean): Record<string, unknown>;
        (url: string, covert: boolean): Record<string, unknown>;
    }
  • getProperty: {
        <T extends Record<string, any>>(
            target: T,
            prop: string | () => string,
            defaultValue?: any,
        ): any;
        <T extends any[]>(
            target: T,
            prop: string | () => string,
            defaultValue?: any,
        ): any;
    }
  • randomColor: (
        min?: number | [number, number, number],
        max?: number | [number, number, number],
    ) => string
  • randomNumber: (min?: number, max?: number) => number
  • randomNumbers: (n?: number, sum?: number, noZero?: boolean) => number[]
  • randomString: {
        (len?: number, options?: boolean | RandomStringOptions): string;
        (
            len?: boolean | RandomStringOptions,
            options?: boolean | RandomStringOptions,
        ): string;
    }
  • shuffle: {
        (value: string, size?: number): string;
        <T extends unknown[] = unknown[]>(value: T, size?: number): T;
    }
  • fingerprint: (domain?: string) => null | string
  • getScrollPosition: () => undefined | "bottom" | "top"
  • getType: <T = any>(
        target: T,
    ) =>
        | "string"
        | "number"
        | "bigint"
        | "boolean"
        | "symbol"
        | "undefined"
        | "object"
        | "function"
        | "window"
        | "error"
        | "promise"
        | "math"
        | "document"
        | "navigator"
        | "global"
        | "array"
        | "null"
        | "date"
        | "regexp"
  • getFileType: (
        url: string,
    ) => {
        suffix: string;
        type:
            | "audio"
            | "video"
            | "image"
            | "other"
            | "word"
            | "txt"
            | "excel"
            | "pdf"
            | "ppt"
            | "zip";
    }
  • sorter: (
        locales?: string | string[],
        options?: CollatorOptions,
    ) => <T = string, P = string>(a: T, b: P) => number
  • sortPinyin: <T = string, P = string>(a: T, b: P, options?: CollatorOptions) => number
  • parseUrlParam: (url: string, covert?: boolean) => Record<string, unknown>
  • spliceUrlParam: <T extends Record<string, unknown>>(
        params: T,
        covert?: boolean | SpliceUrlParamOptions,
    ) => string
  • safeParse: (data: string, covert?: boolean) => any
  • safeStringify: (data: any, covert?: boolean) => string
  • getUrlParam: {
        (key: string): string | undefined;
        (key: string, url: string): string | undefined;
    }
  • getUrlParams: {
        (url: string): Record<string, string>;
        (url: boolean): Record<string, unknown>;
        (url: string, covert: boolean): Record<string, unknown>;
    }
  • intersect: <T = unknown>(...args: T[][]) => T[]
  • isDigitals: (str: string) => boolean
  • isExitsFunction: (name: string) => boolean
  • isExitsVariable: (name: string) => boolean
  • isEqual: <T, P>(a: T, b: P) => boolean
  • isWindow: (target: any) => target is Window
  • isObject: (target: any) => target is Object
  • isDate: (target: any) => target is Date
  • isRegExp: (target: any) => target is RegExp
  • isArray: (target: any) => target is any[]
  • isIterable: <T = any>(target: T | Iterable<T>) => target is Iterable<T>
  • isPlainObject: (target: unknown) => target is PlainObject
  • isDarkMode: () => boolean
  • inBrowser: boolean
  • inNodeJs: boolean
  • isNumberBrowser: (userAgent?: string) => boolean
  • minus: <T = unknown>(...args: T[][]) => T[]
  • nextIndex: (min?: number, max?: number) => number
  • nextVersion: (
        version: string,
        type?:
            | "major"
            | "minor"
            | "patch"
            | "premajor"
            | "preminor"
            | "prepatch"
            | "prerelease",
        preid?: string,
    ) => string
  • punctualTimer: {
        <TArgs extends any[]>(
            handler: (args: void) => void,
            delay: number,
            args?: TArgs,
        ): PunctualTimerReturns;
        <TArgs extends any[]>(
            handler: (...args: TArgs) => void,
            delay: number,
            args?: TArgs,
        ): PunctualTimerReturns;
    }
  • promiseFactory: <T extends object>(
        original: T,
        resolver: () => Promise<any>,
    ) => T & PromiseLike<T>
  • waiting: (milliseconds: number, throwOnTimeout?: boolean) => Promise<void>
  • awaitTo: {
        <T, E = Error>(promise: Promise<T>): Promise<[E, undefined] | [null, T]>;
        <P extends [] | readonly unknown[], E = Error>(
            promise: PromiseAll<P>,
        ): Promise<[E, undefined] | [null, P]>;
        <T, P extends [] | readonly unknown[], E = Error>(
            promise: Promise<T>,
            ...promises: PromiseAll<P>,
        ): Promise<[E, undefined] | [null, [T, ...P]]>;
    }
  • arrayBufferToBase64: (input: ArrayBuffer, mime?: string) => string
  • arrayBufferToBlob: (input: ArrayBuffer, mime?: string) => Blob
  • base64ToArrayBuffer: (input: string) => Uint8Array<ArrayBuffer> | Buffer<ArrayBuffer>
  • base64ToBlob: (input: string) => Blob
  • base64ToFile: (input: string, fileName: string) => File
  • blobToArrayBuffer: (input: Blob) => Promise<ArrayBuffer | null>
  • blobToBase64: (input: Blob) => Promise<string | null>
  • blobToUrl: (input: Blob) => string
  • fileToBase64: (input: File) => Promise<string | null>
  • svgToBlob: (input: string) => Blob
  • urlToBlob: (input: string) => Promise<Blob | null>
  • openUrl: (url: string) => void
  • copy: (value: any) => undefined | boolean
  • pattern: {
        any: RegExp;
        number: RegExp;
        string: RegExp;
        postcode: RegExp;
        url: RegExp;
        username: RegExp;
        float: RegExp;
        email: RegExp;
        mobile: RegExp;
        chinese: RegExp;
        tel: RegExp;
        qq: RegExp;
        pass: RegExp;
        json: RegExp;
        arrjson: RegExp;
        array: RegExp;
        isjson: RegExp;
        textarea: RegExp;
        mac: RegExp;
        ip4: RegExp;
        ip4_pri: RegExp;
    }
  • removeEvent: (element: AnyObject, type: string, handler: AnyFunction) => void
  • searchObject: (
        tree: object | any[],
        expression: any,
        keySet: SearchKeySet,
        number?: number,
    ) => any[]
  • setProperty: (target: any, prop: string | () => string, value: any) => any
  • stopBubble: (e: Event) => boolean
  • stopDefault: (e: Event) => boolean
  • toThousands: (num: string | number) => string
  • trim: (string: string) => string
  • union: <T = unknown>(...args: T[][]) => T[]
  • unique: <T = unknown>(arr: T[]) => T[]
  • upperFirst: (string: string) => string
  • uuid: () => string
  • windowSize: () => WindowSizeObj
  • loadSource: (url: string, option: string | SourceOptions) => Promise<boolean | string>
  • mountCss: (src: string, option?: CssOptions) => Promise<boolean>
  • mountImg: (src: string, option?: ImgOptions) => Promise<boolean | string>
  • mountJs: (src: string, option?: JsOptions) => Promise<boolean>
  • mountStyle: (css: string, option?: StyleOptions) => Promise<boolean>
  • preloader: {
        (images: string): HTMLImageElement;
        (images: string[]): Record<string, HTMLImageElement>;
    }
diff --git a/variables/inBrowser.html b/variables/inBrowser.html new file mode 100644 index 0000000..08655b3 --- /dev/null +++ b/variables/inBrowser.html @@ -0,0 +1,4 @@ +inBrowser | JS-COOL DOCS - v5.23.1

Variable inBrowserConst

inBrowser: boolean = ...

Determine if it is running on the browser side

+

4.5.0

+

boolean

+
diff --git a/variables/inNodeJs.html b/variables/inNodeJs.html new file mode 100644 index 0000000..eda6f2b --- /dev/null +++ b/variables/inNodeJs.html @@ -0,0 +1,4 @@ +inNodeJs | JS-COOL DOCS - v5.23.1

Variable inNodeJsConst

inNodeJs: boolean = ...

Determine if it is running on node.js

+

5.13.0

+

boolean

+
diff --git a/variables/pattern.html b/variables/pattern.html new file mode 100644 index 0000000..267bf91 --- /dev/null +++ b/variables/pattern.html @@ -0,0 +1,7 @@ +pattern | JS-COOL DOCS - v5.23.1

Variable patternConst

pattern: {
    any: RegExp;
    number: RegExp;
    string: RegExp;
    postcode: RegExp;
    url: RegExp;
    username: RegExp;
    float: RegExp;
    email: RegExp;
    mobile: RegExp;
    chinese: RegExp;
    tel: RegExp;
    qq: RegExp;
    pass: RegExp;
    json: RegExp;
    arrjson: RegExp;
    array: RegExp;
    isjson: RegExp;
    textarea: RegExp;
    mac: RegExp;
    ip4: RegExp;
    ip4_pri: RegExp;
} = ...

Collection of common regular expressions

+

Type declaration

  • any: RegExp
  • number: RegExp
  • string: RegExp
  • postcode: RegExp
  • url: RegExp
  • username: RegExp
  • float: RegExp
  • email: RegExp
  • mobile: RegExp
  • chinese: RegExp
  • tel: RegExp
  • qq: RegExp
  • pass: RegExp
  • json: RegExp
  • arrjson: RegExp
  • array: RegExp
  • isjson: RegExp
  • textarea: RegExp
  • mac: RegExp
  • ip4: RegExp
  • ip4_pri: RegExp

It will be refactored and renamed patterns in the next major release.

+

1.0.1

+
    +
  • object
  • +
+
diff --git a/variables/version.html b/variables/version.html new file mode 100644 index 0000000..907ed12 --- /dev/null +++ b/variables/version.html @@ -0,0 +1 @@ +version | JS-COOL DOCS - v5.23.1

Variable versionConst

version: string = ...