From a02465ed305ee438faf8e7f3f115cc47443f310d Mon Sep 17 00:00:00 2001 From: saqqdy Date: Mon, 12 Aug 2024 16:56:25 +0800 Subject: [PATCH] deploy --- .nojekyll | 1 + assets/highlight.css | 148 + assets/icons.js | 15 + assets/icons.svg | 1 + assets/main.js | 59 + assets/navigation.js | 1 + assets/search.js | 1 + assets/style.css | 1412 + functions/CSVToArray.html | 9 + functions/CSVToJSON.html | 10 + functions/JSONToCSV.html | 10 + functions/RGBToHex.html | 11 + functions/addEvent.html | 7 + functions/all.html | 10 + functions/any.html | 10 + functions/appVersion.html | 7 + functions/arrayBufferToBase64.html | 10 + functions/arrayBufferToBlob.html | 8 + functions/arrayToCSV.html | 7 + functions/awaitTo.html | 10 + functions/base64ToArrayBuffer.html | 7 + functions/base64ToBlob.html | 7 + functions/base64ToFile.html | 8 + functions/blobToArrayBuffer.html | 7 + functions/blobToBase64.html | 7 + functions/blobToUrl.html | 7 + functions/browserVersion-1.html | 7 + functions/camel2Dash.html | 7 + functions/cleanData.html | 8 + functions/clearAttr.html | 5 + functions/clearHtml.html | 5 + functions/client.html | 9 + functions/clone.html | 9 + functions/compareVersion.html | 8 + functions/complement.html | 7 + functions/contains.html | 8 + functions/copy.html | 7 + functions/cutCHSString.html | 7 + functions/dash2Camel.html | 7 + functions/decodeBase64.html | 5 + functions/decodeUtf8.html | 4 + functions/delCache.html | 4 + functions/delCookie.html | 4 + functions/delSession.html | 4 + functions/delay.html | 4 + functions/download.html | 11 + functions/encodeBase64.html | 7 + functions/encodeUtf8.html | 6 + functions/escape.html | 9 + functions/extend.html | 5 + functions/fileToBase64.html | 7 + functions/fillIPv6.html | 8 + functions/fingerprint.html | 7 + functions/fixNumber.html | 10 + functions/getAppVersion.html | 8 + functions/getCHSLength.html | 9 + functions/getCache.html | 9 + functions/getCookie.html | 9 + functions/getCookies.html | 8 + functions/getDirParam.html | 8 + functions/getFileType.html | 7 + functions/getNumber.html | 9 + functions/getOsVersion.html | 12 + functions/getProperty.html | 9 + functions/getQueryParam.html | 9 + functions/getQueryParams.html | 9 + functions/getScrollPosition.html | 7 + functions/getSession.html | 9 + functions/getType.html | 5 + functions/getUrlParam.html | 9 + functions/getUrlParams.html | 9 + functions/intersect.html | 9 + functions/isArray.html | 9 + functions/isDarkMode.html | 8 + functions/isDate.html | 9 + functions/isDigitals.html | 8 + functions/isEqual.html | 10 + functions/isExitsFunction.html | 9 + functions/isExitsVariable.html | 9 + functions/isIterable.html | 9 + functions/isObject.html | 9 + functions/isPlainObject.html | 9 + functions/isRegExp.html | 9 + functions/isWindow.html | 9 + functions/loadSource.html | 7 + functions/mapTemplate.html | 10 + functions/minus.html | 9 + functions/mountCss.html | 7 + functions/mountImg.html | 7 + functions/mountJs.html | 7 + functions/mountStyle.html | 6 + functions/nextIndex.html | 10 + functions/nextVersion.html | 11 + functions/openUrl.html | 4 + functions/osVersion-1.html | 7 + functions/parseUrlParam.html | 8 + functions/preloader.html | 4 + functions/promiseFactory.html | 10 + functions/punctualTimer.html | 8 + functions/randomColor.html | 10 + functions/randomNumber.html | 10 + functions/randomNumbers.html | 10 + functions/randomString.html | 10 + functions/removeEvent.html | 6 + functions/safeParse.html | 9 + functions/safeStringify.html | 9 + functions/searchObject.html | 10 + functions/setCache.html | 8 + functions/setCookie.html | 10 + functions/setProperty.html | 10 + functions/setSession.html | 8 + functions/shuffle.html | 10 + functions/sortPinyin.html | 11 + functions/sorter.html | 10 + functions/spliceUrlParam.html | 10 + functions/stopBubble.html | 7 + functions/stopDefault.html | 7 + functions/svgToBlob.html | 7 + functions/toThousands.html | 9 + functions/trim.html | 8 + functions/unescape.html | 9 + functions/union.html | 9 + functions/unique.html | 9 + functions/upperFirst.html | 9 + functions/urlToBlob.html | 7 + functions/uuid.html | 8 + functions/waiting.html | 5 + functions/windowSize.html | 8 + index.html | 5539 +++ interfaces/AnyFunction.html | 1 + interfaces/ArrayOne.html | 2 + interfaces/BrowserVersion.html | 3 + interfaces/DirParamType.html | 3 + interfaces/JSONArray.html | 220 + interfaces/OsVersion.html | 3 + interfaces/PlainObject.html | 1 + interfaces/RandomStringOptions.html | 7 + interfaces/SearchKeySet.html | 3 + interfaces/SpliceUrlParamOptions.html | 4 + interfaces/Version.html | 6 + interfaces/WindowSizeObj.html | 3 + modules.html | 152 + out.json | 60163 ++++++++++++++++++++++++ types/AnyObject.html | 1 + types/ArrayOneMore.html | 1 + types/ArrayTwoMore.html | 1 + types/ExtendArrayData.html | 1 + types/ExtendData.html | 1 + types/ExtendObjectData.html | 1 + types/JSONValue.html | 1 + types/MaybePromiseOrGetter.html | 1 + types/OmitPartial.html | 1 + types/OmitRequired.html | 1 + types/PickPartial.html | 1 + types/PickRequired.html | 1 + types/Primitive.html | 1 + types/RandomStringCharType.html | 1 + variables/default.html | 845 + variables/inBrowser.html | 4 + variables/inNodeJs.html | 4 + variables/pattern.html | 7 + variables/version-1.html | 1 + 162 files changed, 69593 insertions(+) create mode 100644 .nojekyll create mode 100644 assets/highlight.css create mode 100644 assets/icons.js create mode 100644 assets/icons.svg create mode 100644 assets/main.js create mode 100644 assets/navigation.js create mode 100644 assets/search.js create mode 100644 assets/style.css create mode 100644 functions/CSVToArray.html create mode 100644 functions/CSVToJSON.html create mode 100644 functions/JSONToCSV.html create mode 100644 functions/RGBToHex.html create mode 100644 functions/addEvent.html create mode 100644 functions/all.html create mode 100644 functions/any.html create mode 100644 functions/appVersion.html create mode 100644 functions/arrayBufferToBase64.html create mode 100644 functions/arrayBufferToBlob.html create mode 100644 functions/arrayToCSV.html create mode 100644 functions/awaitTo.html create mode 100644 functions/base64ToArrayBuffer.html create mode 100644 functions/base64ToBlob.html create mode 100644 functions/base64ToFile.html create mode 100644 functions/blobToArrayBuffer.html create mode 100644 functions/blobToBase64.html create mode 100644 functions/blobToUrl.html create mode 100644 functions/browserVersion-1.html create mode 100644 functions/camel2Dash.html create mode 100644 functions/cleanData.html create mode 100644 functions/clearAttr.html create mode 100644 functions/clearHtml.html create mode 100644 functions/client.html create mode 100644 functions/clone.html create mode 100644 functions/compareVersion.html create mode 100644 functions/complement.html create mode 100644 functions/contains.html create mode 100644 functions/copy.html create mode 100644 functions/cutCHSString.html create mode 100644 functions/dash2Camel.html create mode 100644 functions/decodeBase64.html create mode 100644 functions/decodeUtf8.html create mode 100644 functions/delCache.html create mode 100644 functions/delCookie.html create mode 100644 functions/delSession.html create mode 100644 functions/delay.html create mode 100644 functions/download.html create mode 100644 functions/encodeBase64.html create mode 100644 functions/encodeUtf8.html create mode 100644 functions/escape.html create mode 100644 functions/extend.html create mode 100644 functions/fileToBase64.html create mode 100644 functions/fillIPv6.html create mode 100644 functions/fingerprint.html create mode 100644 functions/fixNumber.html create mode 100644 functions/getAppVersion.html create mode 100644 functions/getCHSLength.html create mode 100644 functions/getCache.html create mode 100644 functions/getCookie.html create mode 100644 functions/getCookies.html create mode 100644 functions/getDirParam.html create mode 100644 functions/getFileType.html create mode 100644 functions/getNumber.html create mode 100644 functions/getOsVersion.html create mode 100644 functions/getProperty.html create mode 100644 functions/getQueryParam.html create mode 100644 functions/getQueryParams.html create mode 100644 functions/getScrollPosition.html create mode 100644 functions/getSession.html create mode 100644 functions/getType.html create mode 100644 functions/getUrlParam.html create mode 100644 functions/getUrlParams.html create mode 100644 functions/intersect.html create mode 100644 functions/isArray.html create mode 100644 functions/isDarkMode.html create mode 100644 functions/isDate.html create mode 100644 functions/isDigitals.html create mode 100644 functions/isEqual.html create mode 100644 functions/isExitsFunction.html create mode 100644 functions/isExitsVariable.html create mode 100644 functions/isIterable.html create mode 100644 functions/isObject.html create mode 100644 functions/isPlainObject.html create mode 100644 functions/isRegExp.html create mode 100644 functions/isWindow.html create mode 100644 functions/loadSource.html create mode 100644 functions/mapTemplate.html create mode 100644 functions/minus.html create mode 100644 functions/mountCss.html create mode 100644 functions/mountImg.html create mode 100644 functions/mountJs.html create mode 100644 functions/mountStyle.html create mode 100644 functions/nextIndex.html create mode 100644 functions/nextVersion.html create mode 100644 functions/openUrl.html create mode 100644 functions/osVersion-1.html create mode 100644 functions/parseUrlParam.html create mode 100644 functions/preloader.html create mode 100644 functions/promiseFactory.html create mode 100644 functions/punctualTimer.html create mode 100644 functions/randomColor.html create mode 100644 functions/randomNumber.html create mode 100644 functions/randomNumbers.html create mode 100644 functions/randomString.html create mode 100644 functions/removeEvent.html create mode 100644 functions/safeParse.html create mode 100644 functions/safeStringify.html create mode 100644 functions/searchObject.html create mode 100644 functions/setCache.html create mode 100644 functions/setCookie.html create mode 100644 functions/setProperty.html create mode 100644 functions/setSession.html create mode 100644 functions/shuffle.html create mode 100644 functions/sortPinyin.html create mode 100644 functions/sorter.html create mode 100644 functions/spliceUrlParam.html create mode 100644 functions/stopBubble.html create mode 100644 functions/stopDefault.html create mode 100644 functions/svgToBlob.html create mode 100644 functions/toThousands.html create mode 100644 functions/trim.html create mode 100644 functions/unescape.html create mode 100644 functions/union.html create mode 100644 functions/unique.html create mode 100644 functions/upperFirst.html create mode 100644 functions/urlToBlob.html create mode 100644 functions/uuid.html create mode 100644 functions/waiting.html create mode 100644 functions/windowSize.html create mode 100644 index.html create mode 100644 interfaces/AnyFunction.html create mode 100644 interfaces/ArrayOne.html create mode 100644 interfaces/BrowserVersion.html create mode 100644 interfaces/DirParamType.html create mode 100644 interfaces/JSONArray.html create mode 100644 interfaces/OsVersion.html create mode 100644 interfaces/PlainObject.html create mode 100644 interfaces/RandomStringOptions.html create mode 100644 interfaces/SearchKeySet.html create mode 100644 interfaces/SpliceUrlParamOptions.html create mode 100644 interfaces/Version.html create mode 100644 interfaces/WindowSizeObj.html create mode 100644 modules.html create mode 100644 out.json create mode 100644 types/AnyObject.html create mode 100644 types/ArrayOneMore.html create mode 100644 types/ArrayTwoMore.html create mode 100644 types/ExtendArrayData.html create mode 100644 types/ExtendData.html create mode 100644 types/ExtendObjectData.html create mode 100644 types/JSONValue.html create mode 100644 types/MaybePromiseOrGetter.html create mode 100644 types/OmitPartial.html create mode 100644 types/OmitRequired.html create mode 100644 types/PickPartial.html create mode 100644 types/PickRequired.html create mode 100644 types/Primitive.html create mode 100644 types/RandomStringCharType.html create mode 100644 variables/default.html create mode 100644 variables/inBrowser.html create mode 100644 variables/inNodeJs.html create mode 100644 variables/pattern.html create mode 100644 variables/version-1.html diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000..e2ac6616 --- /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/highlight.css b/assets/highlight.css new file mode 100644 index 00000000..310b83cc --- /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 00000000..b79c9e89 --- /dev/null +++ b/assets/icons.js @@ -0,0 +1,15 @@ +(function(svg) { + svg.innerHTML = ``; + svg.style.display = 'none'; + if (location.protocol === 'file:') { + if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', updateUseElements); + else updateUseElements() + function updateUseElements() { + document.querySelectorAll('use').forEach(el => { + if (el.getAttribute('href').includes('#icon-')) { + el.setAttribute('href', el.getAttribute('href').replace(/.*#/, '#')); + } + }); + } + } +})(document.body.appendChild(document.createElementNS('http://www.w3.org/2000/svg', 'svg'))) \ No newline at end of file diff --git a/assets/icons.svg b/assets/icons.svg new file mode 100644 index 00000000..7dead611 --- /dev/null +++ b/assets/icons.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/main.js b/assets/main.js new file mode 100644 index 00000000..d6f13886 --- /dev/null +++ b/assets/main.js @@ -0,0 +1,59 @@ +"use strict"; +"use strict";(()=>{var Ce=Object.create;var ne=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Oe=Object.getOwnPropertyNames;var _e=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var Me=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Fe=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Oe(e))!Re.call(t,i)&&i!==n&&ne(t,i,{get:()=>e[i],enumerable:!(r=Pe(e,i))||r.enumerable});return t};var De=(t,e,n)=>(n=t!=null?Ce(_e(t)):{},Fe(e||!t||!t.__esModule?ne(n,"default",{value:t,enumerable:!0}):n,t));var ae=Me((se,oe)=>{(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,u],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[u+1]*i[d+1],u+=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 u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),y=s.str.charAt(1),p;y in s.node.edges?p=s.node.edges[y]:(p=new t.TokenSet,s.node.edges[y]=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 se=="object"?oe.exports=n():e.lunr=n()}(this,function(){return t})})()});var re=[];function G(t,e){re.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;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){re.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&&(console.log("Show page"),document.body.style.removeProperty("display"),this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}scrollToHash(){if(location.hash){console.log("Scorlling");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&&!e.checkVisibility()){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").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&&n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let r=document.createElement("p");r.classList.add("warning"),r.textContent="This member is normally hidden due to your filter settings.",n.prepend(r)}}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="Copied!",e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent="Copy"},100)},1e3)})})}};var ie=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var de=De(ae());async function le(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=de.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function he(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.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",()=>{le(e,t)}),le(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");let s=!1;i.addEventListener("mousedown",()=>s=!0),i.addEventListener("mouseup",()=>{s=!1,t.classList.remove("has-focus")}),r.addEventListener("focus",()=>t.classList.add("has-focus")),r.addEventListener("blur",()=>{s||(s=!1,t.classList.remove("has-focus"))}),Ae(t,i,r,e)}function Ae(t,e,n,r){n.addEventListener("input",ie(()=>{Ve(t,e,n,r)},200));let i=!1;n.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ne(e,n):s.key=="Escape"?n.blur():s.key=="ArrowUp"?ue(e,-1):s.key==="ArrowDown"?ue(e,1):i=!1}),n.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!n.matches(":focus")&&s.key==="/"&&(n.focus(),s.preventDefault())})}function Ve(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=ce(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` + ${ce(l.parent,i)}.${d}`);let y=document.createElement("li");y.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=u+d,y.append(p),e.appendChild(y)}}function ue(t,e){let n=t.querySelector(".current");if(!n)n=t.querySelector(e==1?"li:first-child":"li:last-child"),n&&n.classList.add("current");else{let r=n;if(e===1)do r=r.nextElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);else do r=r.previousElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);r&&(n.classList.remove("current"),r.classList.add("current"))}}function Ne(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),e.blur()}}function ce(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(K(t.substring(s,o)),`${K(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(K(t.substring(s))),i.join("")}var He={"&":"&","<":"<",">":">","'":"'",'"':"""};function K(t){return t.replace(/[&<>"'"]/g,e=>He[e])}var I=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",fe="mousemove",H="mouseup",J={x:0,y:0},pe=!1,ee=!1,Be=!1,D=!1,me=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(me?"is-mobile":"not-mobile");me&&"ontouchstart"in document.documentElement&&(Be=!0,F="touchstart",fe="touchmove",H="touchend");document.addEventListener(F,t=>{ee=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(fe,t=>{if(ee&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(H,()=>{ee=!1});document.addEventListener("click",t=>{pe&&(t.preventDefault(),t.stopImmediatePropagation(),pe=!1)});var X=class extends I{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(H,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(H,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 te;try{te=localStorage}catch{te={getItem(){return null},setItem(){}}}var Q=te;var ye=document.head.appendChild(document.createElement("style"));ye.dataset.for="filters";var Y=class extends I{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()),ye.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } +`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.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 Z=class extends I{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function ge(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,ve(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),ve(t.value)})}function ve(t){document.documentElement.dataset.theme=t}var Le;function be(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",xe),xe())}async function xe(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();Le=t.dataset.base+"/",t.innerHTML="";for(let s of i)we(s,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function we(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-index-accordion`:"tsd-index-accordion",s.dataset.key=i.join("$");let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.innerHTML='',Ee(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 u of t.children)we(u,l,i)}else Ee(t,r,t.class)}function Ee(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=Le+t.path,n&&(r.className=n),location.pathname===r.pathname&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else e.appendChild(document.createElement("span")).textContent=t.text}G(X,"a[data-toggle]");G(Z,".tsd-index-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Se=document.getElementById("tsd-theme");Se&&ge(Se);var je=new U;Object.defineProperty(window,"app",{value:je});he();be();})(); +/*! 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 00000000..9346552f --- /dev/null +++ b/assets/navigation.js @@ -0,0 +1 @@ +window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAE52ay3bbNhBA/0Vrp27cxG29i2U7dtpEqqW4i54uIHIkIQYBBgBlqT399x7wCVKDAa2t78w1iPdDf/07sbC3k6vJB3m4K2RiuZKTs0nO7HZyNeHSgl6zBMy5x3/Y2kxMzibPXKaTq4v3l/+ddRqt2WEmAXfUkBJca/ViQD+BNqGi9EMo2Q3Xc6ZZtjzkeIn8AEr0aTH7UpYetbSUUswM9U0tpRRzwbicrb5BYlGJxynNI5OpyhZWc7mZ5a5FDapD4ijtAphOtr/BYQF48fwAUpQLnsBXLcqmoUqIRlJqqglGNMCfXKbqZcH/gdnqGyrpRZADRR6GLWkPeTXQ0Cb88def376/QIbaZ6XhSOKxUZ7liwp6ahbz3O4tyLTMuGGWDVUDPM4WFo13VLUZNnU85nPj/ImJ4qiaWhAzfGaHFcy1yriBmf4I1oIeyrCYmHeWcTtn2nImhjoPjbE8wveCa0gxTcNinjlPngOl8dAYS6g0Pot6NM+45bujVmtBzOBPhNMt0/3lpJJhMTFvCmtWCG8G2DHN2UqAOa9R3/CTn8xlvQ5i6S0kBV9UCp8Mnl8xIj1nrmNKLLtGw+SzSSKYMeWH5xoSZiGdeMbdcHLujDV685Yo0HTxtFSDRXpdb1nMeUf7ist3Q4UbzEGDg4TA4aWaLp4wQQsJwePH66W6hz2W3zAinaXp7Q6kxdIbRqULgWYKQSVJtMKZpGqa5fnRWuzltpRSuMa8LtZr0Et1zQxcvkNdx2GjpUKt4kqhVjFhsEt0lFK8MG6XCs2v0DC5G2nWpG+4eQN7NyCZ8IfbqqyLelBUX4P9CySMKGsTHao6n4/Q3HEBlMZxSiPUKv6Bw6CoMNzZfB7VfNXoaGshJQickjxLL2I4cfZkCctAXNwws8VEHaUUApjsb7E8QwMjAv3BWrSFWhgT3FcYFzhICnhg4qxIeIzhq1kilET7bgmogqgsZxqItu1HRFQCstB3tZRUSMu4f/7yBRUj03N0dXB/p9IKO71fVLspNN3jhCZlZnsxdR0Yk3SUUkCiUgiPeJ9HNV/t+pewxFFSIaYs2aJ9qmGRdKWeeTC/hLRgASbUJztKK/DdWQmoRPUihWIpmluzkxZBkHTz+pwoXxUWat6OUgqTsBxtnIpQqeU5Fk0tCZG65gKoBc3ntEY8zHeXAUXJyHS5AZ1rjk9UHiYl+y9FtsIX+RYSgg3YD+S2tBfw2vVgA27K+h3kxqLrrM/pQgZngYZF0oOzQAvHCNAVoaO0orl3DTgafEIdux1h/3zeMzeYLl64H7WQFiCXvT1H4Lp31BfOtcpBW3Qe9TBdwD8K0AeqCbqAsaJQh/AiaNUi0UqIuTLchmuuH3RC9RFrWEfpghL9K963mtvqgKDB4yShOm85oSlvrU3vBrpztJASmOBtS43I5Bumnz+rFK3JjkYUNphuI6l8wy0TaAV29LX9i5vb74V/6+lLS0QW6nbPrTl+hutJ/JC47Km+QiNkTQgpe7Cgw56Gkorhc4cvwF48Buno45fvCL5+DUSPsLnd57ijYmR69cKDp1eMSHf71IUqdIJWZEdP2stmLF9ClovAoPAwUcKMywIdFCWgElUh7dTguTU77bNc8kOGngMbdrr4U7jAw+vv12gX9oAPlo6eJJewtw8yxS+IW0g0k4sh9iYeJiQqBxm4vaoRlUztjVpI3ljlTBugFtJeACXS4AYdvtdrISko3+nuWGKVRpfCfgSlcikFE0ueBcrjBxAiXT5FTZVQqMbDUUl4I+zzkRp0pPUCoqLwjZDPKQ1kagfBNxIPExLD1jB3PQxTtDAiqIrK12in6QVQovInFeFV0eekJnyoNPFDpaEOlWbEodLQpxoz6lRjyL29GbO3N9tivcbn7RpRyUrbOZcHjv//lkYU+HCrCJXa+ykMquhFUCqr8utiFdjtdTSiuBm+bvcdN9gLd1+y24QfklpICKxablVhmEzRqcfDlERztDrd3197PChk+JavYURRChno3CWgE78Xgf/qCJWa56DvuDZoQ3aUUmgRbscWUoKCo7eb7u9EmnsbDawWNaKS2x9yofktPVL8/T9BjiG4VCkAAA==" \ No newline at end of file diff --git a/assets/search.js b/assets/search.js new file mode 100644 index 00000000..1ec6b5c8 --- /dev/null +++ b/assets/search.js @@ -0,0 +1 @@ +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE8VdWZPjNpL+L9Wv5R7h0OU3nzue3Rn3unu8DwzHBEtiVdEtiWqS6mMc/u8bAAgwkcykwK4a9puqmEgk8sP5IQH8cVNXH5qbr7M/bt6Wp/3N10re3pzyY3Hz9c37om7K6nRze3OpD+bvvC7zu0PR/KX78pV4+dgeDze3N7tD3jRFc/P1zc2ft17VSgdVu0NZnNqg6f5y2rVldWr+4j6MqgEWnfO2LWrKou7LuD3LpVoFXf/6V/vpXFxR9SJIAY23N+e8NsXpDeozEQvZFzs/fUrL4KWTHM3kZWcLk9fpcrwr6sTsgvBTcmzaujw9JOYYhJ+S47lq2l21T0TtJRB/Sq4mq7QMneST8mqK2v5MzLAXf0qu94cqbxOz9LJPya845mWqT73sU/I7VnflIdWnQfgpOe4ey1PRpGbZSz8lz7ZI9amTfEpe794lZmUFn9Tm86ZJbe9O9Cm5/d6QAx6VWyf6lNzyup6QYS/9xDzz5FGpk31KfmUzoYhB+Gnt4GOb10We3BiC+MRcwQSnrcsjMb0x/06fIxV5/U3b1uQ0qfs2SdlfnSypzHxLVVY0uxxMlXpN7kOqmsuJVeQ/pap6KNp/xPOdXlf4luyr/Fgc5Pd580g5K3xMVbfPm0f5nUlGqOs/JnvtfC7qH8u6oabP/cdUdXV+2lfH76pDRfkOfJ2mkEUDfv4clc0Vnc00pa/jOSvW6T6PqpTLfg3xC0j089kqCqrLU1vU9/muaP5CiI1mEfVmh+L00D5OUfsiJKH7M8pqdhqT128+nYtJxXoBUz3ZhFP1XXW6v4C5VIoJMNWTTTBrl107Kf+Q5HMyl4vtWiwlWc2+63wbrDFjUmyIF0ltGc3j5f7+QHXL3ZdURffl6aGoz3VJLvXB1wnd/Hd/ff0/cQuIevrwObmzv5g0bDcAP6eqLJvvy4eyzQ9UX9V/TFf3w8eybX7sVJA6I4kJit9dcmpU6r5MtPDXblrFW+gl0hX/X3naVx9Ije5TuqpXh7w8/Xz3e7GjamP0fbzDR63xVV0ey7Z8j5tg+H/y8EFZCDqXzzXwb69//sev+eGCDQz/TzbQpPgmWi8A88LHCe0kr9/+HfI3UTvpPqarGwE3wW3Ispazqp1g0S/Fww8fz6Qi9yldVex3qGmi039qi5ptpv5jKgNbnr41hDFJNIZv6cr+Ue2Lv1HLe/8ptZgfbOfwuvw3Vcz+Y3LN/7+Q5Oe736naHwmkz+Y+lHt6MjfU98LL0lOI2EImu8eifHgkOxcivyA8LcN4vP7mfP4V7RtEA3b/PRXafExjPlndQ9H+3IyaGD6nqqxG9IVvVzZLYOUb2geAS7MunkJDQplV9WKUSO5tYjLBu0V8Pr1kelbA23euk+FdHgtM8Pu3tGZQklji6QgQ+sZhQCZOx4LK8RogbKZwXl0djTyPSiyQ2rTOed0U/6wPr/I6pwi26Hvygud8KHdjWmOB5PrzOko2QgiQgum1aVe9L2qyV+cVvwiJaIxp27n9m1O0C5dmQEj0DAZ8KNvH/70UjRX6e16/nWgLlf7zzILVKr8vXpn6SNUo/y25jub3hVuGlvfUNDD6PmHs+76suVoPviZXeZ8goiQABvB7egU/5/QkaaDtRSdJYxcZx82QqoZsScOsOslJWcW+/99LUX8a8X7/fQKgfSKKfogFJqgd6R3B189QyFgZPk/hhvLdI9XY/Kfktsaraiaq2hcHTpX/NKGAr4uGn6Z2HycUklfXTFa3Lw68uv7jFDSr6m3JwWm/TVbG1LXu45TqwdnWTLXN1AJOWfiWvDFnh9Rv86ZYaWp7DnyepvKf7f2GVWg+phd31EL4eZpKxsL+YzK6bXX+9nJHEyT9xynqvi/u88uBIqbA1+Tl737/w3s6eM5/Sh9YHy7l/pqiF50QPdAFc+hNtuJYvS84e8HXKZ3grq4Oh1dVUzJ0+EAmVfmp+Nj+dNoXHwml4dsUZfzqB3xNnluNrEMnL0CP+e9gw5fR9MJL0dBfWXQey1NKFp3UZ2VxztsdOTGMsvBSn5dFXYAmwmbRSX1WFnVxKHJ6PzPKpJdLzQYunE3Vu+SHN+WR3JePvievxuvqWDbFj/murWpqVRILpO8bfmTjB8K3VGXH/PymOJ4PNKEPviaPiB/b4kT1mu7DpK2ZH2wSS+B/n7d9hJLboEFfP0Oz2/ZgVfefP0M3q/WqviguqTpRuNj/T5hDkVsj9v/jSsZCwClFL9zPK2HgTsiZxXbA1LYQk9FLJ301s2FImlzoDehoHsqmJZsVlzFI8tTc90XT1tU4TnHmfYrPyDueNLyhge2+TJh9/FgeCl6Z//oclQ6rewH/caUCQlFoNBfQcrm/L6lZT4INL0PiSaZci9n8bJ+8/BzHjFafpqrpRuM+PAfWQNOL7vcVhDupzjbW7lfl6VNJrvDDxykhpKeo049DSE9T+v2myOvdI7thDz+n0+020X8Xn14XNBkOvk8g1x/Lw/4fzH7NQOULKM4wyNBMJtO3xaf0LHvhSRnCDctzcfonONUCtivdl+Q6Up2pDt78O1VFW715rC5NftpTbA34mrxgPlAFyw/JhYKntoCCU3KRLvQq2/w7VcV3r399U3EhIP3H5CIZ4TfVd69/pUoWPk6yzsT/cMaZb6nKjCxnWviWquyX//r2TfVXckXvPyVHzpg22DABRv5bcpU40byA/X/y0qY8XahGYv+f3mSP50NxZI5jho/p6k5tXp4os/ynCT56d6FGS/chfTV5OPz06v2KXEy6TxPmf6/q6lzULdUMwdcJVPKIwma6wnNdHKp8Ty/x/bfkIKq8bOmw2O7LpO7m28v9fVG/qVjyl5D6vAwO1d1V9YfqLlX5nTWl62GdAirKZCg1NQPGcPh5qsofS5LHhp+TVR6qu6tOwDLTlLNVA36eppKe1oRvEzqRYsQ++Dm57b9/YCEP35L7yvrAKgvfJpE835w+oem543jC/5Pn5d+cPg2C18GEFnxOV2lq2M8ncoLsv6VP8RdX1bxYsLPrYMqIKzuRv1c1jsGGn6bBYydpHypOZ/dpks5X5e7tL8W7S1kXe6QTfpqk8+dj2TI64afJdr7K67YEhxd6M7svk62kNYIvkzT+Pf90V7xy9PfP9X8VLaQQnGpKZDQPECq9R1uKfaT0PmU7Me3mC6jq2s0X3qDECMTRTF5eC0D0acY5pH314WQmPImZAvGJuX6+O0OmndKv1tvE7HtzmdIPVj7jhgDx+UoflmC+9KmFD9YyhR9sko/bAcSfUuEg03Alw8NhVkcbtqPzcXIFMzZyBSXvsSEzHrnH5j9S0JPfCvhKiOSSnthtmkFU2Xj2QHy+MofwNl/whU4tebCX2xiYVvzmSxS/QcWXYpNa/OZK8QfRe1c68158xhHEhxH6PpSfquIRxJvL130c0ne1IvYJZq3/PrrQtwCV3PaBzXwbmOaG5su4oRm4QcrkjqC56gYiwPNqxfwSbgCxpr5FJHsBmDwyHsThmtf7Zi8/74jgAkfDkLCaMiQ4i6+5gDqnOWoNf//Df9QJTe+F5JEB2DwyNE6pCc0XqQkNrglSJo8PzbWaMIxdvj5Uze+CPora9wdyygg56gHiqqBxY6IE8/kA3FrUOUEnOwGYzHlhEBlwxRogP6MPQoyCd0HyuNAbPOKB+K6u67Z4+Xk94G4N8x5IHhV6g8c8EF0wlmDLXwcc1RwesFedeQ8kjwi9wYwH0GVm44YE4fnK3t2o1hV8s0wteGcqU+rBJW7jRgDx+UoebpPzY6BOJpqCvWy1jy4yvlb7ys8imZ5U4e19yl3Bl8ljf2cqV+phzMAVM2CCGUvfhy94D6T3eL3JrBdQqMM1Y4L4nB7oYi58+dP7O28uU3oiImnclCjBfB4AwVF+GZDqAmAxR4QO46iu8JMwwYy0aB/SFdYByexob/JYVYjCvxIg6eRnrgg2EK1zgZpUD6y9jAOGIWvjpkD5+RzQB8/5ziDVAb29XFdI3aJ3pWeKk8zYJcIr/TpPrNJXQ9Bsbl08vPH1yhIVJphxZdxfPuv9kE6V9Saz7ABx1PfaUj1KMidHAM4de18kTxUis0e9EZ1STjGpSzC3J+yBae+H5CkDMJlnjJLnC152VqaonyWsJ8Afn/N6PgvCr3X4NQEMcJJq4CX2LNqT7btyVu2ajVOPsD3d3oQjbk80Gp98e7rN10/GTTeZuNFpUueNksxIbJyGnfcmeZIfmT3qjQmdd5Rgbk/AznuTPMkFJnNeiA8+XzHFC89Yenf+2pc8mePpTGUZHnhC+Rrb4mTn5HfMOWk/n0+fxVpDmRIPDkyMmwDE5yt3OLnRFX2bPHEN5rKlx5cPXLOkl5+z/P4aBO+A5IlBbzA/HRjcmDBuTZxiPi/A2xs8uZMe/wKt5ve6iQtsr+47R2lm3fEG1+l6hyySHRJbzlFeU/2Rfxln5ENPJI+F+VUvkC8RXI9HAEnmDYQIzyKEWpE8VkR28+4YXCR51SiQYlZnhEstvS/ElBYSrB7ZGyEuvr2+URElmnePBNzD66cS6Xvjsel8BZk0qkL5WStHPKoKkcyR9hbzLhhe5H3VHphkVkf0l3QHXyTPqCO7GXcML0kfN6n6Io6oBl7YJE+0qmsuYG4uH7dokGg+Z8RZhxCK5N7zLumycvpi3Kv1NUoza0sB1/T6SpK+uxZbnuKSCWGXcaIv5JQ+/FJO6Uyh7bxbBqfnrxoGUszqkHCSP3SnySdxoNWMK6hn/MZNilPM5wr4pGDnCrlIZuug1aOumDTbQEnmdkY855CL5HVKZHeCO1K7Dpzmyzik6T2S3HHElo+6ZNJuNUoyt0Pi3Wq5SJ6JRXZzkezovb8rEeVBesYo9u7dQV9+mbw3561lyb7hC4XXiDeYYk7Cr38t0VN+yV6ARo8c9qIvVr5++Aqnm/foV3zVc5hrTBldUQl4F72ZZNqbhAPzz+0OcJvhV0IljyTeWr7og4svr5oCUszqAnSp41dCTJmNE3dlPrs5/U/V/5xyaBffeTnw4Nj1ns9n8bW7P1MNv2L/f8jf4zeFPpPt6PLQK+OcF55xaIW3jX4l0w/ODm8efUYj+p+y/5ncmUXqEvBBl6RetzUkmBen7r7WMAtKHuKAzYwb6HfVxk3CaeZzRvzKm2/R22QiKracqxn0q3BXYMKJZqwh8SN1odkkr52Q7ZxbBq+aXTELyM/ojPC+mvdD+iSgt3jEBcO32K4bBNPM64r+ZbjgjvSrASLL+QnixJYSp5h1gjjoOdLbCLT6uismULUwyRdxRk/Tqimn5Hu7GXcMr80dNwnKz+eI/gJf74X0A9K9xZwLmu/Lh7LND6n1IUowoxNCtsEL6ScGgc2sG374WLbN4C7Ia0bhVHM6JMq790py54mtH3fNr50108wDqWZ3jc+7d00yKYWt513z7pKnnqTppWd1hcmzd0F6z9FZyxbdvbGebEcQn7PwLtNQ+vRjM8FetvjoAtprlgTxOYvfXYYbij+hw+zs5UeN9AjMIDzraAHjLtNvUuhsZYv9S/Hww8fUEylAfM6iu0x71CcMCJ29bPGnnKnupecsfHyaOv0aFW8tW/Sf2qKeNP6BBHM6wGfbd/kTKn+wmXXDq0Nenib2fXGaOZ0Bcu7bw4QhEFo+0hXWb/8O35i/3jeFBPN2iS7bvnVMGA6DzexS6lsXQZW8qOnlJzoB5fuPal/8LXn10os/Jdf4dZMrBwE62RmPHtg3VjzK6VeKOUuZIg8foB03AsrPV/T+KVxf/E1y8XuLR1wwLSAyTjGvGwbBocljIbSa4+TJJ1uvMOMozYycfPSArHdI+rGk2HLOJfSDs1csw4lmdEr8/m3wSvKggGxn3IIf6hk3qpeezxH+waDOA3KZvHflreWOI5nvb6rUQ0FBesaDSC7PUPTkLsIby5V85FGlKxaRKWf0CPHQU+hBk71DFCLJU/CRnCl2unRfykvm+R5fg5IphmEBuJMII09cXTkTQKac8UwC8eyW91NyXaIKccVTE6oRSjK/b2DlUemnNaDZV7wRPTOWZlSXZH5v2DfPvDeSJ66R2Zw32BfSrlhGpJvRL4M327xzkkeqYQFGPTRpsEJJ5vZLPDyp5IlbZPaoN+ALdSkWOfm5/WDeyvNOSO9Xg8H8VRPDZ/Wu3vxQfJH6EL3x17lim9x/RGZzcSWDFwGvRHYA+RnjScLbhGFGmx40GCxmXDB8x3DcGCg/nwv6FxXDeiY5gqS3mDsYix7jvnJANUjPeCi2exQ8zNmTe0VvLXt2/py6qO9E5zwnfw4L+PRNPmsmG3NpXvxLpbl66TnjLG2ePW+R3N15a7kVWfIDYkMTzHNd6Xf4xulZ1nHKaUHCpNOUo4OJNjVTzqcRNjVTDqsl2nSumnaXvg1DWAU0PKNdl+T+kjDpktx9plrTFLX9+fkm9Rqe0a77Q5Wn7igSRvnkz2hRcczLJyDnkz+jRcfqLn0tS5gU0j+jTbvH8lQkB1wTRvUKntGqNvl6Y8KiNvmq40Rr3r37fGNs2ufsJfMmdeOS6iFd6me05/cmeTONsKdL/Yz25HX9NJN6Bc9rVXLcDW1TciBOokVl8zQ3hfTP2uo/tnldpD71RDb9oOEZ7aqLY/W+mPLob5xixhP9fb5h+Zh+Axm0mps4Fnm9e5wUP4SSzEgmgIx7b6Qf74d2s+6YektM84VuiWmGt8TI9JuEmuu3xDRtdf72cpceYRclmNERIdvgB5V85QWwecQN37tEEwzqU8zriO8jvV9JlX7sE1jNdefVm8fq0uSnfeqMJU4xnytAvj3xmHwkGFrNuaIuU8+udaIzFr4u+xOdOplrtHZyi9RTeoiVl52RYT3Bd4x1cpV3lvJFfneZYIETnrXQ7y59l7dMJrk6W7lin89F/WNZN6m9XZRgxuKHbHsXJDdwYDPnhkuZenl9Jzpj0S/lvi90+uuExk4uJsyerXld/js5RAsmmDEyLGQbHLBKrvjAZsYNhyrfv64u9S7VnijBfG7osw1rpfSHd4DNLK11ObXfJdMSQHzGkOou0+CA9Ifbg71jxf/pmMqmA/GZi//T8aEvfvIyKNg7Vvzk+P1eeubC/w1An1z3vbVjRX/dfkpe8kQJZnaAzbbfVk1/yaC3mQ2cLkwnkb7HBeTnDJfucu35ouQJQG/xn7/d3pT2jMHXf9y872Lsv76RL9VLM4+8L4vDvrn5OrvxOyzV0T7z+lv37dfCBFsbCSfyl8XNbba41fqlFqvffrvNfAr7wf7Diomb20zcLuVLFQmJSEje3GZyKCQjIXVzm6lbIV9uFzoSU5GYvrnN9K1evdQy1qYjseXNbbYcZrmMhFY3t9lqKLSKhNY3t9l6KLSOhDY3t9lmKLSJhLY3t9l2KLSNHWr8KxaES5Hjrecp18e+N1fAZILwvojdbx6KyIQi5GL/mztUMqEJuRgAc4l8JggIRIyB4b0yQaAgYhjMReyZIIAQMRImmDoTBBYiBsPcRJwJAg4R42ECjzNJ4CFjPKRxuyTwkKgt2MZAtYYYD2ncLgk8ZIyHCa3PJIGHjPEw91BnksBDxniYa0YzSeAhYzykcbsk8JAxHiYgOZMEHjLGw1zslUkCDxnjYWJ5M0XgoWI8zKVumSLwUDEeJho2UwQeCnVPtn8i8FAxHiaANFMEHirGw1y/k6nl7XL9Ui+2sWSMiIm/zNSKlIwxMXxhptakZIyKCWfM1IaUjHExzFumtqRkjIy5Ez/TC0pSx9iY2LlME9joGBtzHU2mCWx0jI2hxDJNYKPR2GEHDwIbHWNjyKZME21Fx8iYc66ZJtqKjnHRxvmaaCs6RsVcJ5Bpoq3oGBNDDWWaaCs6RsRcZJMtibayjPEwpEu2FBRyyxgRc81HtpSkZIyJYTGypSIlY1TMxTLZUpOSaFC3ozo1rMe4mPtYsiWByzLGxZAO2ZLAZRnjYk66Z0sCl2WMiznglS0JXJYxLiaULlsRuKxiXAwnkK2IdrKKUTEnz7MV0U5WMSYr4/gV0U5WMSImyDhbkYisYkRWxvErshdbobmWnWyRvdgqRmVlnL8iUFnFqBiqIFsRqKxiVFbG+SsClVWMinlELVsvbvXm5VbFc951jMta8JIxMuaMdLYmEFzHyKwVN91ex9AYeiBbSzLrGJr1kpeMoTFrbtpINBNes0bGyJiFbLYm6tk6RmZtAFgT/fE6RmZjkSHa/SbGZWNxIevYJsZlY3EhR8pNjIx5TDRbkyPlJoZmY6EhR8pNDM3G+H9DtP9NDIyJMc42BDCbGBjz7Ge2Idr/Bq1S7DKF7JM3MTIbA8CG7AE2MTbmAtJsQ/YA2xidrYFgQ/TK2xgbE3CbbYj2v42RMcvkbEO0/22Mi3kmM9tQC68Yla1x/pZAZRujYg4yZ1sClW2MytY4f0ugso1RMcfFsy3RWrZo+WjXj0Rr2eIVpPH7llp6LdAa0rxBkm2pxdcCrSLN03nZllp+LdA60rzkkW2pBdgCrSQXxv9bagm2QGvJhV1MLshVMVpOLux6ckEtjBdoRbmwS8oFtTZeoEXlwq4qF9TyeIHWlQu7sFxQK+QFAqpb61NIDVb7drm/oKDCC3634l+QnZvAq3637F9QcOGFv1v5Lyi88NrfLf5JFgMv/936nyYyEF6CHX8EJgEcCyDIiarATICjAgTZLwpEBwi77BeC7BoF4gSEdCQN2TsKiYkai5sghy+B2AFhWQBB8iGIIBCWCBAkJYI4AvtYVSZIVgTRBMLSAYIiRgRiCoRlBATFjQhEFghLCghJ44YYA/vcRSYkjRuiDYSlB4SkcUPcgbAcgaDYEoHoA6Ecv0Y1TIUZNpbiFIhEEJYsEBS9IhCPYO/xzQTFsAhEJAjlMKPgRUyCsHyBoHgWgagEe3VuJiiqRSAuQTgygfYAwstSBoIiZgRiE4RlDQTFzQhEKNgLbjNB0TMCcQpC82hpTIlatBRVXRCzICyDIBRVXRC5YG/RyoSi6gDiF4R2aJGzVIFIBntpYSZoSkcgpkFYRkHQrI5AdIO9ODcTFLEjEOMgLK8gKG5HIMrBXi2aCYreEYhzEJZZEBTDIxDpYK+zpTcSxBIz2RYzig8SiHiwN8FmgqKEBOIehOUYBMUKCUQ/2Jv2MkERQwIxEGLp8KKaOCIh7K2dmaDoIYF4CGH5BrGkgEVUhL0FLxNLCljERgjLOoglBSwiJOxdk5lYUsAiRkKs3MYDhdYKbz1YtCiiSCBOQljuQVBckUC0hA1hyARFFwnETAjLQAiKMRKInLBPvGeCIo0EYieE5SAExRsJRE/YO9wyQVFHAjEUwhIRgmKPBOIobAxDJlYUWoikEJaKECsKLcRS2NCATKwotNZ4r8iiRXFIAlEVdtM9ExSNJBBbISwrISgmSSDCwm5jZ2JNoYU4C2GZCUHRLwKRFvbKuUysKbQQayEsNyHW9NwIERf2BrdMrOm5EeIuhOUoxJqe0yICw56SzgRNyQjEYoiN2+KjFy6IyrBPEmeCJmYEYjOE5SwEzc0IRGjYJ1UysaGHPMRpCMtdiA3JnQtEbNijxJnY0LNbxG7YKIBM0GyNQBSHsFSGoAkbgXgOYfkMemaDqA57aRuz5EJsh7CshqCZIIEoD3tFHmcC3qfdssMUIj6kpTdIrRIxH/b1VXo9LRH1IReSm1RIxH3YV0w5A9C27YKdf0jEftiXQDmtaPPWUhwUhyUR+WGf0+SUoh1cy3BQhJdE3IdcsPN7ibgPe/qHZMckoj6k5TdopYj6sO/dkFSaRLyHFDxSiPewr8aQvJtEtIcUPFCI9rDHfUiOTiLWQwoeKMR6SEtsUHSeRJSHFDxQOP7BchoU8ydxBITkgRoEQUiGJJQ4DELyQOFICMnxiRLHQkgeKBwO4eIhSEsRUJIHCsdEOJqDWgVKHBYheaQQxSEti0GHjCCkFI8U4jekJTHI+BJEb0ie3pCI3pCWwyCDURC7IRWPFGI3pGIjVxC5IRWPFCI3pCM3KJ0IJ57akIjakI7aoBYzElEb9pYhRiuiNqSjNqh1j0TUhuSpDYmoDemoDWpBKxG1YY/ocFoRVI7aoNa+ElEbUvNYIWJDanaZLBGtYQ/XcFoRWh2pQXUriNSwh1cYrYjUkJa5IOcUiNOwx0E4pQgsS1yQMVSI0rBXN3FKEVaO0qB2SSSiNOwhDk4rwmrJbqhIRGnYa3M5rQgrR2nQ0WsIqxWPFaI0pOUtGFEElqM0yLA4RGlIR2mQIwuiNKSjNEhgEaUhHaVB7ZRJRGnIFY8WojSkozSoTTWJKA254tFClIZ0lAYZM4koDbnm0UKUhnSUBjm4IEpDrvmmhSgN6SgNiv+RiNKQa75tIUpDOkqD2m+RiNKQax4tRGlIR2mQMauI0pBrHi1EaUjLW1CUikSMhtzwYCFGQ1ragiJfJCI05IbHCtEZ0jIWFF8sEZchNzxUiMmQLhaD6gURjSE3PFKIxJAbLlBGIgZDbnigEH8hLUVBdkGIvJBbHihEXUjLTlDUl0S8hdzyQCHWQlpigo6jkoi0kDxpIRFpIS0zQUc+ScRayC0PFuIspCUmqPgViSgLueXBQpSFsrwEFeyiEGOhFixYCjEWyjEWFAOtEGOheMZCIcZCWVqCjKhGhIXiCQuFCAtlaQky/BoRFoonLBQiLJSlJchYbURYKJ6wUIiwUJaWIAO7EWGheMJCIcJCWVqC2jBTiLBQPGGhEGGhLC1Bba0pRFgonrBQiLBQLk6Div5QiLFQPGOhEGOhXJwGGc6PKAvFUxYKURbKxWiQVRVxFornLBTiLJRkp4EKkRbKRWfQpwoQWC46g6ysiLVQLjqDrIKItVCWm2BsRWjxtIVCtIXqaAtiaqUQbaF42kLhAx2WnKCiQBU+0sHTFgqf6rDkBBUyqgbnOviGhY92WHKCittU+HAHT1sofLpDcUGeCp/u4GkLhY93WHaCio1U+HgHz1soxFsoS05QgZQK0RaKpy0Uoi1UR1tQ5Ue0heJpC4VoC+VOelDwI9ZC8ayFQqyFYo97KERaKJ60UIi0UOyZD4U4C8VzFgpxFsoSExS9ohBloXjKQiHKQjnKgoIfURaKpywUoiyUO/xB+RRRFoqnLBSiLJQ7/0EWHwHFMxYKMRaKPQSiEGGheMJCIcJCWVaC2v9XiK9QPF+hEF+h3HEQqptCdIVa8UAhukJZToLahVOIrVArHijEVihLSVCUpUJkheLJCoXICuXOhVAdCuIqlDsZQo3SiKpQjqqgQlUUoioUT1UoRFUoR1VQYbIKURWKpyoUoiqUoyqoiFqFqArFUxUKURWqoyqoRoWoCsVTFQpRFcpRFVRsqkJUheKpCoWoCuWiL8gqgLgKxXMVCnEVykVfbOiDmIiuUDxdoRBdoVz0BVkNEV+heL5CIb5CucgLKlxHIcJC8YSFQoSFclEXVGSPQoyF4hkLhRgL5SIuqCAghSgLxVMWClEWykVbUPFCCnEWiucsFOIslIu0oHgwhSgLxVMWClEWarviopAUYiwUz1goxFio7YYLWFKIslA8ZaEQZaEXbGyTRpyF5jkLjTgL7TgLKgxKI85C85yFRpyFXmguYkoj0kLzpIVGpIV2Z0zIA8yItdA8a6ERa6HdGRPyuDOiLTRPW2hEW2hLTlA6EWuhedZCI9ZCO9aCvIQD0RbachPUSWpEWmhLTVBHqRFnoS0xQZ2lRoyFtrQEdZga8RXakhLUaWrEVmjHVlAVH5EVujtSQkkifBxXQZ5xRwC5wyTUKXfEVGh3koQ6546ICu2ICgofxFNox1NQACGaQjuagkIIsRTanSGhIEIkhXZHSCiMEEeh3X0TFEaIotDuxgkKI8RQaHd2hDokpRFFoXmKQiOKQruTI1R8v0YcheY5Co04Cu1OjlBLCo1ICs2TFBqRFNqdHKEOtWnEUmiepdCIpdAuuII6/6YRTaF5mkLjayhceAV5HQS+h4LnKTS+ikJz97ZofBkFT1PowX0UmguW1/hKCp6n0PhWCs2GtWt8MQVPVGh8N4WlIyimVuPbKXiiQiOiQnfBFeRVGwgrnqnQiKnQlo+gpr4aMRWaZyo0Yir00oXYktHJGpEVmicrNCIrtIuv2JCBzBrxFZrnKzTiK7SLsNiQMc8aURaapyw0oiy0i7HY0ve8INZC86yFRqyFdgdHtmQktUbEheaJC42IC+3iLCg6RCPmQvPMhe6YC3vL2vuibou9e9Hd3Je2uLn94+Zf3e1rJtjdqjMXsZkQ96//+PPP/r4185dR7K+I6xOqPpkyYrc35lRg92Pb/dD+P9ul/7FxP0yEc/dD+R9L/2Ptf3R6TOBs98MLCy8svLDwwtILSy8svbD0wtILKy/sjTdxet0PL+yLY2LYuh9eWHth7YW1F1564aUXXnrhpRdeeuGVF15J/8PLrLzM2susvcK1V7j2wmsvvPHCGy+88cIbL7zxwlsvvPXCHi+zq9z96ITN7m33Q/kfS/9j7X94YQ+c8sApD5zywCkPnPLAmf2p7sfK//DCHjjlgVMeOOWBUx445YFTHjjlgVMeOOWBUx445YFTHjjlgVMeOOWBUx44Q0B2P7ywR1B54JQHTnng1DrIeIUeOOWBUx445YFTHjjlgVMeOOWBUx445YHTHjjtgdMeOO2B0x447YHTKvzwqbyftfez9n7W3s/a+1l7P2vvZ+39rL2ftfez9n7W3s/a+1l7P2vvZ+38TPRV+X5fuBdDQDe3gN1c6E6cSygdh0OUXGuQPDToheSSm7fz+uQgsXZJzaHNTof2Hh9Rdn857Vp7vzvsuaFNG82nrro3Q2BaBdMqLu357O/mBIlXmz7tynfnG9Z69+YOyHsLsvbwuvbNJb+zDxa31V33oixQtpJA29r3G7w3InX2TVKoDHolNFZ2ULTKqlMRe3YJPcvW0S7psapR8jVMPuqVtto17+NaChOHQUaP2t9+qIZGbKARGz65e7sIpIwSemzZ/D/kZdtWsQLQThVbqVxFaCsAZwwkbBpr7YHkSuLVDSsEBDN02tvFFT339nk5qAf2Pms/qG3Z4h2qu5HCQZTDALLlqrxTRjUdCNZ64/VwaDk99iFGqAS25jCIbVlP19WHpqiJXmUNGrJHLMxvWKN2+bE4yH3ePEJdEpRM+h6KrYa7x7w2s9smmt4CJyuuGe4ey8PeSkGXKOgSzXkivPcHU4KEfpiT3BC1OxT5aZ+3eawC1rQwO5WsFYcir/O2jWqYBHaEObTiKr1VYW6IjlSABij9UKe4+r47lHi8BqXwqfky4D5YwmYbZvhrNvvqaG6spiol8MQ6DHWsIdXxfCiOuChL2BmtvDM068/q1OblqYl1wBKtwqKDL9E5HnM1HCbDxGvBl8QsGiNPgPbAdsu75n3XbcWZwzq5XHnjuQ7LahmMLBr2VkuPBd+8Lu3usfHv64KpGJyLeSyWXIFMxyJtHxNVbtDAw0JyyRVnX5i3dIn+dwExCWveJddNOT2X9n4Ta4GdxsL7Zcn5Ze9fyIJjLqyg7DiyLw4IVwlxVWHhylXsfXHY5bvHqKlugQ/CUlOMaaiqt2WsAna3fjYt5UgxmqLBDX0L21egJgSPRdPWFfIGtEP5Ws6uUvZlfc7r/Ih5lQ3Ak+1p9tWHk7lJP4YRlmHLjVnde7wgHexrfc/gJuZU8pN7GRr0DKBhsisJl4xqBAvoeN+xrTjHOz3DRgDLsAi+59xXNLs89jocMQJbpLg6VHxsi1PsfAktCDTTmqvJToPtKgdDuIT9AjtyOw3DxLAts2O2S+zWhUMVsEeRXEUwc1xyWrmGiG4WfqjhTLkvD4fy/H4VD3dwihuYsDWHx315eijqc13GIy8c9LRfGgpeyUf/RDxsHLBVh5qx5upn9/42rJqwZvrWxYH6ULTMmhs4JPhjw/n0oWiHPS0wJLB7C64cRsNjcyhOD200s9agbgQSlF1tGy3D/hqOGotA7I64xOmIJkRbWEEWfuiRIw7x/W3U14IK0rOiIz6xlR512CZwHzQ5v44as2VYzyQoT+g92HXmQ9FWDVVLQGUNtDG7ynwo2nN4QhU2PjjT8gSPYrmuh6J9dynqT0PvAqB7hnkE515NhPUG+GbrmzHbnzwUbbOrq8PhXDXlgDNbwOYsPDHAjvNGGTFZAI0g7Gew9N1D0Q6rDOwVAl091gYu9WHoYABUIIDZZRJQErsXuGTrPcKuTh7ss3vQo7Alsk54LMqHx6hjhJQIO9w/Vk2UCE5x2NZRnjqWIcoONNKes+d8VZ5O1b74PfITZBr9Lo1accNjeWqLusG06xJ2FcEMdhlXNoPF1BKg1W9CsK5o9nn99ohmbHAxGbY2WAyMjjZODyDvd0RG0pcPZZsfIm9qYEO/F8MNJGVTvLvk0bQVcp1hD2fJO6L4WLYNxaPD1an21BzLmXaK/BtZkSLQHLXvNtkFatmUbVFjHSvQMawWHhq+fuBlsgTppZ9usHPIshluDSyBO/xaXbGL27I5H/LyRKgBhixDQXg1dfFQfDxHGoA7/XpfsevasnHvTEaAgLbS7+5xzhwwDhHN6l3JLedM6mFjBZNx1oUmJUHlw4EqbBOz9dsoeZ8fLnE7BePUkluZvS0+DRhMDYcnzXVxw9khJB8V14LMurXpHu+Eq1fYnllnHfPfKzRBh6sldgQ95lHdEnC+JZQnDVack475uS2O5wPqCAVsbsJvVss1b8Wnu+JcV8eyKaraTAzQagMu/sWWtaY8YSfAdOza/VieLohWhOnCDja7aj1Wd3hnI1qr+kbCp7+c2l0T2wBnMZodRWzS8vgQJ4UNnO0abNJ4LBdwNaTZ4dOmbNw7kzCxgIm5/gS3qjVI5Tcq2XXkqfjYunQRzLC6hUAKltc2SohVgogZH9/Hs6vrU7WrTveXeK9CAdTYKedwnQNnHl1tEVw1r45le87rtowHfgFXbYJd3ZjUdfHuUtYFosmgE9lJZHUuTnivS0O/LQOzwWFILtEgO7LuVITAHpZ7Ped1U1BLABgDEHbfWNrnnKO2B5fiK996eSPa3WNckSDZxLb6cx6PEpBu3nB91Tk3nWM8twFTG1932DzL3Vuy7kAIt9zWmklN1p01HJV525kpESgAOws5V007YFgBxr7g3DzkXBdogSYgLczuJoLHZGH9gG3FV1fNTuPOdXks2/J9PAsBLl/y2dtB8T43z7rGdEQUU+D3EhU7xp7NFP+SH9ryiKk8OObLMNhxzffdu3iohG3fNxWu66rz07467qpDPE5DpijEry04bzolwz5UgXqkAh/CFQNqiXe4YQRnCOXj3OrUDPfTFGjMKvApXLOEWvy2ezRjh8NyipLqbJZzcbkAUoprJnXxUDZ49gXDBkQIA2Vre10cihzt4Ec9quQaeV0cq/cFEaQGDQgRAGx3Xj/ctdUjmiPAhZfwS0ix5fqqJr8v7OgS9dBAR4g+ZHdDjAqHRnkfNV3Y2W78NINdFzRFXu8e3xafmiL2CpxqCM3ta7nkRKgbjOQQfoGv2ViEhuLOQUG2fpbPNpWGZL1hIULIM1tDGo6bhQOQp3g1Dw3NX4I266NDJbsv0jxe7u8R0wEnwCHCly1LVeOWBnsNEbZm2MW10XAuT5/KeB4LW7rwm/mKZTua86Hc0bMooMjvWCm+hkR6iB4IhtRvuBGvaavz3eUO8T/mzBKoJwFgttG01Zna0l9A14R9J3aibppv3GxgEJNiO4/BcABJXT9VYSvW5f6+jDsvOLQJ7ZFgh9nm/QMRtAcXWmITYl04ONsCzfKhCX6g5xN/bPO6iDZQ4VawD2nX7D5qW7WP1aXJT/t4ag532sTST3jZQbGty6hKw01kGVKzxRhsUMDcQxNnlwaXE7GlDupCoEbYinw54VUqnC6LVSgCb0L5Lqa/xDJa3vj6yFK7l/O5qO/LOt5ygFs1yjckltVFS0YYGuGbA5t9faAqM/TCxnuBnTNemqLGxAPc3/FGcKPoBW/v6GjeG+LzuWpIrHiB//x6txv+fOyq8PSqYOM8TaQw6moE3NIR4YwFuyn+odzH61AY3MuG6ThWuSn/HdP0oHmEAwnsmq7XUd39HqkBfQ07zfxQto/vLkVjh5ljXr+NhhoALr0N/9vtzbk8F4fyVNx8nf3255//D37jPhk/VAEA"; \ No newline at end of file diff --git a/assets/style.css b/assets/style.css new file mode 100644 index 00000000..778b9492 --- /dev/null +++ b/assets/style.css @@ -0,0 +1,1412 @@ +:root { + /* Light */ + --light-color-background: #f2f4f8; + --light-color-background-secondary: #eff0f1; + --light-color-warning-text: #222; + --light-color-background-warning: #e6e600; + --light-color-icon-background: var(--light-color-background); + --light-color-accent: #c5c7c9; + --light-color-active-menu-item: var(--light-color-accent); + --light-color-text: #222; + --light-color-text-aside: #6e6e6e; + --light-color-link: #1f70c2; + + --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: var(--light-color-ts-variable); + --light-color-ts-method: var(--light-color-ts-function); + --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: var(--light-color-ts-property); + --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-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-icon-background: var(--dark-color-background-secondary); + --dark-color-accent: #9096a2; + --dark-color-active-menu-item: #5d5d6a; + --dark-color-text: #f5f5f5; + --dark-color-text-aside: #dddddd; + --dark-color-link: #00aff4; + + --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: var(--dark-color-ts-variable); + --dark-color-ts-method: var(--dark-color-ts-function); + --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: var(--dark-color-ts-property); + --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-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-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-link: var(--light-color-link); + + --color-ts-keyword: var(--light-color-ts-keyword); + --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-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); + + --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-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-link: var(--dark-color-link); + + --color-ts-keyword: var(--dark-color-ts-keyword); + --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-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); + + --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-link: var(--light-color-link); + + --color-ts-keyword: var(--light-color-ts-keyword); + --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-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); + + --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-link: var(--dark-color-link); + + --color-ts-keyword: var(--dark-color-ts-keyword); + --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-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); + + --external-icon: var(--dark-external-icon); + --color-scheme: var(--dark-color-scheme); +} + +.always-visible, +.always-visible .tsd-signatures { + display: inherit !important; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + line-height: 1.2; +} + +h1 > a:not(.link), +h2 > a:not(.link), +h3 > a:not(.link), +h4 > a:not(.link), +h5 > a:not(.link), +h6 > a:not(.link) { + text-decoration: none; + color: var(--color-text); +} + +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; +} + +.uppercase { + text-transform: uppercase; +} + +dl, +menu, +ol, +ul { + margin: 1em 0; +} + +dd { + margin: 0 0 0 40px; +} + +.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; +} +.tsd-generator { + 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; +} + +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; + white-space: pre-wrap; + word-wrap: break-word; + padding: 10px; + border: 1px solid var(--color-accent); +} +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-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: fit-content; + width: -moz-fit-content; + align-items: center; + user-select: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-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 + svg { + transform: scale(0.95); +} +.tsd-filter-input input[type="checkbox"]:focus:not(:focus-visible) + svg { + transform: scale(1); +} +.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); +} + +.tsd-theme-toggle { + padding-top: 0.75rem; +} +.tsd-theme-toggle > h4 { + display: inline; + vertical-align: middle; + margin-right: 0.75rem; +} + +.tsd-hierarchy { + list-style: square; + margin: 0; +} +.tsd-hierarchy .target { + font-weight: bold; +} + +.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-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-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 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 { + user-select: none; + -moz-user-select: none; + -webkit-user-select: none; + -ms-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-index-accordion .tsd-accordion-summary > svg { + margin-left: 0.25rem; +} +.tsd-index-content > :not(:first-child) { + margin-top: 0.75rem; +} +.tsd-index-heading { + margin-top: 1.5rem; + margin-bottom: 0.75rem; +} + +.tsd-kind-icon { + margin-right: 0.5rem; + width: 1.25rem; + height: 1.25rem; + min-width: 1.25rem; + min-height: 1.25rem; +} +.tsd-kind-icon path { + transform-origin: center; + transform: scale(1.1); +} +.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: 4rem 0; +} +.tsd-panel-group.tsd-index-group { + margin: 2rem 0; +} +.tsd-panel-group.tsd-index-group details { + margin: 2rem 0; +} + +#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-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-anchor-icon { + display: inline-flex; + align-items: center; + margin-left: 0.5rem; + vertical-align: middle; + color: var(--color-text); +} + +.tsd-anchor-icon svg { + width: 1em; + height: 1em; + visibility: hidden; +} + +.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-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-literal { + color: var(--color-ts-type-literal); +} +.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%; + } +} + +/* 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 0; + } + + .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 00000000..a36d0cf0 --- /dev/null +++ b/functions/CSVToArray.html @@ -0,0 +1,9 @@ +CSVToArray | index.md - v5.21.1

Function CSVToArray

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

    +

    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

    +

    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']]`. +
    +

    Since

    1.0.9

    +
\ No newline at end of file diff --git a/functions/CSVToJSON.html b/functions/CSVToJSON.html new file mode 100644 index 00000000..2aca81cb --- /dev/null +++ b/functions/CSVToJSON.html @@ -0,0 +1,10 @@ +CSVToJSON | index.md - v5.21.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
    • +
    +

    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'}]`. +
    +

    Since

    1.0.9

    +
\ No newline at end of file diff --git a/functions/JSONToCSV.html b/functions/JSONToCSV.html new file mode 100644 index 00000000..c1b235ef --- /dev/null +++ b/functions/JSONToCSV.html @@ -0,0 +1,10 @@ +JSONToCSV | index.md - v5.21.1

Function JSONToCSV

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

    +

    Parameters

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

      the specified columns

      +
    • delimiter: string = ','

      delimiter, default ','

      +

    Returns string

      +
    • CSV data
    • +
    +

    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"' +
    +

    Since

    1.0.9

    +
\ No newline at end of file diff --git a/functions/RGBToHex.html b/functions/RGBToHex.html new file mode 100644 index 00000000..5cfc721f --- /dev/null +++ b/functions/RGBToHex.html @@ -0,0 +1,11 @@ +RGBToHex | index.md - v5.21.1

Function RGBToHex

  • Converts RGB component values to color codes.

    +

    Parameters

    • r: number

      the 1st value of RGB

      +
    • g: number

      RGB's 2nd value

      +
    • b: number

      RGB's 3rd value

      +

    Returns string

      +
    • hex value
    • +
    +

    Example

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

    Since

    1.0.9

    +
\ No newline at end of file diff --git a/functions/addEvent.html b/functions/addEvent.html new file mode 100644 index 00000000..aa0dd1b0 --- /dev/null +++ b/functions/addEvent.html @@ -0,0 +1,7 @@ +addEvent | index.md - v5.21.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

    Since

    1.0.2

    +

Properties

Properties

guid: number
\ No newline at end of file diff --git a/functions/all.html b/functions/all.html new file mode 100644 index 00000000..80ac2276 --- /dev/null +++ b/functions/all.html @@ -0,0 +1,10 @@ +all | index.md - v5.21.1

Function all

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

    +

    Type Parameters

    • T = unknown

    Parameters

    • arr: T[]

      the target array

      +
    • fn: AnyFunction

      the judgment method

      +

    Returns boolean

      +
    • the result of the judgment
    • +
    +

    Example

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

    Since

    1.0.9

    +
\ No newline at end of file diff --git a/functions/any.html b/functions/any.html new file mode 100644 index 00000000..80e92353 --- /dev/null +++ b/functions/any.html @@ -0,0 +1,10 @@ +any | index.md - v5.21.1

Function any

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

    +

    Type Parameters

    • T = unknown

    Parameters

    • arr: T[]

      the target array

      +
    • fn: AnyFunction

      the judgment method

      +

    Returns boolean

      +
    • the result of the judgment
    • +
    +

    Example

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

    Since

    1.0.9

    +
\ No newline at end of file diff --git a/functions/appVersion.html b/functions/appVersion.html new file mode 100644 index 00000000..9eb242e0 --- /dev/null +++ b/functions/appVersion.html @@ -0,0 +1,7 @@ +appVersion | index.md - v5.21.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

    +

    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 +
    +

    Since

    5.1.0

    +
  • Parameters

    • appName: string
    • ua: string

    Returns string | null

  • Parameters

    • appName: string
    • ua: boolean

    Returns string | null

  • Parameters

    • appName: string
    • ua: string
    • ignoreCase: boolean

    Returns string | null

\ No newline at end of file diff --git a/functions/arrayBufferToBase64.html b/functions/arrayBufferToBase64.html new file mode 100644 index 00000000..0a79b443 --- /dev/null +++ b/functions/arrayBufferToBase64.html @@ -0,0 +1,10 @@ +arrayBufferToBase64 | index.md - v5.21.1

Function arrayBufferToBase64

  • arrayBuffer to base64

    +

    Parameters

    • input: ArrayBuffer

      arrayBuffer

      +
    • Optional mime: string

      image mime, eq: image/png

      +

    Returns string

      +
    • base64
    • +
    +

    Example

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

    arrayBufferToBase64(arrayBuffer)
    // xxxxxxxxxxxx +
    +

    Since

    5.13.0

    +
\ No newline at end of file diff --git a/functions/arrayBufferToBlob.html b/functions/arrayBufferToBlob.html new file mode 100644 index 00000000..06574ef8 --- /dev/null +++ b/functions/arrayBufferToBlob.html @@ -0,0 +1,8 @@ +arrayBufferToBlob | index.md - v5.21.1

Function arrayBufferToBlob

  • arrayBuffer to blob

    +

    Parameters

    • input: ArrayBuffer

      arrayBuffer

      +
    • mime: string = 'image/png'

      image mime, default: image/png

      +

    Returns Blob

      +
    • blob
    • +
    +

    Since

    5.13.0

    +
\ No newline at end of file diff --git a/functions/arrayToCSV.html b/functions/arrayToCSV.html new file mode 100644 index 00000000..39139089 --- /dev/null +++ b/functions/arrayToCSV.html @@ -0,0 +1,7 @@ +arrayToCSV | index.md - v5.21.1

Function arrayToCSV

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

    +

    Type Parameters

    • T extends unknown[][]

    Parameters

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

      delimiter, default ','

      +

    Returns string

    CSV data

    +

    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' +
    +

    Since

    1.0.9

    +
\ No newline at end of file diff --git a/functions/awaitTo.html b/functions/awaitTo.html new file mode 100644 index 00000000..658509c6 --- /dev/null +++ b/functions/awaitTo.html @@ -0,0 +1,10 @@ +awaitTo | index.md - v5.21.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
    • +
    +

    Example

    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()])
    })() +
    +

    Since

    1.0.0

    +

    Author

    saqqdy

    +
  • Type Parameters

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

    Parameters

    • promise: PromiseAll<P>

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

  • Type Parameters

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

    Parameters

    • promise: Promise<T>
    • Rest ...promises: PromiseAll<P>

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

\ No newline at end of file diff --git a/functions/base64ToArrayBuffer.html b/functions/base64ToArrayBuffer.html new file mode 100644 index 00000000..1f2ba637 --- /dev/null +++ b/functions/base64ToArrayBuffer.html @@ -0,0 +1,7 @@ +base64ToArrayBuffer | index.md - v5.21.1

Function base64ToArrayBuffer

  • base64 to arrayBuffer

    +

    Parameters

    • input: string

      base64 string

      +

    Returns ArrayBuffer

      +
    • arrayBuffer
    • +
    +

    Since

    5.13.0

    +
\ No newline at end of file diff --git a/functions/base64ToBlob.html b/functions/base64ToBlob.html new file mode 100644 index 00000000..af5a3b80 --- /dev/null +++ b/functions/base64ToBlob.html @@ -0,0 +1,7 @@ +base64ToBlob | index.md - v5.21.1

Function base64ToBlob

  • base64 to blob

    +

    Parameters

    • input: string

      base64 string

      +

    Returns Blob

      +
    • blob
    • +
    +

    Since

    5.13.0

    +
\ No newline at end of file diff --git a/functions/base64ToFile.html b/functions/base64ToFile.html new file mode 100644 index 00000000..b4f8442c --- /dev/null +++ b/functions/base64ToFile.html @@ -0,0 +1,8 @@ +base64ToFile | index.md - v5.21.1

Function base64ToFile

  • base64 to file

    +

    Parameters

    • input: string

      base64 string

      +
    • fileName: string

      file name

      +

    Returns File

      +
    • the BASE64 encoding
    • +
    +

    Since

    5.13.0

    +
\ No newline at end of file diff --git a/functions/blobToArrayBuffer.html b/functions/blobToArrayBuffer.html new file mode 100644 index 00000000..97b4a661 --- /dev/null +++ b/functions/blobToArrayBuffer.html @@ -0,0 +1,7 @@ +blobToArrayBuffer | index.md - v5.21.1

Function blobToArrayBuffer

  • blob to arrayBuffer

    +

    Parameters

    • input: Blob

      blob data

      +

    Returns Promise<ArrayBuffer | null>

      +
    • arrayBuffer
    • +
    +

    Since

    5.13.0

    +
\ No newline at end of file diff --git a/functions/blobToBase64.html b/functions/blobToBase64.html new file mode 100644 index 00000000..eeb3c9b6 --- /dev/null +++ b/functions/blobToBase64.html @@ -0,0 +1,7 @@ +blobToBase64 | index.md - v5.21.1

Function blobToBase64

  • blob to base64

    +

    Parameters

    • input: Blob

      blob data

      +

    Returns Promise<string | null>

      +
    • base64 string
    • +
    +

    Since

    5.13.0

    +
\ No newline at end of file diff --git a/functions/blobToUrl.html b/functions/blobToUrl.html new file mode 100644 index 00000000..77cb2525 --- /dev/null +++ b/functions/blobToUrl.html @@ -0,0 +1,7 @@ +blobToUrl | index.md - v5.21.1

Function blobToUrl

  • blob to blobUrl

    +

    Parameters

    • input: Blob

      blob data

      +

    Returns string

      +
    • blobUrl
    • +
    +

    Since

    5.13.0

    +
\ No newline at end of file diff --git a/functions/browserVersion-1.html b/functions/browserVersion-1.html new file mode 100644 index 00000000..12663414 --- /dev/null +++ b/functions/browserVersion-1.html @@ -0,0 +1,7 @@ +browserVersion | index.md - v5.21.1

Function browserVersion

  • Get the browser name and version

    +

    Parameters

    • Optional ua: string

      ua or any ua like string, may not be passed, default is navigator.userAgent

      +

    Returns BrowserVersion | null

    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' \} +
    +

    Since

    5.2.0

    +
\ No newline at end of file diff --git a/functions/camel2Dash.html b/functions/camel2Dash.html new file mode 100644 index 00000000..ca2cd881 --- /dev/null +++ b/functions/camel2Dash.html @@ -0,0 +1,7 @@ +camel2Dash | index.md - v5.21.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
    • +
    +

    Since

    1.0.1

    +
\ No newline at end of file diff --git a/functions/cleanData.html b/functions/cleanData.html new file mode 100644 index 00000000..eb975842 --- /dev/null +++ b/functions/cleanData.html @@ -0,0 +1,8 @@ +cleanData | index.md - v5.21.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

      +
    • Optional nullFix: any

    Returns any

      +
    • the cleaned object
    • +
    +

    Since

    1.0.2

    +
\ No newline at end of file diff --git a/functions/clearAttr.html b/functions/clearAttr.html new file mode 100644 index 00000000..4746abf4 --- /dev/null +++ b/functions/clearAttr.html @@ -0,0 +1,5 @@ +clearAttr | index.md - v5.21.1

Function clearAttr

  • Remove all attributes of HTML tags

    +

    Parameters

    • string: string

      pass in the string

      +

    Returns string

    newString

    +

    Since

    1.0.1

    +
\ No newline at end of file diff --git a/functions/clearHtml.html b/functions/clearHtml.html new file mode 100644 index 00000000..6f4504a9 --- /dev/null +++ b/functions/clearHtml.html @@ -0,0 +1,5 @@ +clearHtml | index.md - v5.21.1

Function clearHtml

  • Removing HTML tags

    +

    Parameters

    • string: string

      string with html tags

      +

    Returns string

    newString

    +

    Since

    1.0.1

    +
\ No newline at end of file diff --git a/functions/client.html b/functions/client.html new file mode 100644 index 00000000..5171fc40 --- /dev/null +++ b/functions/client.html @@ -0,0 +1,9 @@ +client | index.md - v5.21.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 }

    +

    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 | {
        ANDROID: boolean;
        GECKO: boolean;
        IE: boolean;
        IOS: boolean;
        IPAD: boolean;
        IPHONE: boolean;
        MOBILE: boolean;
        OPERA: boolean;
        QQ: null | RegExpMatchArray;
        QQBROWSER: boolean;
        TRIDENT: boolean;
        WEBKIT: boolean;
        WEIXIN: boolean;
    }

      +
    • the common ua match table, if name is passed, then returns whether the terminal matches true/false
    • +
    +

    Deprecated

    Will be refactored for the next major release

    +

    Since

    1.0.1

    +
\ No newline at end of file diff --git a/functions/clone.html b/functions/clone.html new file mode 100644 index 00000000..0d8dbbdf --- /dev/null +++ b/functions/clone.html @@ -0,0 +1,9 @@ +clone | index.md - v5.21.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
    • +
    +

    Example

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

    Since

    5.15.0

    +
\ No newline at end of file diff --git a/functions/compareVersion.html b/functions/compareVersion.html new file mode 100644 index 00000000..cd3a0cf4 --- /dev/null +++ b/functions/compareVersion.html @@ -0,0 +1,8 @@ +compareVersion | index.md - v5.21.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

    +

    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 +
    +

    Since

    4.7.0

    +
\ No newline at end of file diff --git a/functions/complement.html b/functions/complement.html new file mode 100644 index 00000000..6771ece9 --- /dev/null +++ b/functions/complement.html @@ -0,0 +1,7 @@ +complement | index.md - v5.21.1

Function complement

  • Find the complement of multiple arrays

    +

    Type Parameters

    • T = unknown

    Parameters

    • Rest ...args: T[][]

      arguments

      +

    Returns T[]

    array

    +

    Example

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

    Since

    2.2.1

    +
\ No newline at end of file diff --git a/functions/contains.html b/functions/contains.html new file mode 100644 index 00000000..063803b8 --- /dev/null +++ b/functions/contains.html @@ -0,0 +1,8 @@ +contains | index.md - v5.21.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

    +

    Example

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

    Since

    2.2.1

    +
\ No newline at end of file diff --git a/functions/copy.html b/functions/copy.html new file mode 100644 index 00000000..ed284caf --- /dev/null +++ b/functions/copy.html @@ -0,0 +1,7 @@ +copy | index.md - v5.21.1

Function copy

  • copy to clipboard

    +

    Parameters

    • value: any

      any target

      +

    Returns undefined | boolean

      +
    • target is Object
    • +
    +

    Since

    5.0.0

    +
\ No newline at end of file diff --git a/functions/cutCHSString.html b/functions/cutCHSString.html new file mode 100644 index 00000000..4081fa85 --- /dev/null +++ b/functions/cutCHSString.html @@ -0,0 +1,7 @@ +cutCHSString | index.md - v5.21.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
    • +
    +

    Since

    1.0.1

    +
\ No newline at end of file diff --git a/functions/dash2Camel.html b/functions/dash2Camel.html new file mode 100644 index 00000000..68ede4ea --- /dev/null +++ b/functions/dash2Camel.html @@ -0,0 +1,7 @@ +dash2Camel | index.md - v5.21.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
    • +
    +

    Since

    1.0.1

    +
\ No newline at end of file diff --git a/functions/decodeBase64.html b/functions/decodeBase64.html new file mode 100644 index 00000000..7b3b339d --- /dev/null +++ b/functions/decodeBase64.html @@ -0,0 +1,5 @@ +decodeBase64 | index.md - v5.21.1

Function decodeBase64

  • base64 decoding

    +

    Parameters

    • input: string

      the string to be decoded

      +

    Returns string

    decoded string

    +

    Since

    1.0.1

    +
\ No newline at end of file diff --git a/functions/decodeUtf8.html b/functions/decodeUtf8.html new file mode 100644 index 00000000..154aca92 --- /dev/null +++ b/functions/decodeUtf8.html @@ -0,0 +1,4 @@ +decodeUtf8 | index.md - v5.21.1

Function decodeUtf8

  • Decoding Utf8

    +

    Parameters

    • utftext: string

    Returns string

    decoded string

    +

    Since

    1.0.1

    +
\ No newline at end of file diff --git a/functions/delCache.html b/functions/delCache.html new file mode 100644 index 00000000..278e0acc --- /dev/null +++ b/functions/delCache.html @@ -0,0 +1,4 @@ +delCache | index.md - v5.21.1

Function delCache

  • Delete localStorage

    +

    Parameters

    • name: string

      name

      +

    Returns void

    Since

    1.0.2

    +
\ No newline at end of file diff --git a/functions/delCookie.html b/functions/delCookie.html new file mode 100644 index 00000000..c168c224 --- /dev/null +++ b/functions/delCookie.html @@ -0,0 +1,4 @@ +delCookie | index.md - v5.21.1

Function delCookie

  • Delete cookie

    +

    Parameters

    • name: string

      cookie name

      +

    Returns void

    Since

    1.0.2

    +
\ No newline at end of file diff --git a/functions/delSession.html b/functions/delSession.html new file mode 100644 index 00000000..e7251a70 --- /dev/null +++ b/functions/delSession.html @@ -0,0 +1,4 @@ +delSession | index.md - v5.21.1

Function delSession

  • Delete sessionStorage

    +

    Parameters

    • name: string

      name

      +

    Returns void

    Since

    1.0.2

    +
\ No newline at end of file diff --git a/functions/delay.html b/functions/delay.html new file mode 100644 index 00000000..bace5b91 --- /dev/null +++ b/functions/delay.html @@ -0,0 +1,4 @@ +delay | index.md - v5.21.1

Function delay

  • debounce & throttle

    +

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

    class

    +
    • map: any
    • destroy:function
      • Parameters

        • id: string

        Returns void

    • register:function
      • Parameters

        Returns void

    Since

    1.0.2

    +
\ No newline at end of file diff --git a/functions/download.html b/functions/download.html new file mode 100644 index 00000000..438649b0 --- /dev/null +++ b/functions/download.html @@ -0,0 +1,11 @@ +download | index.md - v5.21.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

      +
    • Optional type: string

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

      +

    Returns void

\ No newline at end of file diff --git a/functions/encodeBase64.html b/functions/encodeBase64.html new file mode 100644 index 00000000..af940f3b --- /dev/null +++ b/functions/encodeBase64.html @@ -0,0 +1,7 @@ +encodeBase64 | index.md - v5.21.1

Function encodeBase64

  • String, number to base64

    +

    Parameters

    • input: string

      the string to be encoded

      +

    Returns string

      +
    • the BASE64 encoding
    • +
    +

    Since

    1.0.1

    +
\ No newline at end of file diff --git a/functions/encodeUtf8.html b/functions/encodeUtf8.html new file mode 100644 index 00000000..655c0499 --- /dev/null +++ b/functions/encodeUtf8.html @@ -0,0 +1,6 @@ +encodeUtf8 | index.md - v5.21.1

Function encodeUtf8

  • Encoding Utf8

    +

    Parameters

    • string: string

    Returns string

      +
    • the UTF-8 encoding
    • +
    +

    Since

    1.0.1

    +
\ No newline at end of file diff --git a/functions/escape.html b/functions/escape.html new file mode 100644 index 00000000..2a3209f0 --- /dev/null +++ b/functions/escape.html @@ -0,0 +1,9 @@ +escape | index.md - v5.21.1

Function escape

  • Escaping HTML Special Characters

    +

    Parameters

    • string: string

      string with html tags

      +

    Returns string

      +
    • newString
    • +
    +

    Example

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

    Since

    5.5.0

    +
\ No newline at end of file diff --git a/functions/extend.html b/functions/extend.html new file mode 100644 index 00000000..e7393dfe --- /dev/null +++ b/functions/extend.html @@ -0,0 +1,5 @@ +extend | index.md - v5.21.1

Function extend

\ No newline at end of file diff --git a/functions/fileToBase64.html b/functions/fileToBase64.html new file mode 100644 index 00000000..c750045e --- /dev/null +++ b/functions/fileToBase64.html @@ -0,0 +1,7 @@ +fileToBase64 | index.md - v5.21.1

Function fileToBase64

  • file to base64

    +

    Parameters

    • input: File

      file data

      +

    Returns Promise<string | null>

      +
    • base64 string
    • +
    +

    Since

    5.13.0

    +
\ No newline at end of file diff --git a/functions/fillIPv6.html b/functions/fillIPv6.html new file mode 100644 index 00000000..e425a2b2 --- /dev/null +++ b/functions/fillIPv6.html @@ -0,0 +1,8 @@ +fillIPv6 | index.md - v5.21.1

Function fillIPv6

  • Read full IPv6

    +

    Parameters

    • ip: string

    Returns string

      +
    • 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' +
    +

    Since

    2.2.2

    +
\ No newline at end of file diff --git a/functions/fingerprint.html b/functions/fingerprint.html new file mode 100644 index 00000000..32b31057 --- /dev/null +++ b/functions/fingerprint.html @@ -0,0 +1,7 @@ +fingerprint | index.md - v5.21.1

Function fingerprint

  • Generating Browser Fingerprints

    +

    Parameters

    • Optional domain: string

      key string, default: location.host

      +

    Returns null | string

      +
    • fingerprint
    • +
    +

    Since

    5.2.0

    +
\ No newline at end of file diff --git a/functions/fixNumber.html b/functions/fixNumber.html new file mode 100644 index 00000000..d6e991ce --- /dev/null +++ b/functions/fixNumber.html @@ -0,0 +1,10 @@ +fixNumber | index.md - v5.21.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
    • +
    +

    Example

    fixNumber('100.888')
    // 100.88

    fixNumber('100.8', 2)
    // 100.8

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

    Since

    1.0.2

    +
\ No newline at end of file diff --git a/functions/getAppVersion.html b/functions/getAppVersion.html new file mode 100644 index 00000000..8bd453d0 --- /dev/null +++ b/functions/getAppVersion.html @@ -0,0 +1,8 @@ +getAppVersion | index.md - v5.21.1

Function getAppVersion

  • Get the APP version number

    +

    Parameters

    • appName: string

      app name

      +
    • Optional withApp: boolean

      whether to bring the name

      +
    • Optional userAgent: string

      ua, may not be passed, default is navigator.appVersion

      +

    Returns string | boolean | null

    null/true/false

    +

    Deprecated

    please use 'appVersion' instead

    +

    Since

    1.0.1

    +
\ No newline at end of file diff --git a/functions/getCHSLength.html b/functions/getCHSLength.html new file mode 100644 index 00000000..476c3678 --- /dev/null +++ b/functions/getCHSLength.html @@ -0,0 +1,9 @@ +getCHSLength | index.md - v5.21.1

Function getCHSLength

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

    +

    Parameters

    • str: string

      string

      +

    Returns number

      +
    • length
    • +
    +

    Example

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

    Since

    1.0.1

    +
\ No newline at end of file diff --git a/functions/getCache.html b/functions/getCache.html new file mode 100644 index 00000000..ccfa4e4a --- /dev/null +++ b/functions/getCache.html @@ -0,0 +1,9 @@ +getCache | index.md - v5.21.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
    • +
    +

    Example

    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 +
    +

    Since

    1.0.2

    +
\ No newline at end of file diff --git a/functions/getCookie.html b/functions/getCookie.html new file mode 100644 index 00000000..dae15570 --- /dev/null +++ b/functions/getCookie.html @@ -0,0 +1,9 @@ +getCookie | index.md - v5.21.1

Function getCookie

  • Read cookie by name

    +

    Parameters

    • name: string

      cookie name

      +

    Returns any

      +
    • the cookie string
    • +
    +

    Example

    getCookie('data1')
    // 100 +
    +

    Since

    1.0.2

    +
\ No newline at end of file diff --git a/functions/getCookies.html b/functions/getCookies.html new file mode 100644 index 00000000..ce4fa5b2 --- /dev/null +++ b/functions/getCookies.html @@ -0,0 +1,8 @@ +getCookies | index.md - v5.21.1

Function getCookies

  • Read all cookies

    +

    Returns Record<string, string>

      +
    • the cookie values
    • +
    +

    Example

    getCookies()
    // \{ token: 'xxx', name: 'saqqdy' \} +
    +

    Since

    5.6.0

    +
\ No newline at end of file diff --git a/functions/getDirParam.html b/functions/getDirParam.html new file mode 100644 index 00000000..285af0fc --- /dev/null +++ b/functions/getDirParam.html @@ -0,0 +1,8 @@ +getDirParam | index.md - v5.21.1

Function getDirParam

  • Get directory form URL parameters

    +

    Parameters

    • url: string

      pass in the url address

      +

    Returns DirParamType

      +
    • parameter object
    • +
    +

    Deprecated

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

    +

    Since

    1.0.1

    +
\ No newline at end of file diff --git a/functions/getFileType.html b/functions/getFileType.html new file mode 100644 index 00000000..3b759453 --- /dev/null +++ b/functions/getFileType.html @@ -0,0 +1,7 @@ +getFileType | index.md - v5.21.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

    +
    • suffix: string
    • type: "audio" | "video" | "image" | "other" | "word" | "txt" | "excel" | "pdf" | "ppt" | "zip"

    Example

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

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

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

    Since

    5.11.0

    +
\ No newline at end of file diff --git a/functions/getNumber.html b/functions/getNumber.html new file mode 100644 index 00000000..0cc208df --- /dev/null +++ b/functions/getNumber.html @@ -0,0 +1,9 @@ +getNumber | index.md - v5.21.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
    • +
    +

    Example

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

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

    Since

    1.0.1

    +
\ No newline at end of file diff --git a/functions/getOsVersion.html b/functions/getOsVersion.html new file mode 100644 index 00000000..385300ff --- /dev/null +++ b/functions/getOsVersion.html @@ -0,0 +1,12 @@ +getOsVersion | index.md - v5.21.1

Function getOsVersion

  • Get the phone system version

    +

    Parameters

    • osName: string

      system type string Android, iPod, iWatch or iPhone

      +
    • Optional withOS: boolean

      whether to bring the name

      +
    • Optional userAgent: string

      ua, may not be passed, default takes navigator.appVersion

      +

    Returns string | boolean | null

      +
    • null/true/false
    • +
    +

    Example

    getOsVersion('iPhone')
    // '13.2.3'

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

    Deprecated

    please use 'osVersion' instead

    +

    Since

    1.0.1

    +
\ No newline at end of file diff --git a/functions/getProperty.html b/functions/getProperty.html new file mode 100644 index 00000000..a84e0358 --- /dev/null +++ b/functions/getProperty.html @@ -0,0 +1,9 @@ +getProperty | index.md - v5.21.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

      +
    • Optional defaultValue: any

      default value

      +

    Returns any

    result

    +

    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 +
    +

    Since

    2.2.4

    +
  • Type Parameters

    • T extends any[]

    Parameters

    • target: T
    • prop: string | (() => string)
    • Optional defaultValue: any

    Returns any

\ No newline at end of file diff --git a/functions/getQueryParam.html b/functions/getQueryParam.html new file mode 100644 index 00000000..54c0999e --- /dev/null +++ b/functions/getQueryParam.html @@ -0,0 +1,9 @@ +getQueryParam | index.md - v5.21.1

Function getQueryParam

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

    +

    Parameters

    • key: string

      key name

      +

    Returns string | undefined

      +
    • result
    • +
    +

    Example

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

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

    Since

    5.0.0

    +
  • Parameters

    • key: string
    • url: string

    Returns string | undefined

\ No newline at end of file diff --git a/functions/getQueryParams.html b/functions/getQueryParams.html new file mode 100644 index 00000000..24e273fa --- /dev/null +++ b/functions/getQueryParams.html @@ -0,0 +1,9 @@ +getQueryParams | index.md - v5.21.1

Function getQueryParams

  • Get all URL parameters (behind "#")

    +

    Parameters

    • url: string

      pass in the url string

      +

    Returns Record<string, string>

      +
    • result
    • +
    +

    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\} +
    +

    Since

    5.0.0

    +
  • Parameters

    • url: boolean

    Returns Record<string, unknown>

  • Parameters

    • url: string
    • covert: boolean

    Returns Record<string, unknown>

\ No newline at end of file diff --git a/functions/getScrollPosition.html b/functions/getScrollPosition.html new file mode 100644 index 00000000..8cc68a25 --- /dev/null +++ b/functions/getScrollPosition.html @@ -0,0 +1,7 @@ +getScrollPosition | index.md - v5.21.1

Function getScrollPosition

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

    +

    Returns undefined | "bottom" | "top"

      +
    • position
    • +
    +

    Deprecated

    will be removed in the next major release.

    +

    Since

    1.0.2

    +
\ No newline at end of file diff --git a/functions/getSession.html b/functions/getSession.html new file mode 100644 index 00000000..06706cc4 --- /dev/null +++ b/functions/getSession.html @@ -0,0 +1,9 @@ +getSession | index.md - v5.21.1

Function getSession

  • Read sessionStorage

    +

    Parameters

    • name: string

      name

      +

    Returns any

      +
    • sessionStorage
    • +
    +

    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 +
    +

    Since

    1.0.2

    +
\ No newline at end of file diff --git a/functions/getType.html b/functions/getType.html new file mode 100644 index 00000000..f14b6e06 --- /dev/null +++ b/functions/getType.html @@ -0,0 +1,5 @@ +getType | index.md - v5.21.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" | "null" | "array" | "date" | "regexp"

    type

    +

    Since

    1.0.2

    +
\ No newline at end of file diff --git a/functions/getUrlParam.html b/functions/getUrlParam.html new file mode 100644 index 00000000..6402c59f --- /dev/null +++ b/functions/getUrlParam.html @@ -0,0 +1,9 @@ +getUrlParam | index.md - v5.21.1

Function getUrlParam

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

    +

    Parameters

    • key: string

      key name

      +

    Returns string | undefined

      +
    • result
    • +
    +

    Example

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

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

    Since

    5.0.0

    +
  • Parameters

    • key: string
    • url: string

    Returns string | undefined

\ No newline at end of file diff --git a/functions/getUrlParams.html b/functions/getUrlParams.html new file mode 100644 index 00000000..9f6a22bb --- /dev/null +++ b/functions/getUrlParams.html @@ -0,0 +1,9 @@ +getUrlParams | index.md - v5.21.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
    • +
    +

    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\} +
    +

    Since

    5.0.0

    +
  • Parameters

    • url: boolean

    Returns Record<string, unknown>

  • Parameters

    • url: string
    • covert: boolean

    Returns Record<string, unknown>

\ No newline at end of file diff --git a/functions/intersect.html b/functions/intersect.html new file mode 100644 index 00000000..8dab5c4e --- /dev/null +++ b/functions/intersect.html @@ -0,0 +1,9 @@ +intersect | index.md - v5.21.1

Function intersect

  • Find the intersection of multiple arrays

    +

    Type Parameters

    • T = unknown

    Parameters

    • Rest ...args: T[][]

      arguments

      +

    Returns T[]

      +
    • new array
    • +
    +

    Example

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

    Since

    2.2.1

    +
\ No newline at end of file diff --git a/functions/isArray.html b/functions/isArray.html new file mode 100644 index 00000000..9da0efae --- /dev/null +++ b/functions/isArray.html @@ -0,0 +1,9 @@ +isArray | index.md - v5.21.1

Function isArray

  • Determine if it is an array

    +

    Parameters

    • target: any

      any target

      +

    Returns target is any[]

      +
    • target is Array
    • +
    +

    Example

    isArray([]) // true
    +
    +

    Since

    1.0.2

    +
\ No newline at end of file diff --git a/functions/isDarkMode.html b/functions/isDarkMode.html new file mode 100644 index 00000000..2a98edff --- /dev/null +++ b/functions/isDarkMode.html @@ -0,0 +1,8 @@ +isDarkMode | index.md - v5.21.1

Function isDarkMode

  • Determine if dark color mode

    +

    Returns boolean

      +
    • result
    • +
    +

    Example

    isDarkMode() // true
    +
    +

    Since

    5.5.0

    +
\ No newline at end of file diff --git a/functions/isDate.html b/functions/isDate.html new file mode 100644 index 00000000..5cfa474a --- /dev/null +++ b/functions/isDate.html @@ -0,0 +1,9 @@ +isDate | index.md - v5.21.1

Function isDate

  • Determine if target is Date

    +

    Parameters

    • target: any

      any target

      +

    Returns target is Date

      +
    • target is Date
    • +
    +

    Example

    const now = new Date()

    isDate(now)
    // true +
    +

    Since

    5.15.0

    +
\ No newline at end of file diff --git a/functions/isDigitals.html b/functions/isDigitals.html new file mode 100644 index 00000000..efe943ee --- /dev/null +++ b/functions/isDigitals.html @@ -0,0 +1,8 @@ +isDigitals | index.md - v5.21.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
    • +
    +

    Deprecated

    will be removed in the next major release.

    +

    Since

    1.0.1

    +
\ No newline at end of file diff --git a/functions/isEqual.html b/functions/isEqual.html new file mode 100644 index 00000000..14575b69 --- /dev/null +++ b/functions/isEqual.html @@ -0,0 +1,10 @@ +isEqual | index.md - v5.21.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
    • +
    +

    Example

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

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

    isEqual(NaN, NaN)
    // true +
    +

    Since

    5.12.0

    +
\ No newline at end of file diff --git a/functions/isExitsFunction.html b/functions/isExitsFunction.html new file mode 100644 index 00000000..6ac16429 --- /dev/null +++ b/functions/isExitsFunction.html @@ -0,0 +1,9 @@ +isExitsFunction | index.md - v5.21.1

Function isExitsFunction

  • The presence or absence of the specified function

    +

    Parameters

    • name: string

      incoming function name

      +

    Returns boolean

      +
    • true/false
    • +
    +

    Example

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

    Since

    1.0.1

    +
\ No newline at end of file diff --git a/functions/isExitsVariable.html b/functions/isExitsVariable.html new file mode 100644 index 00000000..4c577929 --- /dev/null +++ b/functions/isExitsVariable.html @@ -0,0 +1,9 @@ +isExitsVariable | index.md - v5.21.1

Function isExitsVariable

  • The presence or absence of the specified variable

    +

    Parameters

    • name: string

      variable name

      +

    Returns boolean

      +
    • true/false
    • +
    +

    Example

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

    Since

    1.0.1

    +
\ No newline at end of file diff --git a/functions/isIterable.html b/functions/isIterable.html new file mode 100644 index 00000000..f13098d0 --- /dev/null +++ b/functions/isIterable.html @@ -0,0 +1,9 @@ +isIterable | index.md - v5.21.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
    • +
    +

    Example

    isIterable([]) // true
    +
    +

    Since

    5.7.0

    +
\ No newline at end of file diff --git a/functions/isObject.html b/functions/isObject.html new file mode 100644 index 00000000..f912018f --- /dev/null +++ b/functions/isObject.html @@ -0,0 +1,9 @@ +isObject | index.md - v5.21.1

Function isObject

  • Determine if target is an object

    +

    Parameters

    • target: any

      any target

      +

    Returns target is Object

      +
    • target is Object
    • +
    +

    Example

    isObject({}) // true
    +
    +

    Since

    5.0.0

    +
\ No newline at end of file diff --git a/functions/isPlainObject.html b/functions/isPlainObject.html new file mode 100644 index 00000000..82df888d --- /dev/null +++ b/functions/isPlainObject.html @@ -0,0 +1,9 @@ +isPlainObject | index.md - v5.21.1

Function isPlainObject

  • Determine if target is an plain object

    +

    Parameters

    • target: unknown

      any target

      +

    Returns target is PlainObject

      +
    • target is plain Object
    • +
    +

    Example

    isPlainObject({}) // true
    isPlainObject(window) // false +
    +

    Since

    5.0.0

    +
\ No newline at end of file diff --git a/functions/isRegExp.html b/functions/isRegExp.html new file mode 100644 index 00000000..96795f76 --- /dev/null +++ b/functions/isRegExp.html @@ -0,0 +1,9 @@ +isRegExp | index.md - v5.21.1

Function isRegExp

  • Determine if target is RegExp

    +

    Parameters

    • target: any

      any target

      +

    Returns target is RegExp

      +
    • target is RegExp
    • +
    +

    Example

    isRegExp(/\d/) // true
    +
    +

    Since

    5.15.0

    +
\ No newline at end of file diff --git a/functions/isWindow.html b/functions/isWindow.html new file mode 100644 index 00000000..823a5742 --- /dev/null +++ b/functions/isWindow.html @@ -0,0 +1,9 @@ +isWindow | index.md - v5.21.1

Function isWindow

  • Determine if target is an window object

    +

    Parameters

    • target: any

      any

      +

    Returns target is Window

      +
    • target is Window
    • +
    +

    Example

    isWindow({}) // false
    isWindow(window) // true +
    +

    Since

    5.0.0

    +
\ No newline at end of file diff --git a/functions/loadSource.html b/functions/loadSource.html new file mode 100644 index 00000000..2237cdbe --- /dev/null +++ b/functions/loadSource.html @@ -0,0 +1,7 @@ +loadSource | index.md - v5.21.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
    • +
    +
\ No newline at end of file diff --git a/functions/mapTemplate.html b/functions/mapTemplate.html new file mode 100644 index 00000000..4ba2456a --- /dev/null +++ b/functions/mapTemplate.html @@ -0,0 +1,10 @@ +mapTemplate | index.md - v5.21.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) => unknown)

      Template data of map function

      +

    Returns string

      +
    • result
    • +
    +

    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 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. +
    +

    Since

    5.9.0

    +
\ No newline at end of file diff --git a/functions/minus.html b/functions/minus.html new file mode 100644 index 00000000..e62e1f1c --- /dev/null +++ b/functions/minus.html @@ -0,0 +1,9 @@ +minus | index.md - v5.21.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

    • Rest ...args: T[][]

      arguments

      +

    Returns T[]

      +
    • new array
    • +
    +

    Example

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

    Since

    2.2.1

    +
\ No newline at end of file diff --git a/functions/mountCss.html b/functions/mountCss.html new file mode 100644 index 00000000..56bbd344 --- /dev/null +++ b/functions/mountCss.html @@ -0,0 +1,7 @@ +mountCss | index.md - v5.21.1

Function mountCss

  • Dynamic loading of css link resources

    +

    Parameters

    • src: string

      resource address

      +
    • Optional option: CssOptions

      parameters: attrs, props, force

      +

    Returns Promise<boolean>

      +
    • result
    • +
    +
\ No newline at end of file diff --git a/functions/mountImg.html b/functions/mountImg.html new file mode 100644 index 00000000..b126033b --- /dev/null +++ b/functions/mountImg.html @@ -0,0 +1,7 @@ +mountImg | index.md - v5.21.1

Function mountImg

  • Dynamic loading of image resources

    +

    Parameters

    • src: string

      resource address

      +
    • Optional option: ImgOptions

      parameters: attrs, props, force

      +

    Returns Promise<boolean | string>

      +
    • result
    • +
    +
\ No newline at end of file diff --git a/functions/mountJs.html b/functions/mountJs.html new file mode 100644 index 00000000..670fc82c --- /dev/null +++ b/functions/mountJs.html @@ -0,0 +1,7 @@ +mountJs | index.md - v5.21.1

Function mountJs

  • Dynamic loading of js linked resources

    +

    Parameters

    • src: string

      resource address

      +
    • Optional option: JsOptions

      parameters: attrs, props, force

      +

    Returns Promise<boolean>

      +
    • result
    • +
    +
\ No newline at end of file diff --git a/functions/mountStyle.html b/functions/mountStyle.html new file mode 100644 index 00000000..7fc8c4df --- /dev/null +++ b/functions/mountStyle.html @@ -0,0 +1,6 @@ +mountStyle | index.md - v5.21.1

Function mountStyle

  • Dynamic loading of css styles

    +

    Parameters

    • css: string
    • Optional option: StyleOptions

      parameters: attrs, props

      +

    Returns Promise<boolean>

      +
    • results
    • +
    +
\ No newline at end of file diff --git a/functions/nextIndex.html b/functions/nextIndex.html new file mode 100644 index 00000000..465605ce --- /dev/null +++ b/functions/nextIndex.html @@ -0,0 +1,10 @@ +nextIndex | index.md - v5.21.1

Function nextIndex

  • Return the next zIndex value

    +

    Parameters

    • min: number = 5000

      optional, minimum value

      +
    • max: number = 10000

      optional, maximum value

      +

    Returns number

      +
    • number
    • +
    +

    Example

    nextIndex()
    // 1

    nextIndex(1000)
    // 1001

    nextIndex(10, 100)
    // 100 +
    +

    Since

    1.0.2

    +
\ No newline at end of file diff --git a/functions/nextVersion.html b/functions/nextVersion.html new file mode 100644 index 00000000..8b8b1fa3 --- /dev/null +++ b/functions/nextVersion.html @@ -0,0 +1,11 @@ +nextVersion | index.md - v5.21.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)

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

      optional, version type

      +
    • preid: string = ''

      optional, prerelease id

      +

    Returns string

      +
    • new version
    • +
    +

    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 +
    +

    Since

    5.10.0

    +
\ No newline at end of file diff --git a/functions/openUrl.html b/functions/openUrl.html new file mode 100644 index 00000000..202789f0 --- /dev/null +++ b/functions/openUrl.html @@ -0,0 +1,4 @@ +openUrl | index.md - v5.21.1

Function openUrl

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

    +

    Parameters

    • url: string

      link

      +

    Returns void

    Since

    1.0.6

    +
\ No newline at end of file diff --git a/functions/osVersion-1.html b/functions/osVersion-1.html new file mode 100644 index 00000000..c5f63897 --- /dev/null +++ b/functions/osVersion-1.html @@ -0,0 +1,7 @@ +osVersion | index.md - v5.21.1

Function osVersion

  • Get the system name and version

    +

    Parameters

    • Optional ua: string

      ua or any ua like string, may not be passed, default is navigator.userAgent

      +

    Returns OsVersion | null

    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' \}
    +
    +

    Since

    5.1.0

    +
\ No newline at end of file diff --git a/functions/parseUrlParam.html b/functions/parseUrlParam.html new file mode 100644 index 00000000..481ed9b7 --- /dev/null +++ b/functions/parseUrlParam.html @@ -0,0 +1,8 @@ +parseUrlParam | index.md - v5.21.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

    +

    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"\} +
    +

    Since

    5.0.0

    +
\ No newline at end of file diff --git a/functions/preloader.html b/functions/preloader.html new file mode 100644 index 00000000..bff0b894 --- /dev/null +++ b/functions/preloader.html @@ -0,0 +1,4 @@ +preloader | index.md - v5.21.1

Function preloader

  • Image preloading

    +

    Parameters

    • images: string

      images url

      +

    Returns HTMLImageElement

    Since

    5.5.0

    +
  • Parameters

    • images: string[]

    Returns Record<string, HTMLImageElement>

\ No newline at end of file diff --git a/functions/promiseFactory.html b/functions/promiseFactory.html new file mode 100644 index 00000000..7624515e --- /dev/null +++ b/functions/promiseFactory.html @@ -0,0 +1,10 @@ +promiseFactory | index.md - v5.21.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

      +
        • (): Promise<any>
        • Returns Promise<any>

    Returns T & PromiseLike<T>

      +
    • result
    • +
    +

    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 +
    +

    Since

    5.10.0

    +
\ No newline at end of file diff --git a/functions/punctualTimer.html b/functions/punctualTimer.html new file mode 100644 index 00000000..cf2f0bc8 --- /dev/null +++ b/functions/punctualTimer.html @@ -0,0 +1,8 @@ +punctualTimer | index.md - v5.21.1

Function punctualTimer

  • punctual setInterval

    +

    Type Parameters

    • TArgs extends any[]

    Parameters

    • handler: ((args) => void)

      A function to be executed after the timer expires.

      +
        • (args): void
        • Parameters

          • args: void

          Returns void

    • 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.

      +
    • Optional args: TArgs

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

      +

    Returns void

    Example

    const printDate = () => console.log(new Date())
    punctualTimer(printDate, 1000) +
    +

    Since

    5.18.0

    +
  • Type Parameters

    • TArgs extends any[]

    Parameters

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

          Returns void

    • delay: number
    • Optional __namedParameters: TArgs

    Returns void

\ No newline at end of file diff --git a/functions/randomColor.html b/functions/randomColor.html new file mode 100644 index 00000000..0f6b106c --- /dev/null +++ b/functions/randomColor.html @@ -0,0 +1,10 @@ +randomColor | index.md - v5.21.1

Function randomColor

  • Generate random hexadecimal colors

    +

    Parameters

    • Optional min: number | [number, number, number]

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

      +
    • Optional max: number | [number, number, number]

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

      +

    Returns string

      +
    • result
    • +
    +

    Example

    randomColor()
    // #bf444b

    randomColor(200)
    // #d6e9d7

    randomColor(200, 255)
    // #d3f9e4

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

    Since

    5.5.0

    +
\ No newline at end of file diff --git a/functions/randomNumber.html b/functions/randomNumber.html new file mode 100644 index 00000000..2f7efeb3 --- /dev/null +++ b/functions/randomNumber.html @@ -0,0 +1,10 @@ +randomNumber | index.md - v5.21.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
    • +
    +

    Example

    randomNumber()
    // 8

    randomNumber(0.1, 0.9)
    // 0.8 +
    +

    Since

    5.0.0

    +
\ No newline at end of file diff --git a/functions/randomNumbers.html b/functions/randomNumbers.html new file mode 100644 index 00000000..1f0051c2 --- /dev/null +++ b/functions/randomNumbers.html @@ -0,0 +1,10 @@ +randomNumbers | index.md - v5.21.1

Function randomNumbers

  • Generate n random integers that sum to a fixed sum

    +

    Parameters

    • Optional n: number

      Number of generated integers, default: 1

      +
    • Optional sum: number

      Sum of generated integers, default: 100

      +
    • Optional noZero: boolean

    Returns number[]

      +
    • numbers
    • +
    +

    Example

    randomNumbers()
    // [8]

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

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

    Since

    5.4.0

    +
\ No newline at end of file diff --git a/functions/randomString.html b/functions/randomString.html new file mode 100644 index 00000000..f960ab71 --- /dev/null +++ b/functions/randomString.html @@ -0,0 +1,10 @@ +randomString | index.md - v5.21.1

Function randomString

  • Get a random string

    +

    Parameters

    • Optional len: number

      the length of the random string that needs to be obtained

      +
    • Optional options: boolean | RandomStringOptions

      optional, randomString options

      +

    Returns string

      +
    • random 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 +
    +

    Since

    5.0.0

    +
  • Parameters

    Returns string

\ No newline at end of file diff --git a/functions/removeEvent.html b/functions/removeEvent.html new file mode 100644 index 00000000..20a3b01d --- /dev/null +++ b/functions/removeEvent.html @@ -0,0 +1,6 @@ +removeEvent | index.md - v5.21.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

    Since

    1.0.2

    +
\ No newline at end of file diff --git a/functions/safeParse.html b/functions/safeParse.html new file mode 100644 index 00000000..806257c8 --- /dev/null +++ b/functions/safeParse.html @@ -0,0 +1,9 @@ +safeParse | index.md - v5.21.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
    • +
    +

    Example

    safeParse('100')
    // 100

    safeParse('{"a":"undefined","b":"NaN","c":"Infinity","d":"9007199254740993"}')
    // { b: NaN, c: Infinity, d: 9007199254740993n } +
    +
\ No newline at end of file diff --git a/functions/safeStringify.html b/functions/safeStringify.html new file mode 100644 index 00000000..9c529be4 --- /dev/null +++ b/functions/safeStringify.html @@ -0,0 +1,9 @@ +safeStringify | index.md - v5.21.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
    • +
    +

    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"} +
    +
\ No newline at end of file diff --git a/functions/searchObject.html b/functions/searchObject.html new file mode 100644 index 00000000..545022c7 --- /dev/null +++ b/functions/searchObject.html @@ -0,0 +1,10 @@ +searchObject | index.md - v5.21.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
    • +
    +

    Since

    5.0.0

    +
\ No newline at end of file diff --git a/functions/setCache.html b/functions/setCache.html new file mode 100644 index 00000000..785b8be0 --- /dev/null +++ b/functions/setCache.html @@ -0,0 +1,8 @@ +setCache | index.md - v5.21.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

      +
    • Optional seconds: string | number

      cache time (seconds)

      +

    Returns void

    Example

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

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

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

    Since

    1.0.2

    +
\ No newline at end of file diff --git a/functions/setCookie.html b/functions/setCookie.html new file mode 100644 index 00000000..38a20922 --- /dev/null +++ b/functions/setCookie.html @@ -0,0 +1,10 @@ +setCookie | index.md - v5.21.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

    Example

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

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

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

    Since

    1.0.2

    +
\ No newline at end of file diff --git a/functions/setProperty.html b/functions/setProperty.html new file mode 100644 index 00000000..60a75556 --- /dev/null +++ b/functions/setProperty.html @@ -0,0 +1,10 @@ +setProperty | index.md - v5.21.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
    • +
    +

    Example

    const target = {
    a: 1,
    b: [{
    c: 2
    }]
    }

    setProperty(target, 'a', 2)

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

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

    Since

    2.7.0

    +
\ No newline at end of file diff --git a/functions/setSession.html b/functions/setSession.html new file mode 100644 index 00000000..026e558b --- /dev/null +++ b/functions/setSession.html @@ -0,0 +1,8 @@ +setSession | index.md - v5.21.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

      +
    • Optional seconds: string | number

      the valid time

      +

    Returns void

    Example

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

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

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

    Since

    1.0.2

    +
\ No newline at end of file diff --git a/functions/shuffle.html b/functions/shuffle.html new file mode 100644 index 00000000..e735dce9 --- /dev/null +++ b/functions/shuffle.html @@ -0,0 +1,10 @@ +shuffle | index.md - v5.21.1

Function shuffle

  • shuffling algorithm, Reordering arrays or strings

    +

    Parameters

    • value: string

      arrays or strings

      +
    • Optional size: number

      new array or string length

      +

    Returns string

      +
    • result
    • +
    +

    Example

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

    shuffle(str)
    // cdbse

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

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

    Since

    5.4.0

    +
  • Type Parameters

    • T extends unknown[] = unknown[]

    Parameters

    • value: T
    • Optional size: number

    Returns T

\ No newline at end of file diff --git a/functions/sortPinyin.html b/functions/sortPinyin.html new file mode 100644 index 00000000..01e7f1ad --- /dev/null +++ b/functions/sortPinyin.html @@ -0,0 +1,11 @@ +sortPinyin | index.md - v5.21.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
    • +
    +

    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, "阿吧", "啊我", "波拉" ] +
    +

    Since

    5.14.0

    +
\ No newline at end of file diff --git a/functions/sorter.html b/functions/sorter.html new file mode 100644 index 00000000..add3e9f1 --- /dev/null +++ b/functions/sorter.html @@ -0,0 +1,10 @@ +sorter | index.md - v5.21.1

Function sorter

  • Sorter factory function

    +

    Parameters

    • Optional locales: string | string[]

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

      +
    • Optional options: CollatorOptions

      An object adjusting the output format.

      +

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

      +
    • compare function
    • +
    +
      • <T, P>(a, b): number
      • Type Parameters

        • T = string
        • P = string

        Parameters

        Returns number

    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, "阿吧", "啊我", "波拉" ] +
    +

    Since

    5.14.0

    +
\ No newline at end of file diff --git a/functions/spliceUrlParam.html b/functions/spliceUrlParam.html new file mode 100644 index 00000000..2522bfa0 --- /dev/null +++ b/functions/spliceUrlParam.html @@ -0,0 +1,10 @@ +spliceUrlParam | index.md - v5.21.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
    • +
    +

    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\}', true)
    // ?key1=100&key2=true&key3=&key4=

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

    Since

    5.3.0

    +
\ No newline at end of file diff --git a/functions/stopBubble.html b/functions/stopBubble.html new file mode 100644 index 00000000..6cd44a41 --- /dev/null +++ b/functions/stopBubble.html @@ -0,0 +1,7 @@ +stopBubble | index.md - v5.21.1

Function stopBubble

  • Block bubbling

    +

    Parameters

    • e: Event

      dom's event object

      +

    Returns boolean

      +
    • false
    • +
    +

    Since

    1.0.2

    +
\ No newline at end of file diff --git a/functions/stopDefault.html b/functions/stopDefault.html new file mode 100644 index 00000000..bcf863a6 --- /dev/null +++ b/functions/stopDefault.html @@ -0,0 +1,7 @@ +stopDefault | index.md - v5.21.1

Function stopDefault

  • Block default events

    +

    Parameters

    • e: Event

      dom's event object

      +

    Returns boolean

      +
    • false
    • +
    +

    Since

    1.0.2

    +
\ No newline at end of file diff --git a/functions/svgToBlob.html b/functions/svgToBlob.html new file mode 100644 index 00000000..02d99024 --- /dev/null +++ b/functions/svgToBlob.html @@ -0,0 +1,7 @@ +svgToBlob | index.md - v5.21.1

Function svgToBlob

  • svg to blob

    +

    Parameters

    • input: string

      svg string

      +

    Returns Blob

      +
    • blob
    • +
    +

    Since

    5.13.0

    +
\ No newline at end of file diff --git a/functions/toThousands.html b/functions/toThousands.html new file mode 100644 index 00000000..d4d86d10 --- /dev/null +++ b/functions/toThousands.html @@ -0,0 +1,9 @@ +toThousands | index.md - v5.21.1

Function toThousands

  • Digital thousandths division

    +

    Parameters

    • num: string | number

      input number

      +

    Returns string

      +
    • the split string
    • +
    +

    Example

    toThousands(10000000222)
    // 10,000,000,222

    toThousands(100.2232323)
    // 100.2232323

    toThousands(null)
    // '' +
    +

    Since

    3.0.0

    +
\ No newline at end of file diff --git a/functions/trim.html b/functions/trim.html new file mode 100644 index 00000000..7aeb0375 --- /dev/null +++ b/functions/trim.html @@ -0,0 +1,8 @@ +trim | index.md - v5.21.1

Function trim

  • Remove leading and trailing spaces from strings

    +

    Parameters

    • string: string

      pass in the string

      +

    Returns string

      +
    • the new string
    • +
    +

    Deprecated

    will be removed in the next major release.

    +

    Since

    1.0.1

    +
\ No newline at end of file diff --git a/functions/unescape.html b/functions/unescape.html new file mode 100644 index 00000000..f2713f6e --- /dev/null +++ b/functions/unescape.html @@ -0,0 +1,9 @@ +unescape | index.md - v5.21.1

Function unescape

  • Restore HTML Special Characters

    +

    Parameters

    • string: string

      string

      +

    Returns string

      +
    • newString
    • +
    +

    Example

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

    Since

    5.5.0

    +
\ No newline at end of file diff --git a/functions/union.html b/functions/union.html new file mode 100644 index 00000000..c592fc46 --- /dev/null +++ b/functions/union.html @@ -0,0 +1,9 @@ +union | index.md - v5.21.1

Function union

  • Find the concatenation of multiple arrays

    +

    Type Parameters

    • T = unknown

    Parameters

    • Rest ...args: T[][]

      arguments

      +

    Returns T[]

      +
    • new array
    • +
    +

    Example

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

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

    Since

    2.2.1

    +
\ No newline at end of file diff --git a/functions/unique.html b/functions/unique.html new file mode 100644 index 00000000..b089543a --- /dev/null +++ b/functions/unique.html @@ -0,0 +1,9 @@ +unique | index.md - v5.21.1

Function unique

  • Array de-duplication

    +

    Type Parameters

    • T = unknown

    Parameters

    • arr: T[]

      array data

      +

    Returns T[]

      +
    • new array
    • +
    +

    Example

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

    Since

    2.2.1

    +
\ No newline at end of file diff --git a/functions/upperFirst.html b/functions/upperFirst.html new file mode 100644 index 00000000..db79d890 --- /dev/null +++ b/functions/upperFirst.html @@ -0,0 +1,9 @@ +upperFirst | index.md - v5.21.1

Function upperFirst

  • First letter capitalized

    +

    Parameters

    • string: string

      the string to be converted

      +

    Returns string

      +
    • the converted string
    • +
    +

    Example

    upperFirst('saqqdy') // Saqqdy
    +
    +

    Since

    1.0.1

    +
\ No newline at end of file diff --git a/functions/urlToBlob.html b/functions/urlToBlob.html new file mode 100644 index 00000000..0d2a5de1 --- /dev/null +++ b/functions/urlToBlob.html @@ -0,0 +1,7 @@ +urlToBlob | index.md - v5.21.1

Function urlToBlob

  • url to blob

    +

    Parameters

    • input: string

      url

      +

    Returns Promise<Blob | null>

      +
    • blob
    • +
    +

    Since

    5.13.0

    +
\ No newline at end of file diff --git a/functions/uuid.html b/functions/uuid.html new file mode 100644 index 00000000..4d78955b --- /dev/null +++ b/functions/uuid.html @@ -0,0 +1,8 @@ +uuid | index.md - v5.21.1

Function uuid

  • Browser-side generation of uuid, using v4 method

    +

    Returns string

      +
    • uuid
    • +
    +

    Example

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

    Since

    1.0.9

    +
\ No newline at end of file diff --git a/functions/waiting.html b/functions/waiting.html new file mode 100644 index 00000000..df9ae0dd --- /dev/null +++ b/functions/waiting.html @@ -0,0 +1,5 @@ +waiting | index.md - v5.21.1

Function waiting

  • waiting for a while

    +

    Parameters

    • milliseconds: number

      waiting time (milliseconds)

      +
    • throwOnTimeout: boolean = false

      throw on timeout

      +

    Returns Promise<void>

    Since

    5.5.0

    +
\ No newline at end of file diff --git a/functions/windowSize.html b/functions/windowSize.html new file mode 100644 index 00000000..f4990b36 --- /dev/null +++ b/functions/windowSize.html @@ -0,0 +1,8 @@ +windowSize | index.md - v5.21.1

Function windowSize

\ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 00000000..2fd53b4f --- /dev/null +++ b/index.html @@ -0,0 +1,5539 @@ +index.md - v5.21.1

index.md - v5.21.1

+ +

js-cool

Collection of common JavaScript / TypeScript utilities

+

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

+

Sonar

+
+ +
+ +

DocumentationChange Log

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
      • +
      • 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
  • +
+

Installation

# use pnpm
pnpm install js-cool

## use npm
npm install --save js-cool +
+

Usage

ES6 module

import { osVersion } from 'js-cool'

osVersion() +
+

Node.js require

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

osVersion() +
+

Using unpkg CDN

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

API Reference

Global Parameters

client

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
} +
+

pattern

Collection of common regular expressions

+
    +
  • 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
} +
+

Extras for String & Array & Object & Function

clearAttr

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
+
+

clearHtml

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
+
+

escape

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
+
+

unescape

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
+
+

getNumber

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
+
+

camel2Dash

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
+
+

dash2Camel

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
+
+

randomColor

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 +
+

randomNumber

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
+
+

randomNumbers

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[]
+
+

randomString

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
} +
+

shuffle

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 +
+

fingerprint

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
+
+

getCHSLength

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
+
+

cutCHSString

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
+
+

upperFirst

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

isDigitals

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
+
+

isExitsFunction

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
+
+

isExitsVariable

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
+
+

isEqual

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
+
+

isWindow

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
+
+

isPlainObject

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 +
+

isDarkMode

Determine if dark color mode

+
    +
  • Since: 5.5.0

    +
  • +
  • Arguments: none

    +
  • +
  • Returns: boolean

    +
  • +
  • Example:

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

isObject

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
+
+

isDate

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
+
+

isRegExp

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
+
+

isArray

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[]
+
+

isIterable

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>
+
+

inBrowser

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
+
+

inNodeJs

Determine if it is running on node.js

+
    +
  • Since: 5.13.0

    +
  • +
  • Arguments: none

    +
  • +
  • Returns: boolean

    +
  • +
  • Example:

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

windowSize

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 +
+

getAppVersion

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, may not be passedstring-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 +
+

appVersion

Get the app version number

+
    +
  • Since: 5.1.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
appNameapp namestring-true-
uaua or any ua like string, may not be passedstring-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 +
+

getOsVersion

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, may not be passedstring-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 +
+

osVersion

get the system version

+
    +
  • Since: 5.1.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
uaua or any ua like string, may not be passedstring-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'
version: string
}

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

browserVersion

Get the browser name and version

+
    +
  • Since: 5.2.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
uaua or any ua like string, may not be passedstring-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: 'Windows' | 'MacOS' | 'Android' | 'iOS' | 'WindowsPhone' | 'Debian' | 'WebOS'
version: string
}

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

compareVersion

+

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
+
+

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)

+
    +
  • 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>
+
+

spliceUrlParam

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 }, 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
} +
+

safeParse

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
+
+

safeStringify

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
+
+

getDirParam

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 +
+

getQueryParam

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 +
+

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)

+
    +
  • 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
+
+

getUrlParam

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 +
+

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)

+
    +
  • 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
+
+

localStorage & sessionStorage & Cookie

getCache

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
+
+

setCache

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
+
+

delCache

Delete localStorage

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namecache key namestring-true-
+
    +
  • Returns: void

    +
  • +
  • Example:

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

getSession

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
+
+

setSession

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
+
+

delSession

Delete sessionStorage

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namesession key namestring-true-
+
    +
  • Returns: void

    +
  • +
  • Example:

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

getCookie

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
+
+

getCookies

Get all cookies

+
    +
  • Since: 5.6.0

    +
  • +
  • Arguments: 'none'

    +
  • +
  • Returns: object

    +
  • +
  • Example:

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

setCookie

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 +
+

delCookie

Delete cookie

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namecookie key namestring-true-
+
    +
  • Returns: void

    +
  • +
  • Example:

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

Base64 & UTF8

encodeBase64

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
+
+

decodeBase64

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
+
+

encodeUtf8

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
+
+

decodeUtf8

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
+
+

Events

stopBubble

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
+
+

stopDefault

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
+
+

addEvent

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

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
+
+

getScrollPosition

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
+
+

Utilities

nextIndex

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
+
+

nextVersion

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 +
+

punctualTimer

punctual setInterval

+
    +
  • 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: void

    +
  • +
  • Example:

    +
  • +
+
const printDate = () => console.log(new Date())
punctualTimer(printDate, 1000) +
+
    +
  • Types:
  • +
+
declare function punctualTimer<TArgs extends any[]>(
handler: (args: void) => void,
delay: number,
[...args]?: TArgs
): void
declare function punctualTimer<TArgs extends any[]>(
handler: (...args: TArgs) => void,
delay: number,
[...args]?: TArgs
): void +
+

promiseFactory

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> +
+

fixNumber

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
+
+

mapTemplate

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 +
+

extend

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> +
+

clone

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
+
+

delay

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
} +
+

getType

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' +
+

getFileType

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

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 +
+

sortPinyin

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 +
+

cleanData

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
+
+

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. +
+
    +
  • 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
+
+

searchObject

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[] +
+

openUrl

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

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
+
+

toThousands

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
+
+

all

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
+
+

any

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
+
+

uuid

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
+
+

CSVToArray

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[][]
+
+

arrayToCSV

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
+
+

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.

+
    +
  • 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[]
+
+

JSONToCSV

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
+
+

RGBToHex

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
+
+

intersect

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[]
+
+

union

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[]
+
+

minus

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[]
+
+

complement

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[]
+
+

contains

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
+
+

unique

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[]
+
+

fillIPv6

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
+
+

getProperty

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 +
+

setProperty

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 +
+

loadSource

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
} +
+

mountCss

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> +
+

mountImg

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> +
+

mountJs

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'
> +
+

mountStyle

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
} +
+

preloader

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> +
+

waiting

+

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>
+
+

awaitTo

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]>
} +
+

Blob arrayBuffer base64 file blobUrl

arrayBufferToBase64

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
+
+

arrayBufferToBlob

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
+
+

base64ToArrayBuffer

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
+
+

base64ToBlob

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
+
+

base64ToFile

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
+
+

blobToArrayBuffer

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>
+
+

blobToBase64

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>
+
+

blobToUrl

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
+
+

fileToBase64

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>
+
+

svgToBlob

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
+
+

urlToBlob

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>
+
+

Support & Issues

Please open an issue here.

+

License

MIT

+
\ No newline at end of file diff --git a/interfaces/AnyFunction.html b/interfaces/AnyFunction.html new file mode 100644 index 00000000..6e4153ff --- /dev/null +++ b/interfaces/AnyFunction.html @@ -0,0 +1 @@ +AnyFunction | index.md - v5.21.1

Interface AnyFunction

interface AnyFunction ((...args) => any)

Hierarchy (view full)

  • Parameters

    • Rest ...args: any[]

    Returns any

\ No newline at end of file diff --git a/interfaces/ArrayOne.html b/interfaces/ArrayOne.html new file mode 100644 index 00000000..ae6ce5d6 --- /dev/null +++ b/interfaces/ArrayOne.html @@ -0,0 +1,2 @@ +ArrayOne | index.md - v5.21.1

Interface ArrayOne<T>

interface ArrayOne<T> {
    0: T;
}

Type Parameters

  • T

Properties

0 +

Properties

0: T
\ No newline at end of file diff --git a/interfaces/BrowserVersion.html b/interfaces/BrowserVersion.html new file mode 100644 index 00000000..cd893d0c --- /dev/null +++ b/interfaces/BrowserVersion.html @@ -0,0 +1,3 @@ +BrowserVersion | index.md - v5.21.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
\ No newline at end of file diff --git a/interfaces/DirParamType.html b/interfaces/DirParamType.html new file mode 100644 index 00000000..41d25e60 --- /dev/null +++ b/interfaces/DirParamType.html @@ -0,0 +1,3 @@ +DirParamType | index.md - v5.21.1

Interface DirParamType

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

Properties

Properties

host?: string
path?: string[]
\ No newline at end of file diff --git a/interfaces/JSONArray.html b/interfaces/JSONArray.html new file mode 100644 index 00000000..76f64dc8 --- /dev/null +++ b/interfaces/JSONArray.html @@ -0,0 +1,220 @@ +JSONArray | index.md - v5.21.1

Interface JSONArray

interface JSONArray {
    [unscopables]: {
        [unscopables]?: boolean;
        length?: boolean;
        [iterator]?: any;
        at?: any;
        concat?: any;
        copyWithin?: any;
        entries?: any;
        every?: any;
        fill?: any;
        filter?: any;
        find?: any;
        findIndex?: any;
        findLast?: any;
        findLastIndex?: any;
        flat?: any;
        flatMap?: any;
        forEach?: any;
        includes?: any;
        indexOf?: any;
        join?: any;
        keys?: any;
        lastIndexOf?: any;
        map?: any;
        pop?: any;
        push?: any;
        reduce?: any;
        reduceRight?: any;
        reverse?: any;
        shift?: any;
        slice?: any;
        some?: any;
        sort?: any;
        splice?: any;
        toLocaleString?: any;
        toReversed?: any;
        toSorted?: any;
        toSpliced?: any;
        toString?: any;
        unshift?: any;
        values?: any;
        with?: any;
    };
    length: number;
    [iterator](): IterableIterator<JSONValue>;
    at(index): JSONValue;
    concat(...items): JSONValue[];
    concat(...items): JSONValue[];
    copyWithin(target, start, end?): this;
    entries(): IterableIterator<[number, JSONValue]>;
    every<S>(predicate, thisArg?): this is S[];
    every(predicate, thisArg?): boolean;
    fill(value, start?, end?): this;
    filter<S>(predicate, thisArg?): S[];
    filter(predicate, thisArg?): JSONValue[];
    find<S>(predicate, thisArg?): undefined | S;
    find(predicate, thisArg?): JSONValue;
    findIndex(predicate, thisArg?): number;
    findLast<S>(predicate, thisArg?): undefined | S;
    findLast(predicate, thisArg?): JSONValue;
    findLastIndex(predicate, thisArg?): number;
    flat<A, D>(this, depth?): FlatArray<A, D>[];
    flatMap<U, This>(callback, thisArg?): U[];
    forEach(callbackfn, thisArg?): void;
    includes(searchElement, fromIndex?): boolean;
    indexOf(searchElement, fromIndex?): number;
    join(separator?): string;
    keys(): IterableIterator<number>;
    lastIndexOf(searchElement, fromIndex?): number;
    map<U>(callbackfn, thisArg?): U[];
    pop(): JSONValue;
    push(...items): number;
    reduce(callbackfn): JSONValue;
    reduce(callbackfn, initialValue): JSONValue;
    reduce<U>(callbackfn, initialValue): U;
    reduceRight(callbackfn): JSONValue;
    reduceRight(callbackfn, initialValue): JSONValue;
    reduceRight<U>(callbackfn, initialValue): U;
    reverse(): JSONValue[];
    shift(): JSONValue;
    slice(start?, end?): JSONValue[];
    some(predicate, thisArg?): boolean;
    sort(compareFn?): this;
    splice(start, deleteCount?): JSONValue[];
    splice(start, deleteCount, ...items): JSONValue[];
    toLocaleString(): string;
    toReversed(): JSONValue[];
    toSorted(compareFn?): JSONValue[];
    toSpliced(start, deleteCount, ...items): JSONValue[];
    toSpliced(start, deleteCount?): JSONValue[];
    toString(): string;
    unshift(...items): number;
    values(): IterableIterator<JSONValue>;
    with(index, value): JSONValue[];
}

Hierarchy

Properties

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

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

+

Type declaration

  • Optional Readonly [unscopables]?: boolean

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

    +
  • Optional length?: 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

  • Iterator

    +

    Returns IterableIterator<JSONValue>

  • 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

  • Combines two or more arrays. +This method returns a new array without modifying any existing arrays.

    +

    Parameters

    • Rest ...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

    • Rest ...items: (JSONValue | ConcatArray<JSONValue>)[]

      Additional arrays and/or items to add to the end of the array.

      +

    Returns JSONValue[]

  • 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.

      +
    • Optional end: number

      If not specified, length of the this object is used as its default value.

      +

    Returns this

  • Returns an iterable of key, value pairs for every entry in the array

    +

    Returns IterableIterator<[number, JSONValue]>

  • Determines whether all the members of an array satisfy the specified test.

    +

    Type Parameters

    Parameters

    • predicate: ((value, index, array) => 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.

      +
        • (value, index, array): value is S
        • Parameters

          Returns value is S

    • Optional thisArg: 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, index, array) => 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.

      +
        • (value, index, array): unknown
        • Parameters

          Returns unknown

    • Optional thisArg: 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

  • 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

      +
    • Optional start: 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.

      +
    • Optional end: number

      index to stop filling the array at. If end is negative, it is treated as +length+end.

      +

    Returns this

  • Returns the elements of an array that meet the condition specified in a callback function.

    +

    Type Parameters

    Parameters

    • predicate: ((value, index, array) => 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.

      +
        • (value, index, array): value is S
        • Parameters

          Returns value is S

    • Optional thisArg: 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, index, array) => unknown)

      A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

      +
        • (value, index, array): unknown
        • Parameters

          Returns unknown

    • Optional thisArg: 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[]

  • Returns the value of the first element in the array where predicate is true, and undefined +otherwise.

    +

    Type Parameters

    Parameters

    • predicate: ((value, index, obj) => 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.

      +
        • (value, index, obj): value is S
        • Parameters

          Returns value is S

    • Optional thisArg: 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, index, obj) => unknown)
        • (value, index, obj): unknown
        • Parameters

          Returns unknown

    • Optional thisArg: any

    Returns JSONValue

  • Returns the index of the first element in the array where predicate is true, and -1 +otherwise.

    +

    Parameters

    • predicate: ((value, index, obj) => 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.

      +
        • (value, index, obj): unknown
        • Parameters

          Returns unknown

    • Optional thisArg: 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 the value of the last element in the array where predicate is true, and undefined +otherwise.

    +

    Type Parameters

    Parameters

    • predicate: ((value, index, array) => 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.

      +
        • (value, index, array): value is S
        • Parameters

          Returns value is S

    • Optional thisArg: 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, index, array) => unknown)
        • (value, index, array): unknown
        • Parameters

          Returns unknown

    • Optional thisArg: any

    Returns JSONValue

  • Returns the index of the last element in the array where predicate is true, and -1 +otherwise.

    +

    Parameters

    • predicate: ((value, index, array) => 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.

      +
        • (value, index, array): unknown
        • Parameters

          Returns unknown

    • Optional thisArg: 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 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
    • Optional depth: D

      The maximum recursion depth

      +

    Returns FlatArray<A, D>[]

  • 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, value, index, array) => 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.

      +
        • (this, value, index, array): U | readonly U[]
        • Parameters

          Returns U | readonly U[]

    • Optional thisArg: 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[]

  • Performs the specified action for each element in an array.

    +

    Parameters

    • callbackfn: ((value, index, array) => void)

      A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.

      +
        • (value, index, array): void
        • Parameters

          Returns void

    • Optional thisArg: 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

  • Determines whether an array includes a certain element, returning true or false as appropriate.

    +

    Parameters

    • searchElement: JSONValue

      The element to search for.

      +
    • Optional fromIndex: number

      The position in this array at which to begin searching for searchElement.

      +

    Returns boolean

  • 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.

      +
    • Optional fromIndex: number

      The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.

      +

    Returns number

  • Adds all the elements of an array into a string, separated by the specified separator string.

    +

    Parameters

    • Optional separator: 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

  • Returns an iterable of keys in the array

    +

    Returns IterableIterator<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.

      +
    • Optional fromIndex: 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

  • 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, index, array) => U)

      A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.

      +
    • Optional thisArg: 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[]

  • 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

    • Rest ...items: JSONValue[]

      New elements to add to the array.

      +

    Returns number

  • 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, currentValue, currentIndex, array) => 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, currentValue, currentIndex, array) => U)

      A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

      +
        • (previousValue, currentValue, currentIndex, array): U
        • Parameters

          Returns U

    • 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, currentValue, currentIndex, array) => 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, currentValue, currentIndex, array) => U)

      A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

      +
        • (previousValue, currentValue, currentIndex, array): U
        • Parameters

          Returns U

    • 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

  • 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

    • Optional start: number

      The beginning index of the specified portion of the array. +If start is undefined, then the slice begins at index 0.

      +
    • Optional end: 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[]

  • Determines whether the specified callback function returns true for any element of an array.

    +

    Parameters

    • predicate: ((value, index, array) => 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.

      +
        • (value, index, array): unknown
        • Parameters

          Returns unknown

    • Optional thisArg: 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

  • Sorts an array in place. +This method mutates the array and returns a reference to the same array.

    +

    Parameters

    • Optional compareFn: ((a, b) => 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.

      +
    • Optional deleteCount: 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.

      +
    • Rest ...items: JSONValue[]

      Elements to insert into the array in place of the deleted elements.

      +

    Returns JSONValue[]

    An array containing the elements that were deleted.

    +
  • Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.

    +

    Returns string

  • Returns a copy of an array with its elements reversed.

    +

    Returns JSONValue[]

  • Returns a copy of an array with its elements sorted.

    +

    Parameters

    • Optional compareFn: ((a, b) => 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.

      +
    • Rest ...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.

      +
    • Optional deleteCount: number

      The number of elements to remove.

      +

    Returns JSONValue[]

    A copy of the original array with the remaining elements.

    +
  • Returns a string representation of an array.

    +

    Returns string

  • Inserts new elements at the start of an array, and returns the new length of the array.

    +

    Parameters

    • Rest ...items: JSONValue[]

      Elements to insert at the start of the array.

      +

    Returns number

  • Returns an iterable of values in the array

    +

    Returns IterableIterator<JSONValue>

  • 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.

    +
\ No newline at end of file diff --git a/interfaces/OsVersion.html b/interfaces/OsVersion.html new file mode 100644 index 00000000..70ca1cd1 --- /dev/null +++ b/interfaces/OsVersion.html @@ -0,0 +1,3 @@ +OsVersion | index.md - v5.21.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
\ No newline at end of file diff --git a/interfaces/PlainObject.html b/interfaces/PlainObject.html new file mode 100644 index 00000000..fff2942d --- /dev/null +++ b/interfaces/PlainObject.html @@ -0,0 +1 @@ +PlainObject | index.md - v5.21.1

Interface PlainObject

interface PlainObject {
    [key: string]: JSONValue;
}

Indexable

[key: string]: JSONValue
\ No newline at end of file diff --git a/interfaces/RandomStringOptions.html b/interfaces/RandomStringOptions.html new file mode 100644 index 00000000..a0c9703b --- /dev/null +++ b/interfaces/RandomStringOptions.html @@ -0,0 +1,7 @@ +RandomStringOptions | index.md - v5.21.1

Interface RandomStringOptions

interface RandomStringOptions {
    charTypes?: RandomStringCharType | ArrayOneMore<RandomStringCharType>;
    length?: number;
    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

+
\ No newline at end of file diff --git a/interfaces/SearchKeySet.html b/interfaces/SearchKeySet.html new file mode 100644 index 00000000..a79f6c4e --- /dev/null +++ b/interfaces/SearchKeySet.html @@ -0,0 +1,3 @@ +SearchKeySet | index.md - v5.21.1

Interface SearchKeySet

interface SearchKeySet {
    childName: string;
    keyName: string;
    [prop: string]: any;
}

Indexable

[prop: string]: any

Properties

Properties

childName: string
keyName: string
\ No newline at end of file diff --git a/interfaces/SpliceUrlParamOptions.html b/interfaces/SpliceUrlParamOptions.html new file mode 100644 index 00000000..8d74e149 --- /dev/null +++ b/interfaces/SpliceUrlParamOptions.html @@ -0,0 +1,4 @@ +SpliceUrlParamOptions | index.md - v5.21.1

Interface SpliceUrlParamOptions

interface SpliceUrlParamOptions {
    covert?: boolean;
    encode?: boolean;
    withQuestionsMark?: boolean;
}

Properties

covert?: boolean
encode?: boolean
withQuestionsMark?: boolean
\ No newline at end of file diff --git a/interfaces/Version.html b/interfaces/Version.html new file mode 100644 index 00000000..858fe7dc --- /dev/null +++ b/interfaces/Version.html @@ -0,0 +1,6 @@ +Version | index.md - v5.21.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
\ No newline at end of file diff --git a/interfaces/WindowSizeObj.html b/interfaces/WindowSizeObj.html new file mode 100644 index 00000000..8695e38a --- /dev/null +++ b/interfaces/WindowSizeObj.html @@ -0,0 +1,3 @@ +WindowSizeObj | index.md - v5.21.1

Interface WindowSizeObj

interface WindowSizeObj {
    height: number;
    width: number;
}

Properties

Properties

height: number
width: number
\ No newline at end of file diff --git a/modules.html b/modules.html new file mode 100644 index 00000000..b4255a7a --- /dev/null +++ b/modules.html @@ -0,0 +1,152 @@ +index.md - v5.21.1

index.md - v5.21.1

Index

Interfaces

Type Aliases

Variables

Functions

\ No newline at end of file diff --git a/out.json b/out.json new file mode 100644 index 00000000..d32e30fc --- /dev/null +++ b/out.json @@ -0,0 +1,60163 @@ +{ + "id": 0, + "name": "index.md", + "variant": "project", + "kind": 1, + "flags": {}, + "children": [ + { + "id": 968, + "name": "AnyFunction", + "variant": "declaration", + "kind": 256, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 3, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/types.ts#L3" + } + ], + "signatures": [ + { + "id": 969, + "name": "AnyFunction", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 4, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/types.ts#L4" + } + ], + "parameters": [ + { + "id": 970, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 967, + "name": "AnyObject", + "package": "js-cool" + } + ] + }, + { + "id": 971, + "name": "ArrayOne", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 972, + "name": "0", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 8, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/types.ts#L8" + } + ], + "type": { + "type": "reference", + "target": 973, + "name": "T", + "package": "js-cool", + "qualifiedName": "ArrayOne.T", + "refersToTypeParameter": true + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 972 + ] + } + ], + "sources": [ + { + "fileName": "src/types.ts", + "line": 7, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/types.ts#L7" + } + ], + "typeParameters": [ + { + "id": 973, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ] + }, + { + "id": 569, + "name": "BrowserVersion", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 570, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/browserVersion.ts", + "line": 4, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/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": 571, + "name": "version", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/browserVersion.ts", + "line": 53, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/browserVersion.ts#L53" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 570, + 571 + ] + } + ], + "sources": [ + { + "fileName": "src/browserVersion.ts", + "line": 3, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/browserVersion.ts#L3" + } + ] + }, + { + "id": 600, + "name": "DirParamType", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 602, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getDirParam.ts#L3" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 601, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getDirParam.ts#L2" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 602, + 601 + ] + } + ], + "sources": [ + { + "fileName": "src/getDirParam.ts", + "line": 1, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getDirParam.ts#L1" + } + ] + }, + { + "id": 178, + "name": "JSONArray", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 469, + "name": "[unscopables]", + "variant": "declaration", + "kind": 1024, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "line": 97, + "character": 13 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 470, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "children": [ + { + "id": 511, + "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.4.5/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "line": 97, + "character": 13 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 471, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1326, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 510, + "name": "[iterator]", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 58, + "character": 4 + } + ] + }, + { + "id": 503, + "name": "at", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2022.array.d.ts", + "line": 24, + "character": 4 + } + ] + }, + { + "id": 476, + "name": "concat", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1350, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1356, + "character": 4 + } + ] + }, + { + "id": 496, + "name": "copyWithin", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 62, + "character": 4 + } + ] + }, + { + "id": 497, + "name": "entries", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 63, + "character": 4 + } + ] + }, + { + "id": 486, + "name": "every", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1433, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1442, + "character": 4 + } + ] + }, + { + "id": 495, + "name": "fill", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 51, + "character": 4 + } + ] + }, + { + "id": 490, + "name": "filter", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1469, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1475, + "character": 4 + } + ] + }, + { + "id": 493, + "name": "find", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 29, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 30, + "character": 4 + } + ] + }, + { + "id": 494, + "name": "findIndex", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 41, + "character": 4 + } + ] + }, + { + "id": 504, + "name": "findLast", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 29, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 30, + "character": 4 + } + ] + }, + { + "id": 505, + "name": "findLastIndex", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 41, + "character": 4 + } + ] + }, + { + "id": 502, + "name": "flat", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 75, + "character": 4 + } + ] + }, + { + "id": 501, + "name": "flatMap", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 64, + "character": 4 + } + ] + }, + { + "id": 488, + "name": "forEach", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1457, + "character": 4 + } + ] + }, + { + "id": 500, + "name": "includes", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "line": 25, + "character": 4 + } + ] + }, + { + "id": 484, + "name": "indexOf", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1418, + "character": 4 + } + ] + }, + { + "id": 477, + "name": "join", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1361, + "character": 4 + } + ] + }, + { + "id": 498, + "name": "keys", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 68, + "character": 4 + } + ] + }, + { + "id": 485, + "name": "lastIndexOf", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1424, + "character": 4 + } + ] + }, + { + "id": 489, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1463, + "character": 4 + } + ] + }, + { + "id": 474, + "name": "pop", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1339, + "character": 4 + } + ] + }, + { + "id": 475, + "name": "push", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1344, + "character": 4 + } + ] + }, + { + "id": 491, + "name": "reduce", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1481, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1482, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1488, + "character": 4 + } + ] + }, + { + "id": 492, + "name": "reduceRight", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1494, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1495, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1501, + "character": 4 + } + ] + }, + { + "id": 478, + "name": "reverse", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1366, + "character": 4 + } + ] + }, + { + "id": 479, + "name": "shift", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1371, + "character": 4 + } + ] + }, + { + "id": 480, + "name": "slice", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1381, + "character": 4 + } + ] + }, + { + "id": 487, + "name": "some", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1451, + "character": 4 + } + ] + }, + { + "id": 481, + "name": "sort", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1392, + "character": 4 + } + ] + }, + { + "id": 482, + "name": "splice", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1399, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1407, + "character": 4 + } + ] + }, + { + "id": 473, + "name": "toLocaleString", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1334, + "character": 4 + } + ] + }, + { + "id": 506, + "name": "toReversed", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 46, + "character": 4 + } + ] + }, + { + "id": 507, + "name": "toSorted", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 57, + "character": 4 + } + ] + }, + { + "id": 508, + "name": "toSpliced", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 66, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 74, + "character": 4 + } + ] + }, + { + "id": 472, + "name": "toString", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1330, + "character": 4 + } + ] + }, + { + "id": 483, + "name": "unshift", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1412, + "character": 4 + } + ] + }, + { + "id": 499, + "name": "values", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 73, + "character": 4 + } + ] + }, + { + "id": 509, + "name": "with", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 85, + "character": 4 + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 511, + 471 + ] + }, + { + "title": "Methods", + "children": [ + 510, + 503, + 476, + 496, + 497, + 486, + 495, + 490, + 493, + 494, + 504, + 505, + 502, + 501, + 488, + 500, + 484, + 477, + 498, + 485, + 489, + 474, + 475, + 491, + 492, + 478, + 479, + 480, + 487, + 481, + 482, + 473, + 506, + 507, + 508, + 472, + 483, + 499, + 509 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "line": 97, + "character": 35 + } + ] + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.[unscopables]" + } + }, + { + "id": 179, + "name": "length", + "variant": "declaration", + "kind": 1024, + "flags": { + "isExternal": 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.4.5/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": 467, + "name": "[iterator]", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 58, + "character": 4 + } + ], + "signatures": [ + { + "id": 468, + "name": "[iterator]", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Iterator" + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 58, + "character": 4 + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "IterableIterator" + }, + "typeArguments": [ + { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + ], + "name": "IterableIterator", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.[iterator]" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.[iterator]" + } + }, + { + "id": 416, + "name": "at", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2022.array.d.ts", + "line": 24, + "character": 4 + } + ], + "signatures": [ + { + "id": 417, + "name": "at", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the item located at the specified index." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2022.array.d.ts", + "line": 24, + "character": 4 + } + ], + "parameters": [ + { + "id": 418, + "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": 177, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.at" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.at" + } + }, + { + "id": 189, + "name": "concat", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1350, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1356, + "character": 4 + } + ], + "signatures": [ + { + "id": 190, + "name": "concat", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1350, + "character": 4 + } + ], + "parameters": [ + { + "id": 191, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ConcatArray" + }, + "typeArguments": [ + { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + ], + "name": "ConcatArray", + "package": "typescript" + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.concat" + } + }, + { + "id": 192, + "name": "concat", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1356, + "character": 4 + } + ], + "parameters": [ + { + "id": 193, + "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": 177, + "name": "JSONValue", + "package": "js-cool" + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ConcatArray" + }, + "typeArguments": [ + { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + ], + "name": "ConcatArray", + "package": "typescript" + } + ] + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.concat" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.concat" + } + }, + { + "id": 383, + "name": "copyWithin", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 62, + "character": 4 + } + ], + "signatures": [ + { + "id": 384, + "name": "copyWithin", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 62, + "character": 4 + } + ], + "parameters": [ + { + "id": 385, + "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": 386, + "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": 387, + "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": 388, + "name": "entries", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 63, + "character": 4 + } + ], + "signatures": [ + { + "id": 389, + "name": "entries", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 63, + "character": 4 + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "IterableIterator" + }, + "typeArguments": [ + { + "type": "tuple", + "elements": [ + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + ] + } + ], + "name": "IterableIterator", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.entries" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.entries" + } + }, + { + "id": 231, + "name": "every", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1433, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1442, + "character": 4 + } + ], + "signatures": [ + { + "id": 232, + "name": "every", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1433, + "character": 4 + } + ], + "typeParameter": [ + { + "id": 233, + "name": "S", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "parameters": [ + { + "id": 234, + "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": 235, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1433, + "character": 34 + } + ], + "signatures": [ + { + "id": 236, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1433, + "character": 34 + } + ], + "parameters": [ + { + "id": 237, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 238, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 239, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "target": 233, + "name": "S", + "package": "typescript", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 240, + "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": 233, + "name": "S", + "package": "typescript", + "refersToTypeParameter": true + } + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.every" + } + }, + { + "id": 241, + "name": "every", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1442, + "character": 4 + } + ], + "parameters": [ + { + "id": 242, + "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": 243, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1442, + "character": 21 + } + ], + "signatures": [ + { + "id": 244, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1442, + "character": 21 + } + ], + "parameters": [ + { + "id": 245, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 246, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 247, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + }, + { + "id": 248, + "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": 378, + "name": "fill", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 51, + "character": 4 + } + ], + "signatures": [ + { + "id": 379, + "name": "fill", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 51, + "character": 4 + } + ], + "parameters": [ + { + "id": 380, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "value to fill array section with" + } + ] + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 381, + "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": 382, + "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": 277, + "name": "filter", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1469, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1475, + "character": 4 + } + ], + "signatures": [ + { + "id": 278, + "name": "filter", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1469, + "character": 4 + } + ], + "typeParameter": [ + { + "id": 279, + "name": "S", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "parameters": [ + { + "id": 280, + "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": 281, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1469, + "character": 35 + } + ], + "signatures": [ + { + "id": 282, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1469, + "character": 35 + } + ], + "parameters": [ + { + "id": 283, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 284, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 285, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "target": 279, + "name": "S", + "package": "typescript", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 286, + "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": 279, + "name": "S", + "package": "typescript", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.filter" + } + }, + { + "id": 287, + "name": "filter", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1475, + "character": 4 + } + ], + "parameters": [ + { + "id": 288, + "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": 289, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1475, + "character": 22 + } + ], + "signatures": [ + { + "id": 290, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1475, + "character": 22 + } + ], + "parameters": [ + { + "id": 291, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 292, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 293, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + }, + { + "id": 294, + "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": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.filter" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.filter" + } + }, + { + "id": 351, + "name": "find", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 29, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 30, + "character": 4 + } + ], + "signatures": [ + { + "id": 352, + "name": "find", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 29, + "character": 4 + } + ], + "typeParameter": [ + { + "id": 353, + "name": "S", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "parameters": [ + { + "id": 354, + "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": 355, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 29, + "character": 33 + } + ], + "signatures": [ + { + "id": 356, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 29, + "character": 33 + } + ], + "parameters": [ + { + "id": 357, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 358, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 359, + "name": "obj", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "target": 353, + "name": "S", + "package": "typescript", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 360, + "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": 353, + "name": "S", + "package": "typescript", + "refersToTypeParameter": true + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.find" + } + }, + { + "id": 361, + "name": "find", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 30, + "character": 4 + } + ], + "parameters": [ + { + "id": 362, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 363, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 30, + "character": 20 + } + ], + "signatures": [ + { + "id": 364, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 30, + "character": 20 + } + ], + "parameters": [ + { + "id": 365, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 366, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 367, + "name": "obj", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + }, + { + "id": 368, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.find" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.find" + } + }, + { + "id": 369, + "name": "findIndex", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 41, + "character": 4 + } + ], + "signatures": [ + { + "id": 370, + "name": "findIndex", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 41, + "character": 4 + } + ], + "parameters": [ + { + "id": 371, + "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": 372, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 41, + "character": 25 + } + ], + "signatures": [ + { + "id": 373, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 41, + "character": 25 + } + ], + "parameters": [ + { + "id": 374, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 375, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 376, + "name": "obj", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + }, + { + "id": 377, + "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": 419, + "name": "findLast", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 29, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 30, + "character": 4 + } + ], + "signatures": [ + { + "id": 420, + "name": "findLast", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 29, + "character": 4 + } + ], + "typeParameter": [ + { + "id": 421, + "name": "S", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "parameters": [ + { + "id": 422, + "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": 423, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 29, + "character": 37 + } + ], + "signatures": [ + { + "id": 424, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 29, + "character": 37 + } + ], + "parameters": [ + { + "id": 425, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 426, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 427, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "target": 421, + "name": "S", + "package": "typescript", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 428, + "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": 421, + "name": "S", + "package": "typescript", + "refersToTypeParameter": true + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.findLast" + } + }, + { + "id": 429, + "name": "findLast", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 30, + "character": 4 + } + ], + "parameters": [ + { + "id": 430, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 431, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 30, + "character": 24 + } + ], + "signatures": [ + { + "id": 432, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 30, + "character": 24 + } + ], + "parameters": [ + { + "id": 433, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 434, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 435, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + }, + { + "id": 436, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.findLast" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.findLast" + } + }, + { + "id": 437, + "name": "findLastIndex", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 41, + "character": 4 + } + ], + "signatures": [ + { + "id": 438, + "name": "findLastIndex", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 41, + "character": 4 + } + ], + "parameters": [ + { + "id": 439, + "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": 440, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 41, + "character": 29 + } + ], + "signatures": [ + { + "id": 441, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 41, + "character": 29 + } + ], + "parameters": [ + { + "id": 442, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 443, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 444, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + }, + { + "id": 445, + "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": 410, + "name": "flat", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 75, + "character": 4 + } + ], + "signatures": [ + { + "id": 411, + "name": "flat", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 75, + "character": 4 + } + ], + "typeParameter": [ + { + "id": 412, + "name": "A", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + } + }, + { + "id": 413, + "name": "D", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "default": { + "type": "literal", + "value": 1 + } + } + ], + "parameters": [ + { + "id": 414, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 412, + "name": "A", + "package": "typescript", + "refersToTypeParameter": true + } + }, + { + "id": 415, + "name": "depth", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The maximum recursion depth" + } + ] + }, + "type": { + "type": "reference", + "target": 413, + "name": "D", + "package": "typescript", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "FlatArray" + }, + "typeArguments": [ + { + "type": "reference", + "target": 412, + "name": "A", + "package": "typescript", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 413, + "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": 398, + "name": "flatMap", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 64, + "character": 4 + } + ], + "signatures": [ + { + "id": 399, + "name": "flatMap", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 64, + "character": 4 + } + ], + "typeParameter": [ + { + "id": 400, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + } + }, + { + "id": 401, + "name": "This", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "default": { + "type": "intrinsic", + "name": "undefined" + } + } + ], + "parameters": [ + { + "id": 402, + "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": 403, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 65, + "character": 18 + } + ], + "signatures": [ + { + "id": 404, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 65, + "character": 18 + } + ], + "parameters": [ + { + "id": 405, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 401, + "name": "This", + "package": "typescript", + "refersToTypeParameter": true + } + }, + { + "id": 406, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 407, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 408, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 400, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + }, + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": 400, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + } + } + } + ] + } + } + ] + } + } + }, + { + "id": 409, + "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": 401, + "name": "This", + "package": "typescript", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 400, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.flatMap" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.flatMap" + } + }, + { + "id": 258, + "name": "forEach", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1457, + "character": 4 + } + ], + "signatures": [ + { + "id": 259, + "name": "forEach", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Performs the specified action for each element in an array." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1457, + "character": 4 + } + ], + "parameters": [ + { + "id": 260, + "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": 261, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1457, + "character": 24 + } + ], + "signatures": [ + { + "id": 262, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1457, + "character": 24 + } + ], + "parameters": [ + { + "id": 263, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 264, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 265, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 266, + "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": 394, + "name": "includes", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "line": 25, + "character": 4 + } + ], + "signatures": [ + { + "id": 395, + "name": "includes", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "line": 25, + "character": 4 + } + ], + "parameters": [ + { + "id": 396, + "name": "searchElement", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The element to search for." + } + ] + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 397, + "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": 223, + "name": "indexOf", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1418, + "character": 4 + } + ], + "signatures": [ + { + "id": 224, + "name": "indexOf", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1418, + "character": 4 + } + ], + "parameters": [ + { + "id": 225, + "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": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 226, + "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": 194, + "name": "join", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1361, + "character": 4 + } + ], + "signatures": [ + { + "id": 195, + "name": "join", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1361, + "character": 4 + } + ], + "parameters": [ + { + "id": 196, + "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": 390, + "name": "keys", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 68, + "character": 4 + } + ], + "signatures": [ + { + "id": 391, + "name": "keys", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns an iterable of keys in the array" + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 68, + "character": 4 + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "IterableIterator" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "number" + } + ], + "name": "IterableIterator", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.keys" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.keys" + } + }, + { + "id": 227, + "name": "lastIndexOf", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1424, + "character": 4 + } + ], + "signatures": [ + { + "id": 228, + "name": "lastIndexOf", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1424, + "character": 4 + } + ], + "parameters": [ + { + "id": 229, + "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": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 230, + "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": 267, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1463, + "character": 4 + } + ], + "signatures": [ + { + "id": 268, + "name": "map", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1463, + "character": 4 + } + ], + "typeParameter": [ + { + "id": 269, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + } + } + ], + "parameters": [ + { + "id": 270, + "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": 271, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1463, + "character": 23 + } + ], + "signatures": [ + { + "id": 272, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1463, + "character": 23 + } + ], + "parameters": [ + { + "id": 273, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 274, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 275, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "reference", + "target": 269, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + } + } + ] + } + } + }, + { + "id": 276, + "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": 269, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.map" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.map" + } + }, + { + "id": 184, + "name": "pop", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1339, + "character": 4 + } + ], + "signatures": [ + { + "id": 185, + "name": "pop", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1339, + "character": 4 + } + ], + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.pop" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.pop" + } + }, + { + "id": 186, + "name": "push", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1344, + "character": 4 + } + ], + "signatures": [ + { + "id": 187, + "name": "push", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1344, + "character": 4 + } + ], + "parameters": [ + { + "id": 188, + "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": 177, + "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": 295, + "name": "reduce", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1481, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1482, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1488, + "character": 4 + } + ], + "signatures": [ + { + "id": 296, + "name": "reduce", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1481, + "character": 4 + } + ], + "parameters": [ + { + "id": 297, + "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": 298, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1481, + "character": 23 + } + ], + "signatures": [ + { + "id": 299, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1481, + "character": 23 + } + ], + "parameters": [ + { + "id": 300, + "name": "previousValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 301, + "name": "currentValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 302, + "name": "currentIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 303, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + ] + } + } + } + ], + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduce" + } + }, + { + "id": 304, + "name": "reduce", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1482, + "character": 4 + } + ], + "parameters": [ + { + "id": 305, + "name": "callbackfn", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 306, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1482, + "character": 23 + } + ], + "signatures": [ + { + "id": 307, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1482, + "character": 23 + } + ], + "parameters": [ + { + "id": 308, + "name": "previousValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 309, + "name": "currentValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 310, + "name": "currentIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 311, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + ] + } + } + }, + { + "id": 312, + "name": "initialValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduce" + } + }, + { + "id": 313, + "name": "reduce", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1488, + "character": 4 + } + ], + "typeParameter": [ + { + "id": 314, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + } + } + ], + "parameters": [ + { + "id": 315, + "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": 316, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1488, + "character": 26 + } + ], + "signatures": [ + { + "id": 317, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1488, + "character": 26 + } + ], + "parameters": [ + { + "id": 318, + "name": "previousValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 314, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + } + }, + { + "id": 319, + "name": "currentValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 320, + "name": "currentIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 321, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "reference", + "target": 314, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + } + } + ] + } + } + }, + { + "id": 322, + "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": 314, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 314, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduce" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduce" + } + }, + { + "id": 323, + "name": "reduceRight", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1494, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1495, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1501, + "character": 4 + } + ], + "signatures": [ + { + "id": 324, + "name": "reduceRight", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1494, + "character": 4 + } + ], + "parameters": [ + { + "id": 325, + "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": 326, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1494, + "character": 28 + } + ], + "signatures": [ + { + "id": 327, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1494, + "character": 28 + } + ], + "parameters": [ + { + "id": 328, + "name": "previousValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 329, + "name": "currentValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 330, + "name": "currentIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 331, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + ] + } + } + } + ], + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduceRight" + } + }, + { + "id": 332, + "name": "reduceRight", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1495, + "character": 4 + } + ], + "parameters": [ + { + "id": 333, + "name": "callbackfn", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 334, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1495, + "character": 28 + } + ], + "signatures": [ + { + "id": 335, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1495, + "character": 28 + } + ], + "parameters": [ + { + "id": 336, + "name": "previousValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 337, + "name": "currentValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 338, + "name": "currentIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 339, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + ] + } + } + }, + { + "id": 340, + "name": "initialValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduceRight" + } + }, + { + "id": 341, + "name": "reduceRight", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1501, + "character": 4 + } + ], + "typeParameter": [ + { + "id": 342, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + } + } + ], + "parameters": [ + { + "id": 343, + "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": 344, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1501, + "character": 31 + } + ], + "signatures": [ + { + "id": 345, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1501, + "character": 31 + } + ], + "parameters": [ + { + "id": 346, + "name": "previousValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 342, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + } + }, + { + "id": 347, + "name": "currentValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 348, + "name": "currentIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 349, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "reference", + "target": 342, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + } + } + ] + } + } + }, + { + "id": 350, + "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": 342, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 342, + "name": "U", + "package": "typescript", + "refersToTypeParameter": true + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduceRight" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduceRight" + } + }, + { + "id": 197, + "name": "reverse", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1366, + "character": 4 + } + ], + "signatures": [ + { + "id": 198, + "name": "reverse", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1366, + "character": 4 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reverse" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reverse" + } + }, + { + "id": 199, + "name": "shift", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1371, + "character": 4 + } + ], + "signatures": [ + { + "id": 200, + "name": "shift", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1371, + "character": 4 + } + ], + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.shift" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.shift" + } + }, + { + "id": 201, + "name": "slice", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1381, + "character": 4 + } + ], + "signatures": [ + { + "id": 202, + "name": "slice", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1381, + "character": 4 + } + ], + "parameters": [ + { + "id": 203, + "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": 204, + "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": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.slice" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.slice" + } + }, + { + "id": 249, + "name": "some", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1451, + "character": 4 + } + ], + "signatures": [ + { + "id": 250, + "name": "some", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1451, + "character": 4 + } + ], + "parameters": [ + { + "id": 251, + "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": 252, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1451, + "character": 20 + } + ], + "signatures": [ + { + "id": 253, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1451, + "character": 20 + } + ], + "parameters": [ + { + "id": 254, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 255, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 256, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + }, + { + "id": 257, + "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": 205, + "name": "sort", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1392, + "character": 4 + } + ], + "signatures": [ + { + "id": 206, + "name": "sort", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1392, + "character": 4 + } + ], + "parameters": [ + { + "id": 207, + "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": 208, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1392, + "character": 21 + } + ], + "signatures": [ + { + "id": 209, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1392, + "character": 21 + } + ], + "parameters": [ + { + "id": 210, + "name": "a", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 211, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "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": 212, + "name": "splice", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1399, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1407, + "character": 4 + } + ], + "signatures": [ + { + "id": 213, + "name": "splice", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1399, + "character": 4 + } + ], + "parameters": [ + { + "id": 214, + "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": 215, + "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": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.splice" + } + }, + { + "id": 216, + "name": "splice", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1407, + "character": 4 + } + ], + "parameters": [ + { + "id": 217, + "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": 218, + "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": 219, + "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": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.splice" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.splice" + } + }, + { + "id": 182, + "name": "toLocaleString", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1334, + "character": 4 + } + ], + "signatures": [ + { + "id": 183, + "name": "toLocaleString", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/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" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toLocaleString" + } + }, + { + "id": 446, + "name": "toReversed", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 46, + "character": 4 + } + ], + "signatures": [ + { + "id": 447, + "name": "toReversed", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns a copy of an array with its elements reversed." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 46, + "character": 4 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toReversed" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toReversed" + } + }, + { + "id": 448, + "name": "toSorted", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 57, + "character": 4 + } + ], + "signatures": [ + { + "id": 449, + "name": "toSorted", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns a copy of an array with its elements sorted." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 57, + "character": 4 + } + ], + "parameters": [ + { + "id": 450, + "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": 451, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 57, + "character": 25 + } + ], + "signatures": [ + { + "id": 452, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 57, + "character": 25 + } + ], + "parameters": [ + { + "id": 453, + "name": "a", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 454, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toSorted" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toSorted" + } + }, + { + "id": 455, + "name": "toSpliced", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 66, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 74, + "character": 4 + } + ], + "signatures": [ + { + "id": 456, + "name": "toSpliced", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 66, + "character": 4 + } + ], + "parameters": [ + { + "id": 457, + "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": 458, + "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": 459, + "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": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toSpliced" + } + }, + { + "id": 460, + "name": "toSpliced", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 74, + "character": 4 + } + ], + "parameters": [ + { + "id": 461, + "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": 462, + "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": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toSpliced" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toSpliced" + } + }, + { + "id": 180, + "name": "toString", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1330, + "character": 4 + } + ], + "signatures": [ + { + "id": 181, + "name": "toString", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns a string representation of an array." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/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": 220, + "name": "unshift", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1412, + "character": 4 + } + ], + "signatures": [ + { + "id": 221, + "name": "unshift", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1412, + "character": 4 + } + ], + "parameters": [ + { + "id": 222, + "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": 177, + "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": 392, + "name": "values", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 73, + "character": 4 + } + ], + "signatures": [ + { + "id": 393, + "name": "values", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns an iterable of values in the array" + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 73, + "character": 4 + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "IterableIterator" + }, + "typeArguments": [ + { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + ], + "name": "IterableIterator", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.values" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.values" + } + }, + { + "id": 463, + "name": "with", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 85, + "character": 4 + } + ], + "signatures": [ + { + "id": 464, + "name": "with", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": 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.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 85, + "character": 4 + } + ], + "parameters": [ + { + "id": 465, + "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": 466, + "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": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.with" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.with" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 469, + 179 + ] + }, + { + "title": "Methods", + "children": [ + 467, + 416, + 189, + 383, + 388, + 231, + 378, + 277, + 351, + 369, + 419, + 437, + 410, + 398, + 258, + 394, + 223, + 194, + 390, + 227, + 267, + 184, + 186, + 295, + 323, + 197, + 199, + 201, + 249, + 205, + 212, + 182, + 446, + 448, + 455, + 180, + 220, + 392, + 463 + ] + } + ], + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 14, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isPlainObject.ts#L14" + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + ], + "name": "Array", + "package": "typescript" + } + ] + }, + { + "id": 563, + "name": "OsVersion", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 564, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/osVersion.ts", + "line": 4, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/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": 565, + "name": "version", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/osVersion.ts", + "line": 5, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/osVersion.ts#L5" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 564, + 565 + ] + } + ], + "sources": [ + { + "fileName": "src/osVersion.ts", + "line": 3, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/osVersion.ts#L3" + } + ] + }, + { + "id": 174, + "name": "PlainObject", + "variant": "declaration", + "kind": 256, + "flags": {}, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 10, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isPlainObject.ts#L10" + } + ], + "indexSignature": { + "id": 175, + "name": "__index", + "variant": "signature", + "kind": 8192, + "flags": {}, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 11, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isPlainObject.ts#L11" + } + ], + "parameters": [ + { + "id": 176, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": 177, + "name": "JSONValue", + "package": "js-cool" + } + } + }, + { + "id": 127, + "name": "RandomStringOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 129, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomString.ts#L9" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 132, + "name": "RandomStringCharType", + "package": "js-cool" + }, + { + "type": "reference", + "target": 974, + "typeArguments": [ + { + "type": "reference", + "target": 132, + "name": "RandomStringCharType", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + ] + } + }, + { + "id": 128, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomString.ts#L8" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 130, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomString.ts#L13" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 131, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomString.ts#L17" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 129, + 128, + 130, + 131 + ] + } + ], + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 7, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomString.ts#L7" + } + ] + }, + { + "id": 823, + "name": "SearchKeySet", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 824, + "name": "childName", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/searchObject.ts", + "line": 2, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/searchObject.ts#L2" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 825, + "name": "keyName", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/searchObject.ts", + "line": 3, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/searchObject.ts#L3" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 824, + 825 + ] + } + ], + "sources": [ + { + "fileName": "src/searchObject.ts", + "line": 1, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/searchObject.ts#L1" + } + ], + "indexSignature": { + "id": 826, + "name": "__index", + "variant": "signature", + "kind": 8192, + "flags": {}, + "sources": [ + { + "fileName": "src/searchObject.ts", + "line": 4, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/searchObject.ts#L4" + } + ], + "parameters": [ + { + "id": 827, + "name": "prop", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 585, + "name": "SpliceUrlParamOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 586, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/spliceUrlParam.ts#L2" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 587, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/spliceUrlParam.ts#L3" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 588, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/spliceUrlParam.ts#L4" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 586, + 587, + 588 + ] + } + ], + "sources": [ + { + "fileName": "src/spliceUrlParam.ts", + "line": 1, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/spliceUrlParam.ts#L1" + } + ] + }, + { + "id": 711, + "name": "Version", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 712, + "name": "major", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 2, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/nextVersion.ts#L2" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 713, + "name": "minor", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 3, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/nextVersion.ts#L3" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 714, + "name": "patch", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 4, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/nextVersion.ts#L4" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 715, + "name": "preid", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 5, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/nextVersion.ts#L5" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 716, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/nextVersion.ts#L6" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 712, + 713, + 714, + 715, + 716 + ] + } + ], + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 1, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/nextVersion.ts#L1" + } + ] + }, + { + "id": 534, + "name": "WindowSizeObj", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 536, + "name": "height", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/windowSize.ts", + "line": 3, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/windowSize.ts#L3" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 535, + "name": "width", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/windowSize.ts", + "line": 2, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/windowSize.ts#L2" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 536, + 535 + ] + } + ], + "sources": [ + { + "fileName": "src/windowSize.ts", + "line": 1, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/windowSize.ts#L1" + } + ] + }, + { + "id": 967, + "name": "AnyObject", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 1, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/types.ts#L1" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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": 968, + "name": "AnyFunction" + } + ] + }, + { + "id": 974, + "name": "ArrayOneMore", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 11, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/types.ts#L11" + } + ], + "typeParameters": [ + { + "id": 975, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "reference", + "target": 971, + "typeArguments": [ + { + "type": "reference", + "target": 975, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "ArrayOne", + "package": "js-cool" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": 975, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ] + } + }, + { + "id": 976, + "name": "ArrayTwoMore", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 13, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/types.ts#L13" + } + ], + "typeParameters": [ + { + "id": 980, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 977, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 978, + "name": "0", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 14, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/types.ts#L14" + } + ], + "type": { + "type": "reference", + "target": 980, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 979, + "name": "1", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 15, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/types.ts#L15" + } + ], + "type": { + "type": "reference", + "target": 980, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 978, + 979 + ] + } + ], + "sources": [ + { + "fileName": "src/types.ts", + "line": 13, + "character": 30, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/types.ts#L13" + } + ] + } + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": 980, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ] + } + }, + { + "id": 765, + "name": "ExtendArrayData", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 5, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/extend.ts#L5" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 767, + "name": "ExtendData", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 9, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/extend.ts#L9" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 765, + "name": "ExtendArrayData", + "package": "js-cool" + }, + { + "type": "reference", + "target": 766, + "name": "ExtendObjectData", + "package": "js-cool" + } + ] + } + }, + { + "id": 766, + "name": "ExtendObjectData", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 7, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/extend.ts#L7" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 177, + "name": "JSONValue", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 7, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isPlainObject.ts#L7" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 173, + "name": "Primitive", + "package": "js-cool" + }, + { + "type": "reference", + "target": 174, + "name": "PlainObject", + "package": "js-cool" + }, + { + "type": "reference", + "target": 178, + "name": "JSONArray", + "package": "js-cool" + } + ] + } + }, + { + "id": 993, + "name": "MaybePromiseOrGetter", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 34, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/types.ts#L34" + } + ], + "typeParameters": [ + { + "id": 997, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 997, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + }, + { + "type": "reflection", + "declaration": { + "id": 994, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 34, + "character": 52, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/types.ts#L34" + } + ], + "signatures": [ + { + "id": 995, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "typeParameter": [ + { + "id": 996, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": 996, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + ] + } + }, + { + "id": 990, + "name": "OmitPartial", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 30, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/types.ts#L30" + } + ], + "typeParameters": [ + { + "id": 991, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 992, + "name": "K", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "target": 991, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "mapped", + "parameter": "P", + "parameterType": { + "type": "reference", + "target": 992, + "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": 991, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Omit" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Partial" + }, + "typeArguments": [ + { + "type": "reference", + "target": 991, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "Partial", + "package": "typescript" + }, + { + "type": "reference", + "target": 992, + "name": "K", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "Omit", + "package": "typescript" + } + ] + } + }, + { + "id": 984, + "name": "OmitRequired", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 22, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/types.ts#L22" + } + ], + "typeParameters": [ + { + "id": 985, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 986, + "name": "K", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "target": 985, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "mapped", + "parameter": "P", + "parameterType": { + "type": "reference", + "target": 986, + "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": 985, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Omit" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Required" + }, + "typeArguments": [ + { + "type": "reference", + "target": 985, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "Required", + "package": "typescript" + }, + { + "type": "reference", + "target": 986, + "name": "K", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "Omit", + "package": "typescript" + } + ] + } + }, + { + "id": 987, + "name": "PickPartial", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 26, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/types.ts#L26" + } + ], + "typeParameters": [ + { + "id": 988, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 989, + "name": "K", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "target": 988, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "mapped", + "parameter": "P", + "parameterType": { + "type": "reference", + "target": 989, + "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": 988, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + "optionalModifier": "+" + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Omit" + }, + "typeArguments": [ + { + "type": "reference", + "target": 988, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 989, + "name": "K", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "Omit", + "package": "typescript" + } + ] + } + }, + { + "id": 981, + "name": "PickRequired", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 18, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/types.ts#L18" + } + ], + "typeParameters": [ + { + "id": 982, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 983, + "name": "K", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "target": 982, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "mapped", + "parameter": "P", + "parameterType": { + "type": "reference", + "target": 983, + "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": 982, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + "optionalModifier": "-" + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Omit" + }, + "typeArguments": [ + { + "type": "reference", + "target": 982, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": 983, + "name": "K", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "Omit", + "package": "typescript" + } + ] + } + }, + { + "id": 173, + "name": "Primitive", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 3, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/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": 132, + "name": "RandomStringCharType", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 5, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/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": 998, + "name": "default", + "variant": "declaration", + "kind": 32, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 139, + "character": 0, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L139" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 999, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 1131, + "name": "CSVToArray", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 165, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L165" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1132, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/CSVToArray.ts", + "line": 21, + "character": 19, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/CSVToArray.ts#L21" + } + ], + "signatures": [ + { + "id": 1133, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/CSVToArray.ts#L21" + } + ], + "parameters": [ + { + "id": 1134, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "csv data" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1135, + "name": "delimiter", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "separator, default ','" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "','" + }, + { + "id": 1136, + "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": 1143, + "name": "CSVToJSON", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 167, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L167" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1144, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/CSVToJSON.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/CSVToJSON.ts#L17" + } + ], + "signatures": [ + { + "id": 1145, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/CSVToJSON.ts#L17" + } + ], + "parameters": [ + { + "id": 1146, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "csv data" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1147, + "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": 1148, + "name": "JSONToCSV", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 168, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L168" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1149, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/JSONToCSV.ts", + "line": 18, + "character": 18, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/JSONToCSV.ts#L18" + } + ], + "signatures": [ + { + "id": 1150, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/JSONToCSV.ts#L18" + } + ], + "parameters": [ + { + "id": 1151, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 1152, + "name": "columns", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the specified columns" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 1153, + "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": 1007, + "name": "RGBToHex", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 142, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L142" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1008, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/RGBToHex.ts", + "line": 15, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/RGBToHex.ts#L15" + } + ], + "signatures": [ + { + "id": 1009, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/RGBToHex.ts#L15" + } + ], + "parameters": [ + { + "id": 1010, + "name": "r", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the 1st value of RGB" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1011, + "name": "g", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "RGB's 2nd value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1012, + "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": 1013, + "name": "addEvent", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 143, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L143" + } + ], + "type": { + "type": "query", + "queryType": { + "type": "reference", + "target": 689, + "name": "addEvent", + "package": "js-cool" + } + } + }, + { + "id": 1014, + "name": "all", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 144, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L144" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1015, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/all.ts", + "line": 16, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/all.ts#L16" + } + ], + "signatures": [ + { + "id": 1016, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/all.ts#L16" + } + ], + "typeParameter": [ + { + "id": 1017, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1018, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the target array" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 839, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + }, + { + "id": 1019, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the judgment method" + } + ] + }, + "type": { + "type": "reference", + "target": 968, + "name": "AnyFunction", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1020, + "name": "any", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 145, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L145" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1021, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/any.ts", + "line": 15, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/any.ts#L15" + } + ], + "signatures": [ + { + "id": 1022, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/any.ts#L15" + } + ], + "typeParameter": [ + { + "id": 1023, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1024, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the target array" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 844, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + }, + { + "id": 1025, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the judgment method" + } + ] + }, + "type": { + "type": "reference", + "target": 968, + "name": "AnyFunction", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1236, + "name": "appVersion", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 182, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L182" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1237, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/appVersion.ts#L20" + }, + { + "fileName": "src/appVersion.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/appVersion.ts#L21" + }, + { + "fileName": "src/appVersion.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/appVersion.ts#L22" + }, + { + "fileName": "src/appVersion.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/appVersion.ts#L23" + }, + { + "fileName": "src/appVersion.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/appVersion.ts#L24" + } + ], + "signatures": [ + { + "id": 1238, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/appVersion.ts#L20" + } + ], + "parameters": [ + { + "id": 1239, + "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": 1240, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/appVersion.ts#L21" + } + ], + "parameters": [ + { + "id": 1241, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1242, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 1243, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/appVersion.ts#L22" + } + ], + "parameters": [ + { + "id": 1244, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1245, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 1246, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/appVersion.ts#L23" + } + ], + "parameters": [ + { + "id": 1247, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1248, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1249, + "name": "ignoreCase", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + } + } + }, + { + "id": 1542, + "name": "arrayBufferToBase64", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 232, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L232" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1543, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/arrayBufferToBase64.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/arrayBufferToBase64.ts#L17" + } + ], + "signatures": [ + { + "id": 1544, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/arrayBufferToBase64.ts#L17" + } + ], + "parameters": [ + { + "id": 1545, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrayBuffer" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + } + }, + { + "id": 1546, + "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": 1547, + "name": "arrayBufferToBlob", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 233, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L233" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1548, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/arrayBufferToBlob.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/arrayBufferToBlob.ts#L9" + } + ], + "signatures": [ + { + "id": 1549, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/arrayBufferToBlob.ts#L9" + } + ], + "parameters": [ + { + "id": 1550, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrayBuffer" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + } + }, + { + "id": 1551, + "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.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1137, + "name": "arrayToCSV", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 166, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L166" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1138, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/arrayToCSV.ts", + "line": 20, + "character": 19, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/arrayToCSV.ts#L20" + } + ], + "signatures": [ + { + "id": 1139, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/arrayToCSV.ts#L20" + } + ], + "typeParameter": [ + { + "id": 1140, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + } + } + ], + "parameters": [ + { + "id": 1141, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 856, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1142, + "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": 1526, + "name": "awaitTo", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 231, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L231" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1527, + "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": 1528, + "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 + } + ], + "typeParameter": [ + { + "id": 1529, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 1530, + "name": "E", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 1531, + "name": "promise", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Promise" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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.4.5/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": 1532, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "line": 22, + "character": 17 + } + ], + "typeParameter": [ + { + "id": 1533, + "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": 1534, + "name": "E", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 1535, + "name": "promise", + "variant": "param", + "kind": 32768, + "flags": {}, + "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.4.5/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": 1536, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "line": 24, + "character": 17 + } + ], + "typeParameter": [ + { + "id": 1537, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 1538, + "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": 1539, + "name": "E", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 1540, + "name": "promise", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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": 1541, + "name": "promises", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "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.4.5/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": 1552, + "name": "base64ToArrayBuffer", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 234, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L234" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1553, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/base64ToArrayBuffer.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/base64ToArrayBuffer.ts#L10" + } + ], + "signatures": [ + { + "id": 1554, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/base64ToArrayBuffer.ts#L10" + } + ], + "parameters": [ + { + "id": 1555, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1556, + "name": "base64ToBlob", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 235, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L235" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1557, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/base64ToBlob.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/base64ToBlob.ts#L10" + } + ], + "signatures": [ + { + "id": 1558, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/base64ToBlob.ts#L10" + } + ], + "parameters": [ + { + "id": 1559, + "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.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1560, + "name": "base64ToFile", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 236, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L236" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1561, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/base64ToFile.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/base64ToFile.ts#L11" + } + ], + "signatures": [ + { + "id": 1562, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/base64ToFile.ts#L11" + } + ], + "parameters": [ + { + "id": 1563, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1564, + "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.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "File" + }, + "name": "File", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1565, + "name": "blobToArrayBuffer", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 237, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L237" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1566, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/blobToArrayBuffer.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/blobToArrayBuffer.ts#L8" + } + ], + "signatures": [ + { + "id": 1567, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/blobToArrayBuffer.ts#L8" + } + ], + "parameters": [ + { + "id": 1568, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1569, + "name": "blobToBase64", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 238, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L238" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1570, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/blobToBase64.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/blobToBase64.ts#L8" + } + ], + "signatures": [ + { + "id": 1571, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/blobToBase64.ts#L8" + } + ], + "parameters": [ + { + "id": 1572, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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": 1573, + "name": "blobToUrl", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 239, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L239" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1574, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/blobToUrl.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/blobToUrl.ts#L8" + } + ], + "signatures": [ + { + "id": 1575, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/blobToUrl.ts#L8" + } + ], + "parameters": [ + { + "id": 1576, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1277, + "name": "browserVersion", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 189, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L189" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1278, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/browserVersion.ts", + "line": 68, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/browserVersion.ts#L68" + } + ], + "signatures": [ + { + "id": 1279, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/browserVersion.ts#L68" + } + ], + "parameters": [ + { + "id": 1280, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua or any ua like string, may not be passed, default is navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 569, + "name": "BrowserVersion", + "package": "js-cool" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + } + } + }, + { + "id": 1076, + "name": "camel2Dash", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 156, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L156" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1077, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/camel2Dash.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/camel2Dash.ts#L8" + } + ], + "signatures": [ + { + "id": 1078, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/camel2Dash.ts#L8" + } + ], + "parameters": [ + { + "id": 1079, + "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": 1080, + "name": "cleanData", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 157, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L157" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1081, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/cleanData.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/cleanData.ts#L17" + } + ], + "signatures": [ + { + "id": 1082, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/cleanData.ts#L17" + } + ], + "parameters": [ + { + "id": 1083, + "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": 1084, + "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": 967, + "name": "AnyObject", + "package": "js-cool" + } + ] + } + }, + { + "id": 1085, + "name": "nullFix", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + } + }, + { + "id": 1086, + "name": "clearAttr", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 158, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L158" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1087, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/clearAttr.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/clearAttr.ts#L8" + } + ], + "signatures": [ + { + "id": 1088, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/clearAttr.ts#L8" + } + ], + "parameters": [ + { + "id": 1089, + "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": 1090, + "name": "clearHtml", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 159, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L159" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1091, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/clearHtml.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/clearHtml.ts#L8" + } + ], + "signatures": [ + { + "id": 1092, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/clearHtml.ts#L8" + } + ], + "parameters": [ + { + "id": 1093, + "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": 1102, + "name": "client", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 162, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L162" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1103, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 10, + "character": 15, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L10" + } + ], + "signatures": [ + { + "id": 1104, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L10" + } + ], + "parameters": [ + { + "id": 1105, + "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": 1106, + "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": 1107, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 1115, + "name": "ANDROID", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 24, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L24" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1109, + "name": "GECKO", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 17, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L17" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1108, + "name": "IE", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 16, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L16" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1114, + "name": "IOS", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 23, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L23" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "!!userAgent.match(/\\(i[^;]+;( U;)? CPU.+Mac OS X/)" + }, + { + "id": 1117, + "name": "IPAD", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 26, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L26" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1116, + "name": "IPHONE", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 25, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L25" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1113, + "name": "MOBILE", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 21, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L21" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "!!userAgent.match(/AppleWebKit.*Mobile.*/)" + }, + { + "id": 1111, + "name": "OPERA", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 19, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L19" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1120, + "name": "QQ", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 30, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L30" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExpMatchArray" + }, + "name": "RegExpMatchArray", + "package": "typescript" + } + ] + }, + "defaultValue": "..." + }, + { + "id": 1118, + "name": "QQBROWSER", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 28, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L28" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1112, + "name": "TRIDENT", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 20, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L20" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1110, + "name": "WEBKIT", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 18, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L18" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1119, + "name": "WEIXIN", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 29, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L29" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 1115, + 1109, + 1108, + 1114, + 1117, + 1116, + 1113, + 1111, + 1120, + 1118, + 1112, + 1110, + 1119 + ] + } + ], + "sources": [ + { + "fileName": "src/client.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L15" + } + ] + } + } + ] + } + } + ] + } + } + }, + { + "id": 1208, + "name": "clone", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 177, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L177" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1209, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/clone.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/clone.ts#L18" + } + ], + "signatures": [ + { + "id": 1210, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/clone.ts#L18" + } + ], + "typeParameter": [ + { + "id": 1211, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "parameters": [ + { + "id": 1212, + "name": "parent", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "source object" + } + ] + }, + "type": { + "type": "reference", + "target": 770, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 770, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ] + } + } + }, + { + "id": 1258, + "name": "compareVersion", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 185, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L185" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1259, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/compareVersion.ts", + "line": 48, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/compareVersion.ts#L48" + } + ], + "signatures": [ + { + "id": 1260, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/compareVersion.ts#L48" + } + ], + "parameters": [ + { + "id": 1261, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "input version" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1262, + "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": 1121, + "name": "complement", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 163, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L163" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1122, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/complement.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/complement.ts#L16" + } + ], + "signatures": [ + { + "id": 1123, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/complement.ts#L16" + } + ], + "typeParameter": [ + { + "id": 1124, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1125, + "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": 887, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 887, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 1126, + "name": "contains", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 164, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L164" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1127, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/contains.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/contains.ts#L14" + } + ], + "signatures": [ + { + "id": 1128, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/contains.ts#L14" + } + ], + "parameters": [ + { + "id": 1129, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the target array" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 1130, + "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": 1593, + "name": "copy", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 244, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L244" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1594, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/copy.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/copy.ts#L10" + } + ], + "signatures": [ + { + "id": 1595, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/copy.ts#L10" + } + ], + "parameters": [ + { + "id": 1596, + "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": 1154, + "name": "cutCHSString", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 169, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L169" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1155, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/cutCHSString.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/cutCHSString.ts#L10" + } + ], + "signatures": [ + { + "id": 1156, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/cutCHSString.ts#L10" + } + ], + "parameters": [ + { + "id": 1157, + "name": "str", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be intercepted" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1158, + "name": "len", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "str.length" + }, + { + "id": 1159, + "name": "hasDot", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1160, + "name": "dash2Camel", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 170, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L170" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1161, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/dash2Camel.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/dash2Camel.ts#L8" + } + ], + "signatures": [ + { + "id": 1162, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/dash2Camel.ts#L8" + } + ], + "parameters": [ + { + "id": 1163, + "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": 1164, + "name": "decodeBase64", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 171, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L171" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1165, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/decodeBase64.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/decodeBase64.ts#L11" + } + ], + "signatures": [ + { + "id": 1166, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/decodeBase64.ts#L11" + } + ], + "parameters": [ + { + "id": 1167, + "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": 1168, + "name": "decodeUtf8", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 172, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L172" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1169, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/decodeUtf8.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/decodeUtf8.ts#L8" + } + ], + "signatures": [ + { + "id": 1170, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/decodeUtf8.ts#L8" + } + ], + "parameters": [ + { + "id": 1171, + "name": "utftext", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1037, + "name": "delCache", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 148, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L148" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1038, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/delCache.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delCache.ts#L7" + } + ], + "signatures": [ + { + "id": 1039, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delCache.ts#L7" + } + ], + "parameters": [ + { + "id": 1040, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1072, + "name": "delCookie", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 155, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L155" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1073, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/delCookie.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delCookie.ts#L9" + } + ], + "signatures": [ + { + "id": 1074, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delCookie.ts#L9" + } + ], + "parameters": [ + { + "id": 1075, + "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": 1052, + "name": "delSession", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 151, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L151" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1053, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/delSession.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delSession.ts#L7" + } + ], + "signatures": [ + { + "id": 1054, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delSession.ts#L7" + } + ], + "parameters": [ + { + "id": 1055, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1172, + "name": "delay", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 173, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L173" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1173, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delay.ts#L9" + } + ], + "signatures": [ + { + "id": 1174, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delay.ts#L9" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1175, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 1176, + "name": "map", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 11, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delay.ts#L11" + } + ], + "type": { + "type": "intrinsic", + "name": "any" + }, + "defaultValue": "..." + }, + { + "id": 1183, + "name": "destroy", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 43, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delay.ts#L43" + } + ], + "signatures": [ + { + "id": 1184, + "name": "destroy", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 43, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delay.ts#L43" + } + ], + "parameters": [ + { + "id": 1185, + "name": "id", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 1177, + "name": "register", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 12, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delay.ts#L12" + } + ], + "signatures": [ + { + "id": 1178, + "name": "register", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 12, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delay.ts#L12" + } + ], + "parameters": [ + { + "id": 1179, + "name": "id", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1180, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 968, + "name": "AnyFunction", + "package": "js-cool" + } + }, + { + "id": 1181, + "name": "time", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1182, + "name": "boo", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 1176 + ] + }, + { + "title": "Methods", + "children": [ + 1183, + 1177 + ] + } + ], + "sources": [ + { + "fileName": "src/delay.ts", + "line": 10, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delay.ts#L10" + } + ] + } + } + } + ] + } + } + }, + { + "id": 1001, + "name": "download", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 141, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L141" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1002, + "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": 1003, + "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": 1004, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "link" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1005, + "name": "filename", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "filename" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1006, + "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": 1186, + "name": "encodeBase64", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 174, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L174" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1187, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/encodeBase64.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/encodeBase64.ts#L11" + } + ], + "signatures": [ + { + "id": 1188, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/encodeBase64.ts#L11" + } + ], + "parameters": [ + { + "id": 1189, + "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": 1190, + "name": "encodeUtf8", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 175, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L175" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1191, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/encodeUtf8.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/encodeUtf8.ts#L8" + } + ], + "signatures": [ + { + "id": 1192, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/encodeUtf8.ts#L8" + } + ], + "parameters": [ + { + "id": 1193, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1094, + "name": "escape", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 160, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L160" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1095, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/escape.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/escape.ts#L13" + } + ], + "signatures": [ + { + "id": 1096, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/escape.ts#L13" + } + ], + "parameters": [ + { + "id": 1097, + "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": 1194, + "name": "extend", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 176, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L176" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1195, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 41, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/extend.ts#L41" + }, + { + "fileName": "src/extend.ts", + "line": 42, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/extend.ts#L42" + }, + { + "fileName": "src/extend.ts", + "line": 43, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/extend.ts#L43" + }, + { + "fileName": "src/extend.ts", + "line": 44, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/extend.ts#L44" + }, + { + "fileName": "src/extend.ts", + "line": 45, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/extend.ts#L45" + } + ], + "signatures": [ + { + "id": 1196, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/extend.ts#L41" + } + ], + "parameters": [ + { + "id": 1197, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "boolean | ExtendData" + } + ] + }, + "type": { + "type": "reference", + "target": 766, + "name": "ExtendObjectData", + "package": "js-cool" + } + }, + { + "id": 1198, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ArrayOneMore" + } + ] + }, + "type": { + "type": "reference", + "target": 974, + "typeArguments": [ + { + "type": "reference", + "target": 766, + "name": "ExtendObjectData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 766, + "name": "ExtendObjectData", + "package": "js-cool" + } + }, + { + "id": 1199, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 42, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/extend.ts#L42" + } + ], + "parameters": [ + { + "id": 1200, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1201, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 974, + "typeArguments": [ + { + "type": "reference", + "target": 766, + "name": "ExtendObjectData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 766, + "name": "ExtendObjectData", + "package": "js-cool" + } + }, + { + "id": 1202, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 43, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/extend.ts#L43" + } + ], + "parameters": [ + { + "id": 1203, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 765, + "name": "ExtendArrayData", + "package": "js-cool" + } + }, + { + "id": 1204, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 974, + "typeArguments": [ + { + "type": "reference", + "target": 765, + "name": "ExtendArrayData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 765, + "name": "ExtendArrayData", + "package": "js-cool" + } + }, + { + "id": 1205, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 44, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/extend.ts#L44" + } + ], + "parameters": [ + { + "id": 1206, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1207, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 974, + "typeArguments": [ + { + "type": "reference", + "target": 765, + "name": "ExtendArrayData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 765, + "name": "ExtendArrayData", + "package": "js-cool" + } + } + ] + } + } + }, + { + "id": 1577, + "name": "fileToBase64", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 240, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L240" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1578, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/fileToBase64.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/fileToBase64.ts#L10" + } + ], + "signatures": [ + { + "id": 1579, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/fileToBase64.ts#L10" + } + ], + "parameters": [ + { + "id": 1580, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "file data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "File" + }, + "name": "File", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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": 1213, + "name": "fillIPv6", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 178, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L178" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1214, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/fillIPv6.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/fillIPv6.ts#L15" + } + ], + "signatures": [ + { + "id": 1215, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/fillIPv6.ts#L15" + } + ], + "parameters": [ + { + "id": 1216, + "name": "ip", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1346, + "name": "fingerprint", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 198, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L198" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1347, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/fingerprint.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/fingerprint.ts#L10" + } + ], + "signatures": [ + { + "id": 1348, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/fingerprint.ts#L10" + } + ], + "parameters": [ + { + "id": 1349, + "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": 1217, + "name": "fixNumber", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 179, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L179" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1218, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/fixNumber.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/fixNumber.ts#L22" + } + ], + "signatures": [ + { + "id": 1219, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/fixNumber.ts#L22" + } + ], + "parameters": [ + { + "id": 1220, + "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": 1221, + "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": 1230, + "name": "getAppVersion", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 181, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L181" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1231, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getAppVersion.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getAppVersion.ts#L11" + } + ], + "signatures": [ + { + "id": 1232, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getAppVersion.ts#L11" + } + ], + "parameters": [ + { + "id": 1233, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "app name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1234, + "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": 1235, + "name": "userAgent", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua, may not be passed, default is navigator.appVersion" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + } + } + }, + { + "id": 1250, + "name": "getCHSLength", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 183, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L183" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1251, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getCHSLength.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getCHSLength.ts#L13" + } + ], + "signatures": [ + { + "id": 1252, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getCHSLength.ts#L13" + } + ], + "parameters": [ + { + "id": 1253, + "name": "str", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } + } + }, + { + "id": 1026, + "name": "getCache", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 146, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L146" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1027, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getCache.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getCache.ts#L24" + } + ], + "signatures": [ + { + "id": 1028, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getCache.ts#L24" + } + ], + "parameters": [ + { + "id": 1029, + "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": 1056, + "name": "getCookie", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 152, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L152" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1057, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getCookie.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getCookie.ts#L13" + } + ], + "signatures": [ + { + "id": 1058, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getCookie.ts#L13" + } + ], + "parameters": [ + { + "id": 1059, + "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": 1060, + "name": "getCookies", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 153, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L153" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1061, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getCookies.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getCookies.ts#L12" + } + ], + "signatures": [ + { + "id": 1062, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getCookies.ts#L12" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1254, + "name": "getDirParam", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 184, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L184" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1255, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getDirParam.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getDirParam.ts#L14" + } + ], + "signatures": [ + { + "id": 1256, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getDirParam.ts#L14" + } + ], + "parameters": [ + { + "id": 1257, + "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": 600, + "name": "DirParamType", + "package": "js-cool" + } + } + ] + } + } + }, + { + "id": 1358, + "name": "getFileType", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 201, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L201" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1359, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getFileType.ts#L19" + } + ], + "signatures": [ + { + "id": 1360, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getFileType.ts#L19" + } + ], + "parameters": [ + { + "id": 1361, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "file url" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1362, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 1363, + "name": "suffix", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 48, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getFileType.ts#L48" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1364, + "name": "type", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 49, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/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": [ + 1363, + 1364 + ] + } + ], + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 47, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getFileType.ts#L47" + } + ] + } + } + } + ] + } + } + }, + { + "id": 1263, + "name": "getNumber", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 186, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L186" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1264, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getNumber.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getNumber.ts#L16" + } + ], + "signatures": [ + { + "id": 1265, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getNumber.ts#L16" + } + ], + "parameters": [ + { + "id": 1266, + "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": 1267, + "name": "getOsVersion", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 187, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L187" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1268, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getOsVersion.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getOsVersion.ts#L21" + } + ], + "signatures": [ + { + "id": 1269, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getOsVersion.ts#L21" + } + ], + "parameters": [ + { + "id": 1270, + "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": 1271, + "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": 1272, + "name": "userAgent", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua, may not be passed, default takes navigator.appVersion" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + } + } + }, + { + "id": 1297, + "name": "getProperty", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 192, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L192" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1298, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getProperty.ts#L25" + }, + { + "fileName": "src/getProperty.ts", + "line": 30, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getProperty.ts#L30" + }, + { + "fileName": "src/getProperty.ts", + "line": 35, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getProperty.ts#L35" + } + ], + "signatures": [ + { + "id": 1299, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getProperty.ts#L25" + } + ], + "typeParameter": [ + { + "id": 1300, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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": 1301, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "target array, object" + } + ] + }, + "type": { + "type": "reference", + "target": 902, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1302, + "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": 1303, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 27, + "character": 16, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getProperty.ts#L27" + } + ], + "signatures": [ + { + "id": 1304, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 27, + "character": 18, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getProperty.ts#L27" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 1305, + "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": 1306, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 30, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getProperty.ts#L30" + } + ], + "typeParameter": [ + { + "id": 1307, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "parameters": [ + { + "id": 1308, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 909, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1309, + "name": "prop", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reflection", + "declaration": { + "id": 1310, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 32, + "character": 16, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getProperty.ts#L32" + } + ], + "signatures": [ + { + "id": 1311, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 32, + "character": 18, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getProperty.ts#L32" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 1312, + "name": "defaultValue", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + } + }, + { + "id": 1281, + "name": "getQueryParam", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 190, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L190" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1282, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParam.ts#L20" + }, + { + "fileName": "src/getQueryParam.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParam.ts#L21" + }, + { + "fileName": "src/getQueryParam.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParam.ts#L22" + } + ], + "signatures": [ + { + "id": 1283, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParam.ts#L20" + } + ], + "parameters": [ + { + "id": 1284, + "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": 1285, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParam.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParam.ts#L21" + } + ], + "parameters": [ + { + "id": 1286, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1287, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ] + } + } + }, + { + "id": 1288, + "name": "getQueryParams", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 191, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L191" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1289, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParams.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParams.ts#L23" + }, + { + "fileName": "src/getQueryParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParams.ts#L24" + }, + { + "fileName": "src/getQueryParams.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParams.ts#L25" + }, + { + "fileName": "src/getQueryParams.ts", + "line": 26, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParams.ts#L26" + } + ], + "signatures": [ + { + "id": 1290, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParams.ts#L23" + } + ], + "parameters": [ + { + "id": 1291, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 1292, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParams.ts#L24" + } + ], + "parameters": [ + { + "id": 1293, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 1294, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParams.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParams.ts#L25" + } + ], + "parameters": [ + { + "id": 1295, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1296, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1350, + "name": "getScrollPosition", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 199, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L199" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1351, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getScrollPosition.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getScrollPosition.ts#L8" + } + ], + "signatures": [ + { + "id": 1352, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getScrollPosition.ts#L8" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "literal", + "value": "bottom" + }, + { + "type": "literal", + "value": "top" + } + ] + } + } + ] + } + } + }, + { + "id": 1041, + "name": "getSession", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 149, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L149" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1042, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getSession.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getSession.ts#L24" + } + ], + "signatures": [ + { + "id": 1043, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getSession.ts#L24" + } + ], + "parameters": [ + { + "id": 1044, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + } + }, + { + "id": 1353, + "name": "getType", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 200, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L200" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1354, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getType.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getType.ts#L8" + } + ], + "signatures": [ + { + "id": 1355, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getType.ts#L8" + } + ], + "typeParameter": [ + { + "id": 1356, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "parameters": [ + { + "id": 1357, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "target" + } + ] + }, + "type": { + "type": "reference", + "target": 787, + "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": "null" + }, + { + "type": "literal", + "value": "array" + }, + { + "type": "literal", + "value": "date" + }, + { + "type": "literal", + "value": "regexp" + } + ] + } + } + ] + } + } + }, + { + "id": 1405, + "name": "getUrlParam", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 208, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L208" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1406, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParam.ts#L20" + }, + { + "fileName": "src/getUrlParam.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParam.ts#L21" + }, + { + "fileName": "src/getUrlParam.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParam.ts#L22" + } + ], + "signatures": [ + { + "id": 1407, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParam.ts#L20" + } + ], + "parameters": [ + { + "id": 1408, + "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": 1409, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParam.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParam.ts#L21" + } + ], + "parameters": [ + { + "id": 1410, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1411, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ] + } + } + }, + { + "id": 1412, + "name": "getUrlParams", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 209, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L209" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1413, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParams.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParams.ts#L23" + }, + { + "fileName": "src/getUrlParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParams.ts#L24" + }, + { + "fileName": "src/getUrlParams.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParams.ts#L25" + }, + { + "fileName": "src/getUrlParams.ts", + "line": 26, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParams.ts#L26" + } + ], + "signatures": [ + { + "id": 1414, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParams.ts#L23" + } + ], + "parameters": [ + { + "id": 1415, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 1416, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParams.ts#L24" + } + ], + "parameters": [ + { + "id": 1417, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 1418, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParams.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParams.ts#L25" + } + ], + "parameters": [ + { + "id": 1419, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1420, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1477, + "name": "inBrowser", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 223, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L223" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1478, + "name": "inNodeJs", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 224, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L224" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1421, + "name": "intersect", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 210, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L210" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1422, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/intersect.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/intersect.ts#L14" + } + ], + "signatures": [ + { + "id": 1423, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/intersect.ts#L14" + } + ], + "typeParameter": [ + { + "id": 1424, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1425, + "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": 875, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 875, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 1461, + "name": "isArray", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 219, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L219" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1462, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isArray.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isArray.ts#L12" + } + ], + "signatures": [ + { + "id": 1463, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isArray.ts#L12" + } + ], + "parameters": [ + { + "id": 1464, + "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": 1474, + "name": "isDarkMode", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 222, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L222" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1475, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isDarkMode.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isDarkMode.ts#L11" + } + ], + "signatures": [ + { + "id": 1476, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isDarkMode.ts#L11" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1453, + "name": "isDate", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 217, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L217" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1454, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isDate.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isDate.ts#L17" + } + ], + "signatures": [ + { + "id": 1455, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isDate.ts#L17" + } + ], + "parameters": [ + { + "id": 1456, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Date" + }, + "name": "Date", + "package": "typescript" + } + } + } + ] + } + } + }, + { + "id": 1426, + "name": "isDigitals", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 211, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L211" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1427, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isDigitals.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isDigitals.ts#L9" + } + ], + "signatures": [ + { + "id": 1428, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isDigitals.ts#L9" + } + ], + "parameters": [ + { + "id": 1429, + "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": 1438, + "name": "isEqual", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 214, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L214" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1439, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isEqual.ts", + "line": 123, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isEqual.ts#L123" + } + ], + "signatures": [ + { + "id": 1440, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isEqual.ts#L123" + } + ], + "typeParameter": [ + { + "id": 1441, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 1442, + "name": "P", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 1443, + "name": "a", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "source" + } + ] + }, + "type": { + "type": "reference", + "target": 160, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1444, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "compare" + } + ] + }, + "type": { + "type": "reference", + "target": 161, + "name": "P", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1430, + "name": "isExitsFunction", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 212, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L212" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1431, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isExitsFunction.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isExitsFunction.ts#L15" + } + ], + "signatures": [ + { + "id": 1432, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isExitsFunction.ts#L15" + } + ], + "parameters": [ + { + "id": 1433, + "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": 1434, + "name": "isExitsVariable", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 213, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L213" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1435, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isExitsVariable.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isExitsVariable.ts#L13" + } + ], + "signatures": [ + { + "id": 1436, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isExitsVariable.ts#L13" + } + ], + "parameters": [ + { + "id": 1437, + "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": 1465, + "name": "isIterable", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 220, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L220" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1466, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isIterable.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isIterable.ts#L12" + } + ], + "signatures": [ + { + "id": 1467, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isIterable.ts#L12" + } + ], + "typeParameter": [ + { + "id": 1468, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "parameters": [ + { + "id": 1469, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 528, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Iterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 528, + "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.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Iterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 528, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "Iterable", + "package": "typescript" + } + } + } + ] + } + } + }, + { + "id": 1449, + "name": "isObject", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 216, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L216" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1450, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isObject.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isObject.ts#L14" + } + ], + "signatures": [ + { + "id": 1451, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isObject.ts#L14" + } + ], + "parameters": [ + { + "id": 1452, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Object" + }, + "name": "Object", + "package": "typescript" + } + } + } + ] + } + } + }, + { + "id": 1470, + "name": "isPlainObject", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 221, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L221" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1471, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 28, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isPlainObject.ts#L28" + } + ], + "signatures": [ + { + "id": 1472, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isPlainObject.ts#L28" + } + ], + "parameters": [ + { + "id": 1473, + "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": 174, + "name": "PlainObject", + "package": "js-cool" + } + } + } + ] + } + } + }, + { + "id": 1457, + "name": "isRegExp", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 218, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L218" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1458, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isRegExp.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isRegExp.ts#L14" + } + ], + "signatures": [ + { + "id": 1459, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isRegExp.ts#L14" + } + ], + "parameters": [ + { + "id": 1460, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + } + } + } + ] + } + } + }, + { + "id": 1445, + "name": "isWindow", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 215, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L215" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1446, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isWindow.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isWindow.ts#L15" + } + ], + "signatures": [ + { + "id": 1447, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isWindow.ts#L15" + } + ], + "parameters": [ + { + "id": 1448, + "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.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Window" + }, + "name": "Window", + "package": "typescript" + } + } + } + ] + } + } + }, + { + "id": 1674, + "name": "loadSource", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 258, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L258" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1675, + "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": 1676, + "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": 1677, + "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": 1678, + "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.4.5/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": 1222, + "name": "mapTemplate", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 180, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L180" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1223, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/mapTemplate.ts", + "line": 28, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/mapTemplate.ts#L28" + } + ], + "signatures": [ + { + "id": 1224, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/mapTemplate.ts#L28" + } + ], + "parameters": [ + { + "id": 1225, + "name": "tmp", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Template string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1226, + "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.4.5/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": 1227, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/mapTemplate.ts", + "line": 30, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/mapTemplate.ts#L30" + } + ], + "signatures": [ + { + "id": 1228, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/mapTemplate.ts", + "line": 30, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/mapTemplate.ts#L30" + } + ], + "parameters": [ + { + "id": 1229, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1479, + "name": "minus", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 225, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L225" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1480, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/minus.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/minus.ts#L15" + } + ], + "signatures": [ + { + "id": 1481, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/minus.ts#L15" + } + ], + "typeParameter": [ + { + "id": 1482, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1483, + "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": 883, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 883, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 1679, + "name": "mountCss", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 259, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L259" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1680, + "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": 1681, + "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": 1682, + "name": "src", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "resource address" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1683, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1684, + "name": "mountImg", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 260, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L260" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1685, + "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": 1686, + "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": 1687, + "name": "src", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "resource address" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1688, + "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.4.5/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": 1689, + "name": "mountJs", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 261, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L261" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1690, + "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": 1691, + "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": 1692, + "name": "src", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "resource address" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1693, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1694, + "name": "mountStyle", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 262, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L262" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1695, + "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": 1696, + "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": 1697, + "name": "css", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1698, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1484, + "name": "nextIndex", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 226, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L226" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1485, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/nextIndex.ts", + "line": 32, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/nextIndex.ts#L32" + } + ], + "signatures": [ + { + "id": 1486, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/nextIndex.ts#L32" + } + ], + "parameters": [ + { + "id": 1487, + "name": "min", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, minimum value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "5000" + }, + { + "id": 1488, + "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": 1489, + "name": "nextVersion", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 227, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L227" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1490, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 26, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/nextVersion.ts#L26" + } + ], + "signatures": [ + { + "id": 1491, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/nextVersion.ts#L26" + } + ], + "parameters": [ + { + "id": 1492, + "name": "version", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "version(like: 1.0.0)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1493, + "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": 1494, + "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": 1589, + "name": "openUrl", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 243, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L243" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1590, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/openUrl.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/openUrl.ts#L7" + } + ], + "signatures": [ + { + "id": 1591, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/openUrl.ts#L7" + } + ], + "parameters": [ + { + "id": 1592, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "link" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1273, + "name": "osVersion", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 188, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L188" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1274, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/osVersion.ts", + "line": 36, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/osVersion.ts#L36" + } + ], + "signatures": [ + { + "id": 1275, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/osVersion.ts#L36" + } + ], + "parameters": [ + { + "id": 1276, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua or any ua like string, may not be passed, default is navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 563, + "name": "OsVersion", + "package": "js-cool" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + } + } + }, + { + "id": 1384, + "name": "parseUrlParam", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 204, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L204" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1385, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/parseUrlParam.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/parseUrlParam.ts#L19" + } + ], + "signatures": [ + { + "id": 1386, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/parseUrlParam.ts#L19" + } + ], + "parameters": [ + { + "id": 1387, + "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": 1388, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1597, + "name": "pattern", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 245, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L245" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1598, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 1599, + "name": "any", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 9, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L9" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1614, + "name": "array", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 26, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L26" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1613, + "name": "arrjson", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 25, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L25" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1608, + "name": "chinese", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 20, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L20" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1606, + "name": "email", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 16, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L16" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1605, + "name": "float", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 15, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L15" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1615, + "name": "isjson", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 27, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L27" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1612, + "name": "json", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 24, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L24" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1607, + "name": "mobile", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 19, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L19" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1600, + "name": "number", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 10, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L10" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1611, + "name": "pass", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 23, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L23" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1602, + "name": "postcode", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 12, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L12" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1610, + "name": "qq", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 22, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L22" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1601, + "name": "string", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 11, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L11" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1609, + "name": "tel", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 21, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L21" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1616, + "name": "textarea", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 28, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L28" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1603, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 13, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L13" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1604, + "name": "username", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 14, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L14" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 1599, + 1614, + 1613, + 1608, + 1606, + 1605, + 1615, + 1612, + 1607, + 1600, + 1611, + 1602, + 1610, + 1601, + 1609, + 1616, + 1603, + 1604 + ] + } + ], + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 8, + "character": 16, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L8" + } + ] + } + } + }, + { + "id": 1699, + "name": "preloader", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 263, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L263" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1700, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/preloader.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/preloader.ts#L7" + }, + { + "fileName": "src/preloader.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/preloader.ts#L8" + }, + { + "fileName": "src/preloader.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/preloader.ts#L9" + } + ], + "signatures": [ + { + "id": 1701, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/preloader.ts#L7" + } + ], + "parameters": [ + { + "id": 1702, + "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.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "HTMLImageElement" + }, + "name": "HTMLImageElement", + "package": "typescript" + } + }, + { + "id": 1703, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/preloader.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/preloader.ts#L8" + } + ], + "parameters": [ + { + "id": 1704, + "name": "images", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "HTMLImageElement" + }, + "name": "HTMLImageElement", + "package": "typescript" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1513, + "name": "promiseFactory", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 229, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L229" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1514, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/promiseFactory.ts", + "line": 32, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/promiseFactory.ts#L32" + } + ], + "signatures": [ + { + "id": 1515, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/promiseFactory.ts#L32" + } + ], + "typeParameter": [ + { + "id": 1516, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "parameters": [ + { + "id": 1517, + "name": "original", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "original object" + } + ] + }, + "type": { + "type": "reference", + "target": 736, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1518, + "name": "resolver", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "resolver function" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 1519, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/promiseFactory.ts", + "line": 34, + "character": 11, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/promiseFactory.ts#L34" + } + ], + "signatures": [ + { + "id": 1520, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/promiseFactory.ts", + "line": 34, + "character": 11, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/promiseFactory.ts#L34" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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": 736, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "PromiseLike" + }, + "typeArguments": [ + { + "type": "reference", + "target": 736, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "PromiseLike", + "package": "typescript" + } + ] + } + } + ] + } + } + }, + { + "id": 1495, + "name": "punctualTimer", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 228, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L228" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1496, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/punctualTimer.ts#L14" + }, + { + "fileName": "src/punctualTimer.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/punctualTimer.ts#L19" + }, + { + "fileName": "src/punctualTimer.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/punctualTimer.ts#L24" + } + ], + "signatures": [ + { + "id": 1497, + "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())\npunctualTimer(printDate, 1000)\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.18.0" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/punctualTimer.ts#L14" + } + ], + "typeParameter": [ + { + "id": 1498, + "name": "TArgs", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "parameters": [ + { + "id": 1499, + "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": 1500, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 15, + "character": 10, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/punctualTimer.ts#L15" + } + ], + "signatures": [ + { + "id": 1501, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 15, + "character": 10, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/punctualTimer.ts#L15" + } + ], + "parameters": [ + { + "id": 1502, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1503, + "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": 1504, + "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": 719, + "name": "TArgs", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + }, + { + "id": 1505, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/punctualTimer.ts#L19" + } + ], + "typeParameter": [ + { + "id": 1506, + "name": "TArgs", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "parameters": [ + { + "id": 1507, + "name": "handler", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 1508, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 20, + "character": 10, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/punctualTimer.ts#L20" + } + ], + "signatures": [ + { + "id": 1509, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 20, + "character": 10, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/punctualTimer.ts#L20" + } + ], + "parameters": [ + { + "id": 1510, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 727, + "name": "TArgs", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1511, + "name": "delay", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1512, + "name": "__namedParameters", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 727, + "name": "TArgs", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1313, + "name": "randomColor", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 193, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L193" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1314, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/randomColor.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomColor.ts#L25" + } + ], + "signatures": [ + { + "id": 1315, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomColor.ts#L25" + } + ], + "parameters": [ + { + "id": 1316, + "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": 1317, + "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": 1318, + "name": "randomNumber", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 194, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L194" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1319, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/randomNumber.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomNumber.ts#L17" + } + ], + "signatures": [ + { + "id": 1320, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomNumber.ts#L17" + } + ], + "parameters": [ + { + "id": 1321, + "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": 1322, + "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": 1323, + "name": "randomNumbers", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 195, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L195" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1324, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/randomNumbers.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomNumbers.ts#L24" + } + ], + "signatures": [ + { + "id": 1325, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomNumbers.ts#L24" + } + ], + "parameters": [ + { + "id": 1326, + "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": 1327, + "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": 1328, + "name": "noZero", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "number" + } + } + } + ] + } + } + }, + { + "id": 1329, + "name": "randomString", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 196, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L196" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1330, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 78, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomString.ts#L78" + }, + { + "fileName": "src/randomString.ts", + "line": 79, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomString.ts#L79" + }, + { + "fileName": "src/randomString.ts", + "line": 83, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomString.ts#L83" + } + ], + "signatures": [ + { + "id": 1331, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomString.ts#L78" + } + ], + "parameters": [ + { + "id": 1332, + "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": 1333, + "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": 127, + "name": "RandomStringOptions", + "package": "js-cool" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1334, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 79, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomString.ts#L79" + } + ], + "parameters": [ + { + "id": 1335, + "name": "len", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reference", + "target": 127, + "name": "RandomStringOptions", + "package": "js-cool" + } + ] + } + }, + { + "id": 1336, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reference", + "target": 127, + "name": "RandomStringOptions", + "package": "js-cool" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1617, + "name": "removeEvent", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 246, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L246" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1618, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/removeEvent.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/removeEvent.ts#L11" + } + ], + "signatures": [ + { + "id": 1619, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/removeEvent.ts#L11" + } + ], + "parameters": [ + { + "id": 1620, + "name": "element", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "js dom object" + } + ] + }, + "type": { + "type": "reference", + "target": 967, + "name": "AnyObject", + "package": "js-cool" + } + }, + { + "id": 1621, + "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": 1622, + "name": "handler", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Callback method." + } + ] + }, + "type": { + "type": "reference", + "target": 968, + "name": "AnyFunction", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1395, + "name": "safeParse", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 206, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L206" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1396, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/safeParse.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/safeParse.ts#L16" + } + ], + "signatures": [ + { + "id": 1397, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/safeParse.ts#L16" + } + ], + "parameters": [ + { + "id": 1398, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "JSON string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1399, + "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": 1400, + "name": "safeStringify", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 207, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L207" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1401, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/safeStringify.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/safeStringify.ts#L25" + } + ], + "signatures": [ + { + "id": 1402, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/safeStringify.ts#L25" + } + ], + "parameters": [ + { + "id": 1403, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "JSON Object" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 1404, + "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": 1623, + "name": "searchObject", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 247, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L247" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1624, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/searchObject.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/searchObject.ts#L17" + } + ], + "signatures": [ + { + "id": 1625, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/searchObject.ts#L17" + } + ], + "parameters": [ + { + "id": 1626, + "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": 1627, + "name": "expression", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "required Query method" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 1628, + "name": "keySet", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional Default subclass name, query name" + } + ] + }, + "type": { + "type": "reference", + "target": 823, + "name": "SearchKeySet", + "package": "js-cool" + } + }, + { + "id": 1629, + "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": 1030, + "name": "setCache", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 147, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L147" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1031, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/setCache.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/setCache.ts#L25" + } + ], + "signatures": [ + { + "id": 1032, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/setCache.ts#L25" + } + ], + "typeParameter": [ + { + "id": 1033, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1034, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cache name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1035, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cache data, can be passed directly into Object" + } + ] + }, + "type": { + "type": "reference", + "target": 636, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1036, + "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": 1063, + "name": "setCookie", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 154, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L154" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1064, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/setCookie.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/setCookie.ts#L22" + } + ], + "signatures": [ + { + "id": 1065, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/setCookie.ts#L22" + } + ], + "typeParameter": [ + { + "id": 1066, + "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": 1067, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cookie name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1068, + "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": 662, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1069, + "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": 1070, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "path, default '/'" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "'/'" + }, + { + "id": 1071, + "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": 1630, + "name": "setProperty", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 248, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L248" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1631, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/setProperty.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/setProperty.ts#L24" + } + ], + "signatures": [ + { + "id": 1632, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/setProperty.ts#L24" + } + ], + "parameters": [ + { + "id": 1633, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "target array, object" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 1634, + "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": 1635, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/setProperty.ts", + "line": 24, + "character": 49, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/setProperty.ts#L24" + } + ], + "signatures": [ + { + "id": 1636, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/setProperty.ts", + "line": 24, + "character": 51, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/setProperty.ts#L24" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 1637, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + } + }, + { + "id": 1045, + "name": "setSession", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 150, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L150" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1046, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/setSession.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/setSession.ts#L25" + } + ], + "signatures": [ + { + "id": 1047, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/setSession.ts#L25" + } + ], + "typeParameter": [ + { + "id": 1048, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1049, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1050, + "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": 648, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1051, + "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": 1337, + "name": "shuffle", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 197, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L197" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1338, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/shuffle.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/shuffle.ts#L23" + }, + { + "fileName": "src/shuffle.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/shuffle.ts#L24" + }, + { + "fileName": "src/shuffle.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/shuffle.ts#L25" + } + ], + "signatures": [ + { + "id": 1339, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/shuffle.ts#L23" + } + ], + "parameters": [ + { + "id": 1340, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrays or strings" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1341, + "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": 1342, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/shuffle.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/shuffle.ts#L24" + } + ], + "typeParameter": [ + { + "id": 1343, + "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": 1344, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 138, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1345, + "name": "size", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "target": 138, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ] + } + } + }, + { + "id": 1376, + "name": "sortPinyin", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 203, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L203" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1377, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/sortPinyin.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/sortPinyin.ts#L22" + } + ], + "signatures": [ + { + "id": 1378, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/sortPinyin.ts#L22" + } + ], + "typeParameter": [ + { + "id": 1379, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1380, + "name": "P", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + } + ], + "parameters": [ + { + "id": 1381, + "name": "a", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The first element for comparison." + } + ] + }, + "type": { + "type": "reference", + "target": 807, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1382, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The second element for comparison." + } + ] + }, + "type": { + "type": "reference", + "target": 808, + "name": "P", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1383, + "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.4.5/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": 1365, + "name": "sorter", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 202, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L202" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1366, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/sorter.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/sorter.ts#L22" + } + ], + "signatures": [ + { + "id": 1367, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/sorter.ts#L22" + } + ], + "parameters": [ + { + "id": 1368, + "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": 1369, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Intl.CollatorOptions" + }, + "name": "CollatorOptions", + "package": "typescript", + "qualifiedName": "Intl.CollatorOptions" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1370, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/sorter.ts", + "line": 23, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/sorter.ts#L23" + } + ], + "signatures": [ + { + "id": 1371, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/sorter.ts", + "line": 23, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/sorter.ts#L23" + } + ], + "typeParameter": [ + { + "id": 1372, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1373, + "name": "P", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + } + ], + "parameters": [ + { + "id": 1374, + "name": "a", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 801, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1375, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 802, + "name": "P", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } + } + } + ] + } + } + }, + { + "id": 1389, + "name": "spliceUrlParam", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 205, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L205" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1390, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/spliceUrlParam.ts", + "line": 26, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/spliceUrlParam.ts#L26" + } + ], + "signatures": [ + { + "id": 1391, + "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\\}', true)\n// ?key1=100&key2=true&key3=&key4=\n\nspliceUrlParam('\\{\"key1\":\"100\",\"key2\":true,\"key3\":null,\"key4\":undefined\\}', true, 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": 26, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/spliceUrlParam.ts#L26" + } + ], + "typeParameter": [ + { + "id": 1392, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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": 1393, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "json object" + } + ] + }, + "type": { + "type": "reference", + "target": 582, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 1394, + "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": 585, + "name": "SpliceUrlParamOptions", + "package": "js-cool" + } + ] + }, + "defaultValue": "false" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1638, + "name": "stopBubble", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 249, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L249" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1639, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/stopBubble.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/stopBubble.ts#L8" + } + ], + "signatures": [ + { + "id": 1640, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/stopBubble.ts#L8" + } + ], + "parameters": [ + { + "id": 1641, + "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.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Event" + }, + "name": "Event", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1642, + "name": "stopDefault", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 250, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L250" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1643, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/stopDefault.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/stopDefault.ts#L8" + } + ], + "signatures": [ + { + "id": 1644, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/stopDefault.ts#L8" + } + ], + "parameters": [ + { + "id": 1645, + "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.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Event" + }, + "name": "Event", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1581, + "name": "svgToBlob", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 241, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L241" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1582, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/svgToBlob.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/svgToBlob.ts#L8" + } + ], + "signatures": [ + { + "id": 1583, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/svgToBlob.ts#L8" + } + ], + "parameters": [ + { + "id": 1584, + "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.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1646, + "name": "toThousands", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 251, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L251" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1647, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/toThousands.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/toThousands.ts#L19" + } + ], + "signatures": [ + { + "id": 1648, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/toThousands.ts#L19" + } + ], + "parameters": [ + { + "id": 1649, + "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": 1650, + "name": "trim", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 252, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L252" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1651, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/trim.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/trim.ts#L9" + } + ], + "signatures": [ + { + "id": 1652, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/trim.ts#L9" + } + ], + "parameters": [ + { + "id": 1653, + "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": 1098, + "name": "unescape", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 161, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L161" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1099, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/unescape.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/unescape.ts#L13" + } + ], + "signatures": [ + { + "id": 1100, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/unescape.ts#L13" + } + ], + "parameters": [ + { + "id": 1101, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1654, + "name": "union", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 253, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L253" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1655, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/union.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/union.ts#L19" + } + ], + "signatures": [ + { + "id": 1656, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/union.ts#L19" + } + ], + "typeParameter": [ + { + "id": 1657, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1658, + "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": 879, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 879, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 1659, + "name": "unique", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 254, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L254" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1660, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/unique.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/unique.ts#L14" + } + ], + "signatures": [ + { + "id": 1661, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/unique.ts#L14" + } + ], + "typeParameter": [ + { + "id": 1662, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1663, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "array data" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 895, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 895, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 1664, + "name": "upperFirst", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 255, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L255" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1665, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/upperFirst.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/upperFirst.ts#L12" + } + ], + "signatures": [ + { + "id": 1666, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/upperFirst.ts#L12" + } + ], + "parameters": [ + { + "id": 1667, + "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": 1585, + "name": "urlToBlob", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 242, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L242" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1586, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/urlToBlob.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/urlToBlob.ts#L8" + } + ], + "signatures": [ + { + "id": 1587, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/urlToBlob.ts#L8" + } + ], + "parameters": [ + { + "id": 1588, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1668, + "name": "uuid", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 256, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L256" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1669, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/uuid.ts", + "line": 11, + "character": 13, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/uuid.ts#L11" + } + ], + "signatures": [ + { + "id": 1670, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/uuid.ts#L11" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1000, + "name": "version", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 140, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L140" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "'__VERSION__'" + }, + { + "id": 1521, + "name": "waiting", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 230, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L230" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1522, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/waiting.ts", + "line": 8, + "character": 16, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/waiting.ts#L8" + } + ], + "signatures": [ + { + "id": 1523, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/waiting.ts#L8" + } + ], + "parameters": [ + { + "id": 1524, + "name": "milliseconds", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "waiting time (milliseconds)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1525, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1671, + "name": "windowSize", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 257, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L257" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1672, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/windowSize.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/windowSize.ts#L16" + } + ], + "signatures": [ + { + "id": 1673, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/windowSize.ts#L16" + } + ], + "type": { + "type": "reference", + "target": 534, + "name": "WindowSizeObj", + "package": "js-cool" + } + } + ] + } + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 1131, + 1143, + 1148, + 1007, + 1013, + 1014, + 1020, + 1236, + 1542, + 1547, + 1137, + 1526, + 1552, + 1556, + 1560, + 1565, + 1569, + 1573, + 1277, + 1076, + 1080, + 1086, + 1090, + 1102, + 1208, + 1258, + 1121, + 1126, + 1593, + 1154, + 1160, + 1164, + 1168, + 1037, + 1072, + 1052, + 1172, + 1001, + 1186, + 1190, + 1094, + 1194, + 1577, + 1213, + 1346, + 1217, + 1230, + 1250, + 1026, + 1056, + 1060, + 1254, + 1358, + 1263, + 1267, + 1297, + 1281, + 1288, + 1350, + 1041, + 1353, + 1405, + 1412, + 1477, + 1478, + 1421, + 1461, + 1474, + 1453, + 1426, + 1438, + 1430, + 1434, + 1465, + 1449, + 1470, + 1457, + 1445, + 1674, + 1222, + 1479, + 1679, + 1684, + 1689, + 1694, + 1484, + 1489, + 1589, + 1273, + 1384, + 1597, + 1699, + 1513, + 1495, + 1313, + 1318, + 1323, + 1329, + 1617, + 1395, + 1400, + 1623, + 1030, + 1063, + 1630, + 1045, + 1337, + 1376, + 1365, + 1389, + 1638, + 1642, + 1581, + 1646, + 1650, + 1098, + 1654, + 1659, + 1664, + 1585, + 1668, + 1000, + 1521, + 1671 + ] + } + ], + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 139, + "character": 15, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.default.ts#L139" + } + ] + } + } + }, + { + "id": 530, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/inBrowser.ts#L7" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 531, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/inNodeJs.ts#L7" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L9" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L26" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L25" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L20" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L16" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L15" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L27" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L24" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L19" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L10" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L23" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L12" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L22" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L11" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L21" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L28" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L13" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L14" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 62, + 77, + 76, + 71, + 69, + 68, + 78, + 75, + 70, + 63, + 74, + 65, + 73, + 64, + 72, + 79, + 66, + 67 + ] + } + ], + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 8, + "character": 16, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/pattern.ts#L8" + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 1, + "name": "version", + "variant": "declaration", + "kind": 32, + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "src/index.ts", + "line": 165, + "character": 13, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/index.ts#L165" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 849, + "name": "CSVToArray", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/CSVToArray.ts", + "line": 21, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/CSVToArray.ts#L21" + } + ], + "signatures": [ + { + "id": 850, + "name": "CSVToArray", + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/CSVToArray.ts#L21" + } + ], + "parameters": [ + { + "id": 851, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "csv data" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 852, + "name": "delimiter", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "separator, default ','" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "','" + }, + { + "id": 853, + "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": 859, + "name": "CSVToJSON", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/CSVToJSON.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/CSVToJSON.ts#L17" + } + ], + "signatures": [ + { + "id": 860, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/CSVToJSON.ts#L17" + } + ], + "parameters": [ + { + "id": 861, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "csv data" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 862, + "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": 863, + "name": "JSONToCSV", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/JSONToCSV.ts", + "line": 18, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/JSONToCSV.ts#L18" + } + ], + "signatures": [ + { + "id": 864, + "name": "JSONToCSV", + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/JSONToCSV.ts#L18" + } + ], + "parameters": [ + { + "id": 865, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 866, + "name": "columns", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the specified columns" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 867, + "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": 868, + "name": "RGBToHex", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/RGBToHex.ts", + "line": 15, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/RGBToHex.ts#L15" + } + ], + "signatures": [ + { + "id": 869, + "name": "RGBToHex", + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/RGBToHex.ts#L15" + } + ], + "parameters": [ + { + "id": 870, + "name": "r", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the 1st value of RGB" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 871, + "name": "g", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "RGB's 2nd value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 872, + "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": 689, + "name": "addEvent", + "variant": "declaration", + "kind": 64, + "flags": {}, + "children": [ + { + "id": 694, + "name": "guid", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/addEvent.ts", + "line": 37, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/addEvent.ts#L37" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 694 + ] + } + ], + "sources": [ + { + "fileName": "src/addEvent.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/addEvent.ts#L13" + }, + { + "fileName": "src/addEvent.ts", + "line": 37, + "character": 0, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/addEvent.ts#L37" + } + ], + "signatures": [ + { + "id": 690, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/addEvent.ts#L13" + } + ], + "parameters": [ + { + "id": 691, + "name": "element", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "js dom object" + } + ] + }, + "type": { + "type": "reference", + "target": 967, + "name": "AnyObject", + "package": "js-cool" + } + }, + { + "id": 692, + "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": 693, + "name": "handler", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "callback method" + } + ] + }, + "type": { + "type": "reference", + "target": 968, + "name": "AnyFunction", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 837, + "name": "all", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/all.ts", + "line": 16, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/all.ts#L16" + } + ], + "signatures": [ + { + "id": 838, + "name": "all", + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/all.ts#L16" + } + ], + "typeParameter": [ + { + "id": 839, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 840, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the target array" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 839, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + }, + { + "id": 841, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the judgment method" + } + ] + }, + "type": { + "type": "reference", + "target": 968, + "name": "AnyFunction", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 842, + "name": "any", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/any.ts", + "line": 15, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/any.ts#L15" + } + ], + "signatures": [ + { + "id": 843, + "name": "any", + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/any.ts#L15" + } + ], + "typeParameter": [ + { + "id": 844, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 845, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the target array" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 844, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + }, + { + "id": 846, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the judgment method" + } + ] + }, + "type": { + "type": "reference", + "target": 968, + "name": "AnyFunction", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 542, + "name": "appVersion", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/appVersion.ts#L20" + }, + { + "fileName": "src/appVersion.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/appVersion.ts#L21" + }, + { + "fileName": "src/appVersion.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/appVersion.ts#L22" + }, + { + "fileName": "src/appVersion.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/appVersion.ts#L23" + }, + { + "fileName": "src/appVersion.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/appVersion.ts#L24" + } + ], + "signatures": [ + { + "id": 543, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/appVersion.ts#L20" + } + ], + "parameters": [ + { + "id": 544, + "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": 545, + "name": "appVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/appVersion.ts#L21" + } + ], + "parameters": [ + { + "id": 546, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 547, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 548, + "name": "appVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/appVersion.ts#L22" + } + ], + "parameters": [ + { + "id": 549, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 550, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 551, + "name": "appVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/appVersion.ts#L23" + } + ], + "parameters": [ + { + "id": 552, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 553, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 554, + "name": "ignoreCase", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + }, + { + "id": 931, + "name": "arrayBufferToBase64", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/arrayBufferToBase64.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/arrayBufferToBase64.ts#L17" + } + ], + "signatures": [ + { + "id": 932, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/arrayBufferToBase64.ts#L17" + } + ], + "parameters": [ + { + "id": 933, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrayBuffer" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + } + }, + { + "id": 934, + "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": 935, + "name": "arrayBufferToBlob", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/arrayBufferToBlob.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/arrayBufferToBlob.ts#L9" + } + ], + "signatures": [ + { + "id": 936, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/arrayBufferToBlob.ts#L9" + } + ], + "parameters": [ + { + "id": 937, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrayBuffer" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + } + }, + { + "id": 938, + "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.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ] + }, + { + "id": 854, + "name": "arrayToCSV", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/arrayToCSV.ts", + "line": 20, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/arrayToCSV.ts#L20" + } + ], + "signatures": [ + { + "id": 855, + "name": "arrayToCSV", + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/arrayToCSV.ts#L20" + } + ], + "typeParameter": [ + { + "id": 856, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + } + } + ], + "parameters": [ + { + "id": 857, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 856, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 858, + "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": 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 + } + ], + "typeParameter": [ + { + "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.4.5/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.4.5/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.4.5/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 + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "line": 22, + "character": 17 + } + ], + "typeParameter": [ + { + "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.4.5/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 + }, + "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.4.5/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 + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "line": 24, + "character": 17 + } + ], + "typeParameter": [ + { + "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.4.5/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 + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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 + }, + "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.4.5/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": 939, + "name": "base64ToArrayBuffer", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/base64ToArrayBuffer.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/base64ToArrayBuffer.ts#L10" + } + ], + "signatures": [ + { + "id": 940, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/base64ToArrayBuffer.ts#L10" + } + ], + "parameters": [ + { + "id": 941, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + } + } + ] + }, + { + "id": 942, + "name": "base64ToBlob", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/base64ToBlob.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/base64ToBlob.ts#L10" + } + ], + "signatures": [ + { + "id": 943, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/base64ToBlob.ts#L10" + } + ], + "parameters": [ + { + "id": 944, + "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.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ] + }, + { + "id": 945, + "name": "base64ToFile", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/base64ToFile.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/base64ToFile.ts#L11" + } + ], + "signatures": [ + { + "id": 946, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/base64ToFile.ts#L11" + } + ], + "parameters": [ + { + "id": 947, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 948, + "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.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "File" + }, + "name": "File", + "package": "typescript" + } + } + ] + }, + { + "id": 949, + "name": "blobToArrayBuffer", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/blobToArrayBuffer.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/blobToArrayBuffer.ts#L8" + } + ], + "signatures": [ + { + "id": 950, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/blobToArrayBuffer.ts#L8" + } + ], + "parameters": [ + { + "id": 951, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 952, + "name": "blobToBase64", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/blobToBase64.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/blobToBase64.ts#L8" + } + ], + "signatures": [ + { + "id": 953, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/blobToBase64.ts#L8" + } + ], + "parameters": [ + { + "id": 954, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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": 955, + "name": "blobToUrl", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/blobToUrl.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/blobToUrl.ts#L8" + } + ], + "signatures": [ + { + "id": 956, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/blobToUrl.ts#L8" + } + ], + "parameters": [ + { + "id": 957, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 566, + "name": "browserVersion", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/browserVersion.ts", + "line": 68, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/browserVersion.ts#L68" + } + ], + "signatures": [ + { + "id": 567, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/browserVersion.ts#L68" + } + ], + "parameters": [ + { + "id": 568, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua or any ua like string, may not be passed, default is navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 569, + "name": "BrowserVersion", + "package": "js-cool" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + }, + { + "id": 98, + "name": "camel2Dash", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/camel2Dash.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/camel2Dash.ts#L8" + } + ], + "signatures": [ + { + "id": 99, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/camel2Dash.ts#L8" + } + ], + "parameters": [ + { + "id": 100, + "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": 812, + "name": "cleanData", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/cleanData.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/cleanData.ts#L17" + } + ], + "signatures": [ + { + "id": 813, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/cleanData.ts#L17" + } + ], + "parameters": [ + { + "id": 814, + "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": 815, + "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": 967, + "name": "AnyObject", + "package": "js-cool" + } + ] + } + }, + { + "id": 816, + "name": "nullFix", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 83, + "name": "clearAttr", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/clearAttr.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/clearAttr.ts#L8" + } + ], + "signatures": [ + { + "id": 84, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/clearAttr.ts#L8" + } + ], + "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": 86, + "name": "clearHtml", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/clearHtml.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/clearHtml.ts#L8" + } + ], + "signatures": [ + { + "id": 87, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/clearHtml.ts#L8" + } + ], + "parameters": [ + { + "id": 88, + "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": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 10, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L10" + } + ], + "signatures": [ + { + "id": 43, + "name": "client", + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/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": 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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L24" + } + ], + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L17" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L16" + } + ], + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L23" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "!!userAgent.match(/\\(i[^;]+;( U;)? CPU.+Mac OS X/)" + }, + { + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L26" + } + ], + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L25" + } + ], + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L21" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "!!userAgent.match(/AppleWebKit.*Mobile.*/)" + }, + { + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L19" + } + ], + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L30" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExpMatchArray" + }, + "name": "RegExpMatchArray", + "package": "typescript" + } + ] + }, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L28" + } + ], + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L20" + } + ], + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L18" + } + ], + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L29" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 54, + 48, + 47, + 53, + 56, + 55, + 52, + 50, + 59, + 57, + 51, + 49, + 58 + ] + } + ], + "sources": [ + { + "fileName": "src/client.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/client.ts#L15" + } + ] + } + } + ] + } + } + ] + }, + { + "id": 768, + "name": "clone", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/clone.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/clone.ts#L18" + } + ], + "signatures": [ + { + "id": 769, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/clone.ts#L18" + } + ], + "typeParameter": [ + { + "id": 770, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "parameters": [ + { + "id": 771, + "name": "parent", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "source object" + } + ] + }, + "type": { + "type": "reference", + "target": 770, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": 770, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ] + }, + { + "id": 572, + "name": "compareVersion", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/compareVersion.ts", + "line": 48, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/compareVersion.ts#L48" + } + ], + "signatures": [ + { + "id": 573, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/compareVersion.ts#L48" + } + ], + "parameters": [ + { + "id": 574, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "input version" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 575, + "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": 885, + "name": "complement", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/complement.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/complement.ts#L16" + } + ], + "signatures": [ + { + "id": 886, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/complement.ts#L16" + } + ], + "typeParameter": [ + { + "id": 887, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 888, + "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": 887, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 887, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ] + }, + { + "id": 889, + "name": "contains", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/contains.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/contains.ts#L14" + } + ], + "signatures": [ + { + "id": 890, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/contains.ts#L14" + } + ], + "parameters": [ + { + "id": 891, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the target array" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 892, + "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": 831, + "name": "copy", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/copy.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/copy.ts#L10" + } + ], + "signatures": [ + { + "id": 832, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/copy.ts#L10" + } + ], + "parameters": [ + { + "id": 833, + "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": 147, + "name": "cutCHSString", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/cutCHSString.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/cutCHSString.ts#L10" + } + ], + "signatures": [ + { + "id": 148, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/cutCHSString.ts#L10" + } + ], + "parameters": [ + { + "id": 149, + "name": "str", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be intercepted" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 150, + "name": "len", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "str.length" + }, + { + "id": 151, + "name": "hasDot", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 101, + "name": "dash2Camel", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/dash2Camel.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/dash2Camel.ts#L8" + } + ], + "signatures": [ + { + "id": 102, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/dash2Camel.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": 677, + "name": "decodeBase64", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/decodeBase64.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/decodeBase64.ts#L11" + } + ], + "signatures": [ + { + "id": 678, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/decodeBase64.ts#L11" + } + ], + "parameters": [ + { + "id": 679, + "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": 680, + "name": "decodeUtf8", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/decodeUtf8.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/decodeUtf8.ts#L8" + } + ], + "signatures": [ + { + "id": 681, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/decodeUtf8.ts#L8" + } + ], + "parameters": [ + { + "id": 682, + "name": "utftext", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 640, + "name": "delCache", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/delCache.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delCache.ts#L7" + } + ], + "signatures": [ + { + "id": 641, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delCache.ts#L7" + } + ], + "parameters": [ + { + "id": 642, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 668, + "name": "delCookie", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/delCookie.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delCookie.ts#L9" + } + ], + "signatures": [ + { + "id": 669, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delCookie.ts#L9" + } + ], + "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": "void" + } + } + ] + }, + { + "id": 652, + "name": "delSession", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/delSession.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delSession.ts#L7" + } + ], + "signatures": [ + { + "id": 653, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delSession.ts#L7" + } + ], + "parameters": [ + { + "id": 654, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 772, + "name": "delay", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delay.ts#L9" + } + ], + "signatures": [ + { + "id": 773, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delay.ts#L9" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 774, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 775, + "name": "map", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 11, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delay.ts#L11" + } + ], + "type": { + "type": "intrinsic", + "name": "any" + }, + "defaultValue": "..." + }, + { + "id": 782, + "name": "destroy", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 43, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delay.ts#L43" + } + ], + "signatures": [ + { + "id": 783, + "name": "destroy", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 43, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delay.ts#L43" + } + ], + "parameters": [ + { + "id": 784, + "name": "id", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 776, + "name": "register", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 12, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delay.ts#L12" + } + ], + "signatures": [ + { + "id": 777, + "name": "register", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 12, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delay.ts#L12" + } + ], + "parameters": [ + { + "id": 778, + "name": "id", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 779, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 968, + "name": "AnyFunction", + "package": "js-cool" + } + }, + { + "id": 780, + "name": "time", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 781, + "name": "boo", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 775 + ] + }, + { + "title": "Methods", + "children": [ + 782, + 776 + ] + } + ], + "sources": [ + { + "fileName": "src/delay.ts", + "line": 10, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/delay.ts#L10" + } + ] + } + } + } + ] + }, + { + "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": 671, + "name": "encodeBase64", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/encodeBase64.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/encodeBase64.ts#L11" + } + ], + "signatures": [ + { + "id": 672, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/encodeBase64.ts#L11" + } + ], + "parameters": [ + { + "id": 673, + "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": 674, + "name": "encodeUtf8", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/encodeUtf8.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/encodeUtf8.ts#L8" + } + ], + "signatures": [ + { + "id": 675, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/encodeUtf8.ts#L8" + } + ], + "parameters": [ + { + "id": 676, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 89, + "name": "escape", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/escape.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/escape.ts#L13" + } + ], + "signatures": [ + { + "id": 90, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/escape.ts#L13" + } + ], + "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": 752, + "name": "extend", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 41, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/extend.ts#L41" + }, + { + "fileName": "src/extend.ts", + "line": 42, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/extend.ts#L42" + }, + { + "fileName": "src/extend.ts", + "line": 43, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/extend.ts#L43" + }, + { + "fileName": "src/extend.ts", + "line": 44, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/extend.ts#L44" + }, + { + "fileName": "src/extend.ts", + "line": 45, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/extend.ts#L45" + } + ], + "signatures": [ + { + "id": 753, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/extend.ts#L41" + } + ], + "parameters": [ + { + "id": 754, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "boolean | ExtendData" + } + ] + }, + "type": { + "type": "reference", + "target": 766, + "name": "ExtendObjectData", + "package": "js-cool" + } + }, + { + "id": 755, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ArrayOneMore" + } + ] + }, + "type": { + "type": "reference", + "target": 974, + "typeArguments": [ + { + "type": "reference", + "target": 766, + "name": "ExtendObjectData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 766, + "name": "ExtendObjectData", + "package": "js-cool" + } + }, + { + "id": 756, + "name": "extend", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 42, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/extend.ts#L42" + } + ], + "parameters": [ + { + "id": 757, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 758, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 974, + "typeArguments": [ + { + "type": "reference", + "target": 766, + "name": "ExtendObjectData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 766, + "name": "ExtendObjectData", + "package": "js-cool" + } + }, + { + "id": 759, + "name": "extend", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 43, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/extend.ts#L43" + } + ], + "parameters": [ + { + "id": 760, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 765, + "name": "ExtendArrayData", + "package": "js-cool" + } + }, + { + "id": 761, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 974, + "typeArguments": [ + { + "type": "reference", + "target": 765, + "name": "ExtendArrayData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 765, + "name": "ExtendArrayData", + "package": "js-cool" + } + }, + { + "id": 762, + "name": "extend", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 44, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/extend.ts#L44" + } + ], + "parameters": [ + { + "id": 763, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 764, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 974, + "typeArguments": [ + { + "type": "reference", + "target": 765, + "name": "ExtendArrayData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 765, + "name": "ExtendArrayData", + "package": "js-cool" + } + } + ] + }, + { + "id": 958, + "name": "fileToBase64", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/fileToBase64.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/fileToBase64.ts#L10" + } + ], + "signatures": [ + { + "id": 959, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/fileToBase64.ts#L10" + } + ], + "parameters": [ + { + "id": 960, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "file data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "File" + }, + "name": "File", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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": 897, + "name": "fillIPv6", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/fillIPv6.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/fillIPv6.ts#L15" + } + ], + "signatures": [ + { + "id": 898, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/fillIPv6.ts#L15" + } + ], + "parameters": [ + { + "id": 899, + "name": "ip", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 141, + "name": "fingerprint", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/fingerprint.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/fingerprint.ts#L10" + } + ], + "signatures": [ + { + "id": 142, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/fingerprint.ts#L10" + } + ], + "parameters": [ + { + "id": 143, + "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": 741, + "name": "fixNumber", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/fixNumber.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/fixNumber.ts#L22" + } + ], + "signatures": [ + { + "id": 742, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/fixNumber.ts#L22" + } + ], + "parameters": [ + { + "id": 743, + "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": 744, + "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": 537, + "name": "getAppVersion", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getAppVersion.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getAppVersion.ts#L11" + } + ], + "signatures": [ + { + "id": 538, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getAppVersion.ts#L11" + } + ], + "parameters": [ + { + "id": 539, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "app name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 540, + "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": 541, + "name": "userAgent", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua, may not be passed, default is navigator.appVersion" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + }, + { + "id": 144, + "name": "getCHSLength", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getCHSLength.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getCHSLength.ts#L13" + } + ], + "signatures": [ + { + "id": 145, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getCHSLength.ts#L13" + } + ], + "parameters": [ + { + "id": 146, + "name": "str", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + }, + { + "id": 631, + "name": "getCache", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getCache.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getCache.ts#L24" + } + ], + "signatures": [ + { + "id": 632, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getCache.ts#L24" + } + ], + "parameters": [ + { + "id": 633, + "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": 655, + "name": "getCookie", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getCookie.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getCookie.ts#L13" + } + ], + "signatures": [ + { + "id": 656, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getCookie.ts#L13" + } + ], + "parameters": [ + { + "id": 657, + "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": 658, + "name": "getCookies", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getCookies.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getCookies.ts#L12" + } + ], + "signatures": [ + { + "id": 659, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getCookies.ts#L12" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + }, + { + "id": 597, + "name": "getDirParam", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getDirParam.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getDirParam.ts#L14" + } + ], + "signatures": [ + { + "id": 598, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getDirParam.ts#L14" + } + ], + "parameters": [ + { + "id": 599, + "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": 600, + "name": "DirParamType", + "package": "js-cool" + } + } + ] + }, + { + "id": 789, + "name": "getFileType", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getFileType.ts#L19" + } + ], + "signatures": [ + { + "id": 790, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getFileType.ts#L19" + } + ], + "parameters": [ + { + "id": 791, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "file url" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 792, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 793, + "name": "suffix", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 48, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getFileType.ts#L48" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 794, + "name": "type", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 49, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/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": [ + 793, + 794 + ] + } + ], + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 47, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getFileType.ts#L47" + } + ] + } + } + } + ] + }, + { + "id": 95, + "name": "getNumber", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getNumber.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getNumber.ts#L16" + } + ], + "signatures": [ + { + "id": 96, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getNumber.ts#L16" + } + ], + "parameters": [ + { + "id": 97, + "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": 555, + "name": "getOsVersion", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getOsVersion.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getOsVersion.ts#L21" + } + ], + "signatures": [ + { + "id": 556, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getOsVersion.ts#L21" + } + ], + "parameters": [ + { + "id": 557, + "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": 558, + "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": 559, + "name": "userAgent", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua, may not be passed, default takes navigator.appVersion" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + }, + { + "id": 900, + "name": "getProperty", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getProperty.ts#L25" + }, + { + "fileName": "src/getProperty.ts", + "line": 30, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getProperty.ts#L30" + }, + { + "fileName": "src/getProperty.ts", + "line": 35, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getProperty.ts#L35" + } + ], + "signatures": [ + { + "id": 901, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getProperty.ts#L25" + } + ], + "typeParameter": [ + { + "id": 902, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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": 903, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "target array, object" + } + ] + }, + "type": { + "type": "reference", + "target": 902, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 904, + "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": 905, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 27, + "character": 16, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getProperty.ts#L27" + } + ], + "signatures": [ + { + "id": 906, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 27, + "character": 18, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getProperty.ts#L27" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 907, + "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": 908, + "name": "getProperty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 30, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getProperty.ts#L30" + } + ], + "typeParameter": [ + { + "id": 909, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "parameters": [ + { + "id": 910, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 909, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 911, + "name": "prop", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reflection", + "declaration": { + "id": 912, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 32, + "character": 16, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getProperty.ts#L32" + } + ], + "signatures": [ + { + "id": 913, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 32, + "character": 18, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getProperty.ts#L32" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 914, + "name": "defaultValue", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 603, + "name": "getQueryParam", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParam.ts#L20" + }, + { + "fileName": "src/getQueryParam.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParam.ts#L21" + }, + { + "fileName": "src/getQueryParam.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParam.ts#L22" + } + ], + "signatures": [ + { + "id": 604, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParam.ts#L20" + } + ], + "parameters": [ + { + "id": 605, + "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": 606, + "name": "getQueryParam", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParam.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParam.ts#L21" + } + ], + "parameters": [ + { + "id": 607, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 608, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ] + }, + { + "id": 609, + "name": "getQueryParams", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParams.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParams.ts#L23" + }, + { + "fileName": "src/getQueryParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParams.ts#L24" + }, + { + "fileName": "src/getQueryParams.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParams.ts#L25" + }, + { + "fileName": "src/getQueryParams.ts", + "line": 26, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParams.ts#L26" + } + ], + "signatures": [ + { + "id": 610, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParams.ts#L23" + } + ], + "parameters": [ + { + "id": 611, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 612, + "name": "getQueryParams", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParams.ts#L24" + } + ], + "parameters": [ + { + "id": 613, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 614, + "name": "getQueryParams", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParams.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getQueryParams.ts#L25" + } + ], + "parameters": [ + { + "id": 615, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 616, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + }, + { + "id": 700, + "name": "getScrollPosition", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getScrollPosition.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getScrollPosition.ts#L8" + } + ], + "signatures": [ + { + "id": 701, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getScrollPosition.ts#L8" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "literal", + "value": "bottom" + }, + { + "type": "literal", + "value": "top" + } + ] + } + } + ] + }, + { + "id": 643, + "name": "getSession", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getSession.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getSession.ts#L24" + } + ], + "signatures": [ + { + "id": 644, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getSession.ts#L24" + } + ], + "parameters": [ + { + "id": 645, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 785, + "name": "getType", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getType.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getType.ts#L8" + } + ], + "signatures": [ + { + "id": 786, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getType.ts#L8" + } + ], + "typeParameter": [ + { + "id": 787, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "parameters": [ + { + "id": 788, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "target" + } + ] + }, + "type": { + "type": "reference", + "target": 787, + "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": "null" + }, + { + "type": "literal", + "value": "array" + }, + { + "type": "literal", + "value": "date" + }, + { + "type": "literal", + "value": "regexp" + } + ] + } + } + ] + }, + { + "id": 617, + "name": "getUrlParam", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParam.ts#L20" + }, + { + "fileName": "src/getUrlParam.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParam.ts#L21" + }, + { + "fileName": "src/getUrlParam.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParam.ts#L22" + } + ], + "signatures": [ + { + "id": 618, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParam.ts#L20" + } + ], + "parameters": [ + { + "id": 619, + "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": 620, + "name": "getUrlParam", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParam.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParam.ts#L21" + } + ], + "parameters": [ + { + "id": 621, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 622, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ] + }, + { + "id": 623, + "name": "getUrlParams", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParams.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParams.ts#L23" + }, + { + "fileName": "src/getUrlParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParams.ts#L24" + }, + { + "fileName": "src/getUrlParams.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParams.ts#L25" + }, + { + "fileName": "src/getUrlParams.ts", + "line": 26, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParams.ts#L26" + } + ], + "signatures": [ + { + "id": 624, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParams.ts#L23" + } + ], + "parameters": [ + { + "id": 625, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 626, + "name": "getUrlParams", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParams.ts#L24" + } + ], + "parameters": [ + { + "id": 627, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 628, + "name": "getUrlParams", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParams.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/getUrlParams.ts#L25" + } + ], + "parameters": [ + { + "id": 629, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 630, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + }, + { + "id": 873, + "name": "intersect", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/intersect.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/intersect.ts#L14" + } + ], + "signatures": [ + { + "id": 874, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/intersect.ts#L14" + } + ], + "typeParameter": [ + { + "id": 875, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 876, + "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": 875, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 875, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ] + }, + { + "id": 523, + "name": "isArray", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isArray.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isArray.ts#L12" + } + ], + "signatures": [ + { + "id": 524, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isArray.ts#L12" + } + ], + "parameters": [ + { + "id": 525, + "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": 512, + "name": "isDarkMode", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isDarkMode.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isDarkMode.ts#L11" + } + ], + "signatures": [ + { + "id": 513, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isDarkMode.ts#L11" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 517, + "name": "isDate", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isDate.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isDate.ts#L17" + } + ], + "signatures": [ + { + "id": 518, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isDate.ts#L17" + } + ], + "parameters": [ + { + "id": 519, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Date" + }, + "name": "Date", + "package": "typescript" + } + } + } + ] + }, + { + "id": 152, + "name": "isDigitals", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isDigitals.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isDigitals.ts#L9" + } + ], + "signatures": [ + { + "id": 153, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isDigitals.ts#L9" + } + ], + "parameters": [ + { + "id": 154, + "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": 158, + "name": "isEqual", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isEqual.ts", + "line": 123, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isEqual.ts#L123" + } + ], + "signatures": [ + { + "id": 159, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isEqual.ts#L123" + } + ], + "typeParameter": [ + { + "id": 160, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 161, + "name": "P", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 162, + "name": "a", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "source" + } + ] + }, + "type": { + "type": "reference", + "target": 160, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 163, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "compare" + } + ] + }, + "type": { + "type": "reference", + "target": 161, + "name": "P", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 155, + "name": "isExitsFunction", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isExitsFunction.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isExitsFunction.ts#L15" + } + ], + "signatures": [ + { + "id": 156, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isExitsFunction.ts#L15" + } + ], + "parameters": [ + { + "id": 157, + "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": 164, + "name": "isExitsVariable", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isExitsVariable.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isExitsVariable.ts#L13" + } + ], + "signatures": [ + { + "id": 165, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isExitsVariable.ts#L13" + } + ], + "parameters": [ + { + "id": 166, + "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": 526, + "name": "isIterable", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isIterable.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isIterable.ts#L12" + } + ], + "signatures": [ + { + "id": 527, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isIterable.ts#L12" + } + ], + "typeParameter": [ + { + "id": 528, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "parameters": [ + { + "id": 529, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 528, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Iterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 528, + "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.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Iterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": 528, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "Iterable", + "package": "typescript" + } + } + } + ] + }, + { + "id": 514, + "name": "isObject", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isObject.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isObject.ts#L14" + } + ], + "signatures": [ + { + "id": 515, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isObject.ts#L14" + } + ], + "parameters": [ + { + "id": 516, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Object" + }, + "name": "Object", + "package": "typescript" + } + } + } + ] + }, + { + "id": 170, + "name": "isPlainObject", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 28, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isPlainObject.ts#L28" + } + ], + "signatures": [ + { + "id": 171, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isPlainObject.ts#L28" + } + ], + "parameters": [ + { + "id": 172, + "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": 174, + "name": "PlainObject", + "package": "js-cool" + } + } + } + ] + }, + { + "id": 520, + "name": "isRegExp", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isRegExp.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isRegExp.ts#L14" + } + ], + "signatures": [ + { + "id": 521, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isRegExp.ts#L14" + } + ], + "parameters": [ + { + "id": 522, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + } + } + } + ] + }, + { + "id": 167, + "name": "isWindow", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isWindow.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isWindow.ts#L15" + } + ], + "signatures": [ + { + "id": 168, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/isWindow.ts#L15" + } + ], + "parameters": [ + { + "id": 169, + "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.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Window" + }, + "name": "Window", + "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.4.5/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": 745, + "name": "mapTemplate", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/mapTemplate.ts", + "line": 28, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/mapTemplate.ts#L28" + } + ], + "signatures": [ + { + "id": 746, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/mapTemplate.ts#L28" + } + ], + "parameters": [ + { + "id": 747, + "name": "tmp", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Template string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 748, + "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.4.5/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": 749, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/mapTemplate.ts", + "line": 30, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/mapTemplate.ts#L30" + } + ], + "signatures": [ + { + "id": 750, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/mapTemplate.ts", + "line": 30, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/mapTemplate.ts#L30" + } + ], + "parameters": [ + { + "id": 751, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 881, + "name": "minus", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/minus.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/minus.ts#L15" + } + ], + "signatures": [ + { + "id": 882, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/minus.ts#L15" + } + ], + "typeParameter": [ + { + "id": 883, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 884, + "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": 883, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 883, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ] + }, + { + "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.4.5/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.4.5/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.4.5/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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 702, + "name": "nextIndex", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/nextIndex.ts", + "line": 32, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/nextIndex.ts#L32" + } + ], + "signatures": [ + { + "id": 703, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/nextIndex.ts#L32" + } + ], + "parameters": [ + { + "id": 704, + "name": "min", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, minimum value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "5000" + }, + { + "id": 705, + "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": 706, + "name": "nextVersion", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 26, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/nextVersion.ts#L26" + } + ], + "signatures": [ + { + "id": 707, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/nextVersion.ts#L26" + } + ], + "parameters": [ + { + "id": 708, + "name": "version", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "version(like: 1.0.0)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 709, + "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": 710, + "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": 828, + "name": "openUrl", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/openUrl.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/openUrl.ts#L7" + } + ], + "signatures": [ + { + "id": 829, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/openUrl.ts#L7" + } + ], + "parameters": [ + { + "id": 830, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "link" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 560, + "name": "osVersion", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/osVersion.ts", + "line": 36, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/osVersion.ts#L36" + } + ], + "signatures": [ + { + "id": 561, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/osVersion.ts#L36" + } + ], + "parameters": [ + { + "id": 562, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua or any ua like string, may not be passed, default is navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 563, + "name": "OsVersion", + "package": "js-cool" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + }, + { + "id": 576, + "name": "parseUrlParam", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/parseUrlParam.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/parseUrlParam.ts#L19" + } + ], + "signatures": [ + { + "id": 577, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/parseUrlParam.ts#L19" + } + ], + "parameters": [ + { + "id": 578, + "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": 579, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + }, + { + "id": 922, + "name": "preloader", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/preloader.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/preloader.ts#L7" + }, + { + "fileName": "src/preloader.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/preloader.ts#L8" + }, + { + "fileName": "src/preloader.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/preloader.ts#L9" + } + ], + "signatures": [ + { + "id": 923, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/preloader.ts#L7" + } + ], + "parameters": [ + { + "id": 924, + "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.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "HTMLImageElement" + }, + "name": "HTMLImageElement", + "package": "typescript" + } + }, + { + "id": 925, + "name": "preloader", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/preloader.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/preloader.ts#L8" + } + ], + "parameters": [ + { + "id": 926, + "name": "images", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "HTMLImageElement" + }, + "name": "HTMLImageElement", + "package": "typescript" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + }, + { + "id": 734, + "name": "promiseFactory", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/promiseFactory.ts", + "line": 32, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/promiseFactory.ts#L32" + } + ], + "signatures": [ + { + "id": 735, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/promiseFactory.ts#L32" + } + ], + "typeParameter": [ + { + "id": 736, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "parameters": [ + { + "id": 737, + "name": "original", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "original object" + } + ] + }, + "type": { + "type": "reference", + "target": 736, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 738, + "name": "resolver", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "resolver function" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 739, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/promiseFactory.ts", + "line": 34, + "character": 11, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/promiseFactory.ts#L34" + } + ], + "signatures": [ + { + "id": 740, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/promiseFactory.ts", + "line": 34, + "character": 11, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/promiseFactory.ts#L34" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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": 736, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "PromiseLike" + }, + "typeArguments": [ + { + "type": "reference", + "target": 736, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + ], + "name": "PromiseLike", + "package": "typescript" + } + ] + } + } + ] + }, + { + "id": 717, + "name": "punctualTimer", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/punctualTimer.ts#L14" + }, + { + "fileName": "src/punctualTimer.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/punctualTimer.ts#L19" + }, + { + "fileName": "src/punctualTimer.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/punctualTimer.ts#L24" + } + ], + "signatures": [ + { + "id": 718, + "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())\npunctualTimer(printDate, 1000)\n```" + } + ] + }, + { + "tag": "@since", + "content": [ + { + "kind": "text", + "text": "5.18.0" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/punctualTimer.ts#L14" + } + ], + "typeParameter": [ + { + "id": 719, + "name": "TArgs", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "parameters": [ + { + "id": 720, + "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": 721, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 15, + "character": 10, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/punctualTimer.ts#L15" + } + ], + "signatures": [ + { + "id": 722, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 15, + "character": 10, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/punctualTimer.ts#L15" + } + ], + "parameters": [ + { + "id": 723, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 724, + "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": 725, + "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": 719, + "name": "TArgs", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + }, + { + "id": 726, + "name": "punctualTimer", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/punctualTimer.ts#L19" + } + ], + "typeParameter": [ + { + "id": 727, + "name": "TArgs", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "parameters": [ + { + "id": 728, + "name": "handler", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 729, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 20, + "character": 10, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/punctualTimer.ts#L20" + } + ], + "signatures": [ + { + "id": 730, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/punctualTimer.ts", + "line": 20, + "character": 10, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/punctualTimer.ts#L20" + } + ], + "parameters": [ + { + "id": 731, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 727, + "name": "TArgs", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 732, + "name": "delay", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 733, + "name": "__namedParameters", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "target": 727, + "name": "TArgs", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 107, + "name": "randomColor", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/randomColor.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomColor.ts#L25" + } + ], + "signatures": [ + { + "id": 108, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomColor.ts#L25" + } + ], + "parameters": [ + { + "id": 109, + "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": 110, + "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": 111, + "name": "randomNumber", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/randomNumber.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomNumber.ts#L17" + } + ], + "signatures": [ + { + "id": 112, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomNumber.ts#L17" + } + ], + "parameters": [ + { + "id": 113, + "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": 114, + "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": 115, + "name": "randomNumbers", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/randomNumbers.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomNumbers.ts#L24" + } + ], + "signatures": [ + { + "id": 116, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomNumbers.ts#L24" + } + ], + "parameters": [ + { + "id": 117, + "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": 118, + "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": 119, + "name": "noZero", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "number" + } + } + } + ] + }, + { + "id": 120, + "name": "randomString", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 78, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomString.ts#L78" + }, + { + "fileName": "src/randomString.ts", + "line": 79, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomString.ts#L79" + }, + { + "fileName": "src/randomString.ts", + "line": 83, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomString.ts#L83" + } + ], + "signatures": [ + { + "id": 121, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomString.ts#L78" + } + ], + "parameters": [ + { + "id": 122, + "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": 123, + "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": 127, + "name": "RandomStringOptions", + "package": "js-cool" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 124, + "name": "randomString", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 79, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/randomString.ts#L79" + } + ], + "parameters": [ + { + "id": 125, + "name": "len", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reference", + "target": 127, + "name": "RandomStringOptions", + "package": "js-cool" + } + ] + } + }, + { + "id": 126, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reference", + "target": 127, + "name": "RandomStringOptions", + "package": "js-cool" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 695, + "name": "removeEvent", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/removeEvent.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/removeEvent.ts#L11" + } + ], + "signatures": [ + { + "id": 696, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/removeEvent.ts#L11" + } + ], + "parameters": [ + { + "id": 697, + "name": "element", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "js dom object" + } + ] + }, + "type": { + "type": "reference", + "target": 967, + "name": "AnyObject", + "package": "js-cool" + } + }, + { + "id": 698, + "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": 699, + "name": "handler", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Callback method." + } + ] + }, + "type": { + "type": "reference", + "target": 968, + "name": "AnyFunction", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 589, + "name": "safeParse", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/safeParse.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/safeParse.ts#L16" + } + ], + "signatures": [ + { + "id": 590, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/safeParse.ts#L16" + } + ], + "parameters": [ + { + "id": 591, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "JSON string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 592, + "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": 593, + "name": "safeStringify", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/safeStringify.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/safeStringify.ts#L25" + } + ], + "signatures": [ + { + "id": 594, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/safeStringify.ts#L25" + } + ], + "parameters": [ + { + "id": 595, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "JSON Object" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 596, + "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": 817, + "name": "searchObject", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/searchObject.ts", + "line": 17, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/searchObject.ts#L17" + } + ], + "signatures": [ + { + "id": 818, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/searchObject.ts#L17" + } + ], + "parameters": [ + { + "id": 819, + "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": 820, + "name": "expression", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "required Query method" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 821, + "name": "keySet", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional Default subclass name, query name" + } + ] + }, + "type": { + "type": "reference", + "target": 823, + "name": "SearchKeySet", + "package": "js-cool" + } + }, + { + "id": 822, + "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": 634, + "name": "setCache", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/setCache.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/setCache.ts#L25" + } + ], + "signatures": [ + { + "id": 635, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/setCache.ts#L25" + } + ], + "typeParameter": [ + { + "id": 636, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 637, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cache name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 638, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cache data, can be passed directly into Object" + } + ] + }, + "type": { + "type": "reference", + "target": 636, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 639, + "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": 660, + "name": "setCookie", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/setCookie.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/setCookie.ts#L22" + } + ], + "signatures": [ + { + "id": 661, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/setCookie.ts#L22" + } + ], + "typeParameter": [ + { + "id": 662, + "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": 663, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cookie name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 664, + "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": 662, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 665, + "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": 666, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "path, default '/'" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "'/'" + }, + { + "id": 667, + "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": 915, + "name": "setProperty", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/setProperty.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/setProperty.ts#L24" + } + ], + "signatures": [ + { + "id": 916, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/setProperty.ts#L24" + } + ], + "parameters": [ + { + "id": 917, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "target array, object" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 918, + "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": 919, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/setProperty.ts", + "line": 24, + "character": 49, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/setProperty.ts#L24" + } + ], + "signatures": [ + { + "id": 920, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/setProperty.ts", + "line": 24, + "character": 51, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/setProperty.ts#L24" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 921, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 646, + "name": "setSession", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/setSession.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/setSession.ts#L25" + } + ], + "signatures": [ + { + "id": 647, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/setSession.ts#L25" + } + ], + "typeParameter": [ + { + "id": 648, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 649, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 650, + "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": 648, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 651, + "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": 133, + "name": "shuffle", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/shuffle.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/shuffle.ts#L23" + }, + { + "fileName": "src/shuffle.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/shuffle.ts#L24" + }, + { + "fileName": "src/shuffle.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/shuffle.ts#L25" + } + ], + "signatures": [ + { + "id": 134, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/shuffle.ts#L23" + } + ], + "parameters": [ + { + "id": 135, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrays or strings" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 136, + "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": 137, + "name": "shuffle", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/shuffle.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/shuffle.ts#L24" + } + ], + "typeParameter": [ + { + "id": 138, + "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": 139, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 138, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 140, + "name": "size", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "target": 138, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ] + }, + { + "id": 805, + "name": "sortPinyin", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/sortPinyin.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/sortPinyin.ts#L22" + } + ], + "signatures": [ + { + "id": 806, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/sortPinyin.ts#L22" + } + ], + "typeParameter": [ + { + "id": 807, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 808, + "name": "P", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + } + ], + "parameters": [ + { + "id": 809, + "name": "a", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The first element for comparison." + } + ] + }, + "type": { + "type": "reference", + "target": 807, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 810, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The second element for comparison." + } + ] + }, + "type": { + "type": "reference", + "target": 808, + "name": "P", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 811, + "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.4.5/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": 795, + "name": "sorter", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/sorter.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/sorter.ts#L22" + } + ], + "signatures": [ + { + "id": 796, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/sorter.ts#L22" + } + ], + "parameters": [ + { + "id": 797, + "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": 798, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Intl.CollatorOptions" + }, + "name": "CollatorOptions", + "package": "typescript", + "qualifiedName": "Intl.CollatorOptions" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 799, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/sorter.ts", + "line": 23, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/sorter.ts#L23" + } + ], + "signatures": [ + { + "id": 800, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/sorter.ts", + "line": 23, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/sorter.ts#L23" + } + ], + "typeParameter": [ + { + "id": 801, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 802, + "name": "P", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "string" + } + } + ], + "parameters": [ + { + "id": 803, + "name": "a", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 801, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 804, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 802, + "name": "P", + "package": "js-cool", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } + } + } + ] + }, + { + "id": 580, + "name": "spliceUrlParam", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/spliceUrlParam.ts", + "line": 26, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/spliceUrlParam.ts#L26" + } + ], + "signatures": [ + { + "id": 581, + "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\\}', true)\n// ?key1=100&key2=true&key3=&key4=\n\nspliceUrlParam('\\{\"key1\":\"100\",\"key2\":true,\"key3\":null,\"key4\":undefined\\}', true, 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": 26, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/spliceUrlParam.ts#L26" + } + ], + "typeParameter": [ + { + "id": 582, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/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": 583, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "json object" + } + ] + }, + "type": { + "type": "reference", + "target": 582, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + }, + { + "id": 584, + "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": 585, + "name": "SpliceUrlParamOptions", + "package": "js-cool" + } + ] + }, + "defaultValue": "false" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 683, + "name": "stopBubble", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/stopBubble.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/stopBubble.ts#L8" + } + ], + "signatures": [ + { + "id": 684, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/stopBubble.ts#L8" + } + ], + "parameters": [ + { + "id": 685, + "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.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Event" + }, + "name": "Event", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 686, + "name": "stopDefault", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/stopDefault.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/stopDefault.ts#L8" + } + ], + "signatures": [ + { + "id": 687, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/stopDefault.ts#L8" + } + ], + "parameters": [ + { + "id": 688, + "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.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Event" + }, + "name": "Event", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 961, + "name": "svgToBlob", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/svgToBlob.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/svgToBlob.ts#L8" + } + ], + "signatures": [ + { + "id": 962, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/svgToBlob.ts#L8" + } + ], + "parameters": [ + { + "id": 963, + "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.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ] + }, + { + "id": 834, + "name": "toThousands", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/toThousands.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/toThousands.ts#L19" + } + ], + "signatures": [ + { + "id": 835, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/toThousands.ts#L19" + } + ], + "parameters": [ + { + "id": 836, + "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": 80, + "name": "trim", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/trim.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/trim.ts#L9" + } + ], + "signatures": [ + { + "id": 81, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/trim.ts#L9" + } + ], + "parameters": [ + { + "id": 82, + "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": 92, + "name": "unescape", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/unescape.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/unescape.ts#L13" + } + ], + "signatures": [ + { + "id": 93, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/unescape.ts#L13" + } + ], + "parameters": [ + { + "id": 94, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 877, + "name": "union", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/union.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/union.ts#L19" + } + ], + "signatures": [ + { + "id": 878, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/union.ts#L19" + } + ], + "typeParameter": [ + { + "id": 879, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 880, + "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": 879, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 879, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ] + }, + { + "id": 893, + "name": "unique", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/unique.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/unique.ts#L14" + } + ], + "signatures": [ + { + "id": 894, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/unique.ts#L14" + } + ], + "typeParameter": [ + { + "id": 895, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 896, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "array data" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 895, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 895, + "name": "T", + "package": "js-cool", + "refersToTypeParameter": true + } + } + } + ] + }, + { + "id": 104, + "name": "upperFirst", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/upperFirst.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/upperFirst.ts#L12" + } + ], + "signatures": [ + { + "id": 105, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/upperFirst.ts#L12" + } + ], + "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": 964, + "name": "urlToBlob", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/urlToBlob.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/urlToBlob.ts#L8" + } + ], + "signatures": [ + { + "id": 965, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/urlToBlob.ts#L8" + } + ], + "parameters": [ + { + "id": 966, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 847, + "name": "uuid", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/uuid.ts", + "line": 11, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/uuid.ts#L11" + } + ], + "signatures": [ + { + "id": 848, + "name": "uuid", + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/uuid.ts#L11" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 927, + "name": "waiting", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/waiting.ts", + "line": 8, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/waiting.ts#L8" + } + ], + "signatures": [ + { + "id": 928, + "name": "waiting", + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/waiting.ts#L8" + } + ], + "parameters": [ + { + "id": 929, + "name": "milliseconds", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "waiting time (milliseconds)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 930, + "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.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 532, + "name": "windowSize", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/windowSize.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/windowSize.ts#L16" + } + ], + "signatures": [ + { + "id": 533, + "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/4530a67470ada9dbcc8891c9e9e6c7b25d5c054b/src/windowSize.ts#L16" + } + ], + "type": { + "type": "reference", + "target": 534, + "name": "WindowSizeObj", + "package": "js-cool" + } + } + ] + } + ], + "groups": [ + { + "title": "Interfaces", + "children": [ + 968, + 971, + 569, + 600, + 178, + 563, + 174, + 127, + 823, + 585, + 711, + 534 + ] + }, + { + "title": "Type Aliases", + "children": [ + 967, + 974, + 976, + 765, + 767, + 766, + 177, + 993, + 990, + 984, + 987, + 981, + 173, + 132 + ] + }, + { + "title": "Variables", + "children": [ + 998, + 530, + 531, + 60, + 1 + ] + }, + { + "title": "Functions", + "children": [ + 849, + 859, + 863, + 868, + 689, + 837, + 842, + 542, + 931, + 935, + 854, + 27, + 939, + 942, + 945, + 949, + 952, + 955, + 566, + 98, + 812, + 83, + 86, + 42, + 768, + 572, + 885, + 889, + 831, + 147, + 101, + 677, + 680, + 640, + 668, + 652, + 772, + 22, + 671, + 674, + 89, + 752, + 958, + 897, + 141, + 741, + 537, + 144, + 631, + 655, + 658, + 597, + 789, + 95, + 555, + 900, + 603, + 609, + 700, + 643, + 785, + 617, + 623, + 873, + 523, + 512, + 517, + 152, + 158, + 155, + 164, + 526, + 514, + 170, + 520, + 167, + 2, + 745, + 881, + 6, + 10, + 14, + 18, + 702, + 706, + 828, + 560, + 576, + 922, + 734, + 717, + 107, + 111, + 115, + 120, + 695, + 589, + 593, + 817, + 634, + 660, + 915, + 646, + 133, + 805, + 795, + 580, + 683, + 686, + 961, + 834, + 80, + 92, + 877, + 893, + 104, + 964, + 847, + 927, + 532 + ] + } + ], + "packageName": "js-cool", + "packageVersion": "5.21.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](./CHANGELOG.md)**\n\n**Read this in other languages: English | [简体中文](./README-zh_CN.md)**\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 - [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- 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}\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 { charTypes: ['uppercase', 'lowercase', 'number', 'special'] }\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#### 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, may not be passed | " + }, + { + "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, may not be passed | " + }, + { + "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, may not be passed | " + }, + { + "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, may not be passed | " + }, + { + "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'\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, may not be passed | " + }, + { + "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: 'Windows' | 'MacOS' | 'Android' | 'iOS' | 'WindowsPhone' | 'Debian' | 'WebOS'\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({ 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- 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": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nconst printDate = () => console.log(new Date())\npunctualTimer(printDate, 1000)\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): void\ndeclare function punctualTimer(\n handler: (...args: TArgs) => void,\n delay: number,\n [...args]?: TArgs\n): void\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](LICENSE)\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]: LICENSE\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/trim.ts", + "qualifiedName": "trim" + }, + "81": { + "sourceFileName": "src/trim.ts", + "qualifiedName": "trim" + }, + "82": { + "sourceFileName": "src/trim.ts", + "qualifiedName": "string" + }, + "83": { + "sourceFileName": "src/clearAttr.ts", + "qualifiedName": "clearAttr" + }, + "84": { + "sourceFileName": "src/clearAttr.ts", + "qualifiedName": "clearAttr" + }, + "85": { + "sourceFileName": "src/clearAttr.ts", + "qualifiedName": "string" + }, + "86": { + "sourceFileName": "src/clearHtml.ts", + "qualifiedName": "clearHtml" + }, + "87": { + "sourceFileName": "src/clearHtml.ts", + "qualifiedName": "clearHtml" + }, + "88": { + "sourceFileName": "src/clearHtml.ts", + "qualifiedName": "string" + }, + "89": { + "sourceFileName": "src/escape.ts", + "qualifiedName": "escape" + }, + "90": { + "sourceFileName": "src/escape.ts", + "qualifiedName": "escape" + }, + "91": { + "sourceFileName": "src/escape.ts", + "qualifiedName": "string" + }, + "92": { + "sourceFileName": "src/unescape.ts", + "qualifiedName": "unescape" + }, + "93": { + "sourceFileName": "src/unescape.ts", + "qualifiedName": "unescape" + }, + "94": { + "sourceFileName": "src/unescape.ts", + "qualifiedName": "string" + }, + "95": { + "sourceFileName": "src/getNumber.ts", + "qualifiedName": "getNumber" + }, + "96": { + "sourceFileName": "src/getNumber.ts", + "qualifiedName": "getNumber" + }, + "97": { + "sourceFileName": "src/getNumber.ts", + "qualifiedName": "string" + }, + "98": { + "sourceFileName": "src/camel2Dash.ts", + "qualifiedName": "camel2Dash" + }, + "99": { + "sourceFileName": "src/camel2Dash.ts", + "qualifiedName": "camel2Dash" + }, + "100": { + "sourceFileName": "src/camel2Dash.ts", + "qualifiedName": "string" + }, + "101": { + "sourceFileName": "src/dash2Camel.ts", + "qualifiedName": "dash2Camel" + }, + "102": { + "sourceFileName": "src/dash2Camel.ts", + "qualifiedName": "dash2Camel" + }, + "103": { + "sourceFileName": "src/dash2Camel.ts", + "qualifiedName": "string" + }, + "104": { + "sourceFileName": "src/upperFirst.ts", + "qualifiedName": "upperFirst" + }, + "105": { + "sourceFileName": "src/upperFirst.ts", + "qualifiedName": "upperFirst" + }, + "106": { + "sourceFileName": "src/upperFirst.ts", + "qualifiedName": "string" + }, + "107": { + "sourceFileName": "src/randomColor.ts", + "qualifiedName": "randomColor" + }, + "108": { + "sourceFileName": "src/randomColor.ts", + "qualifiedName": "randomColor" + }, + "109": { + "sourceFileName": "src/randomColor.ts", + "qualifiedName": "min" + }, + "110": { + "sourceFileName": "src/randomColor.ts", + "qualifiedName": "max" + }, + "111": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "randomNumber" + }, + "112": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "randomNumber" + }, + "113": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "min" + }, + "114": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "max" + }, + "115": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "randomNumbers" + }, + "116": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "randomNumbers" + }, + "117": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "n" + }, + "118": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "sum" + }, + "119": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "noZero" + }, + "120": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "randomString" + }, + "121": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "randomString" + }, + "122": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "len" + }, + "123": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "options" + }, + "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": "RandomStringOptions" + }, + "128": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "RandomStringOptions.length" + }, + "129": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "RandomStringOptions.charTypes" + }, + "130": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "RandomStringOptions.noConfuse" + }, + "131": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "RandomStringOptions.strict" + }, + "132": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "RandomStringCharType" + }, + "133": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "shuffle" + }, + "134": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "shuffle" + }, + "135": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "value" + }, + "136": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "size" + }, + "137": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "shuffle" + }, + "138": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "T" + }, + "139": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "value" + }, + "140": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "size" + }, + "141": { + "sourceFileName": "src/fingerprint.ts", + "qualifiedName": "fingerprint" + }, + "142": { + "sourceFileName": "src/fingerprint.ts", + "qualifiedName": "fingerprint" + }, + "143": { + "sourceFileName": "src/fingerprint.ts", + "qualifiedName": "domain" + }, + "144": { + "sourceFileName": "src/getCHSLength.ts", + "qualifiedName": "getCHSLength" + }, + "145": { + "sourceFileName": "src/getCHSLength.ts", + "qualifiedName": "getCHSLength" + }, + "146": { + "sourceFileName": "src/getCHSLength.ts", + "qualifiedName": "str" + }, + "147": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "cutCHSString" + }, + "148": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "cutCHSString" + }, + "149": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "str" + }, + "150": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "len" + }, + "151": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "hasDot" + }, + "152": { + "sourceFileName": "src/isDigitals.ts", + "qualifiedName": "isDigitals" + }, + "153": { + "sourceFileName": "src/isDigitals.ts", + "qualifiedName": "isDigitals" + }, + "154": { + "sourceFileName": "src/isDigitals.ts", + "qualifiedName": "str" + }, + "155": { + "sourceFileName": "src/isExitsFunction.ts", + "qualifiedName": "isExitsFunction" + }, + "156": { + "sourceFileName": "src/isExitsFunction.ts", + "qualifiedName": "isExitsFunction" + }, + "157": { + "sourceFileName": "src/isExitsFunction.ts", + "qualifiedName": "name" + }, + "158": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "isEqual" + }, + "159": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "isEqual" + }, + "160": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "T" + }, + "161": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "P" + }, + "162": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "a" + }, + "163": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "b" + }, + "164": { + "sourceFileName": "src/isExitsVariable.ts", + "qualifiedName": "isExitsVariable" + }, + "165": { + "sourceFileName": "src/isExitsVariable.ts", + "qualifiedName": "isExitsVariable" + }, + "166": { + "sourceFileName": "src/isExitsVariable.ts", + "qualifiedName": "name" + }, + "167": { + "sourceFileName": "src/isWindow.ts", + "qualifiedName": "isWindow" + }, + "168": { + "sourceFileName": "src/isWindow.ts", + "qualifiedName": "isWindow" + }, + "169": { + "sourceFileName": "src/isWindow.ts", + "qualifiedName": "target" + }, + "170": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "isPlainObject" + }, + "171": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "isPlainObject" + }, + "172": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "target" + }, + "173": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "Primitive" + }, + "174": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "PlainObject" + }, + "175": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "PlainObject.__index" + }, + "177": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "JSONValue" + }, + "178": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "JSONArray" + }, + "179": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.length" + }, + "180": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.toString" + }, + "181": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.toString" + }, + "182": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.toLocaleString" + }, + "183": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.toLocaleString" + }, + "184": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.pop" + }, + "185": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.pop" + }, + "186": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.push" + }, + "187": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.push" + }, + "188": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "items" + }, + "189": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.concat" + }, + "190": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.concat" + }, + "191": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "items" + }, + "192": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.concat" + }, + "193": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "items" + }, + "194": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.join" + }, + "195": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.join" + }, + "196": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "separator" + }, + "197": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reverse" + }, + "198": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reverse" + }, + "199": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.shift" + }, + "200": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.shift" + }, + "201": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.slice" + }, + "202": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.slice" + }, + "203": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "start" + }, + "204": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "end" + }, + "205": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.sort" + }, + "206": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.sort" + }, + "207": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "compareFn" + }, + "208": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "209": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "210": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "a" + }, + "211": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "b" + }, + "212": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.splice" + }, + "213": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.splice" + }, + "214": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "start" + }, + "215": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "deleteCount" + }, + "216": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.splice" + }, + "217": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "start" + }, + "218": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "deleteCount" + }, + "219": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "items" + }, + "220": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.unshift" + }, + "221": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.unshift" + }, + "222": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "items" + }, + "223": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.indexOf" + }, + "224": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.indexOf" + }, + "225": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "searchElement" + }, + "226": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "fromIndex" + }, + "227": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.lastIndexOf" + }, + "228": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.lastIndexOf" + }, + "229": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "searchElement" + }, + "230": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "fromIndex" + }, + "231": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.every" + }, + "232": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.every" + }, + "233": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "S" + }, + "234": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "predicate" + }, + "235": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "236": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "237": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "value" + }, + "238": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "index" + }, + "239": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "240": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "thisArg" + }, + "241": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.every" + }, + "242": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "predicate" + }, + "243": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "244": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "245": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "value" + }, + "246": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "index" + }, + "247": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "248": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "thisArg" + }, + "249": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.some" + }, + "250": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.some" + }, + "251": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "predicate" + }, + "252": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "253": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "254": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "value" + }, + "255": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "index" + }, + "256": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "257": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "thisArg" + }, + "258": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.forEach" + }, + "259": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.forEach" + }, + "260": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "261": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "262": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "263": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "value" + }, + "264": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "index" + }, + "265": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "266": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "thisArg" + }, + "267": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.map" + }, + "268": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.map" + }, + "269": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "U" + }, + "270": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "271": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "272": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "273": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "value" + }, + "274": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "index" + }, + "275": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "276": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "thisArg" + }, + "277": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.filter" + }, + "278": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.filter" + }, + "279": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "S" + }, + "280": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "predicate" + }, + "281": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "282": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "283": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "value" + }, + "284": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "index" + }, + "285": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "286": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "thisArg" + }, + "287": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.filter" + }, + "288": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "predicate" + }, + "289": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "290": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "291": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "value" + }, + "292": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "index" + }, + "293": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "294": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "thisArg" + }, + "295": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduce" + }, + "296": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduce" + }, + "297": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "298": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "299": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "300": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "previousValue" + }, + "301": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentValue" + }, + "302": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentIndex" + }, + "303": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "304": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduce" + }, + "305": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "306": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "307": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "308": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "previousValue" + }, + "309": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentValue" + }, + "310": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentIndex" + }, + "311": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "312": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "initialValue" + }, + "313": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduce" + }, + "314": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "U" + }, + "315": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "316": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "317": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "318": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "previousValue" + }, + "319": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentValue" + }, + "320": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentIndex" + }, + "321": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "322": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "initialValue" + }, + "323": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduceRight" + }, + "324": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduceRight" + }, + "325": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "326": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "327": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "328": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "previousValue" + }, + "329": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentValue" + }, + "330": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentIndex" + }, + "331": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "332": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduceRight" + }, + "333": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "334": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "335": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "336": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "previousValue" + }, + "337": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentValue" + }, + "338": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentIndex" + }, + "339": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "340": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "initialValue" + }, + "341": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduceRight" + }, + "342": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "U" + }, + "343": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "344": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "345": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "346": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "previousValue" + }, + "347": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentValue" + }, + "348": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentIndex" + }, + "349": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "350": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "initialValue" + }, + "351": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.find" + }, + "352": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.find" + }, + "353": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "S" + }, + "354": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "predicate" + }, + "355": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "__type" + }, + "356": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "__type" + }, + "357": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "value" + }, + "358": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "index" + }, + "359": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "obj" + }, + "360": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "thisArg" + }, + "361": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.find" + }, + "362": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "predicate" + }, + "363": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "__type" + }, + "364": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "__type" + }, + "365": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "value" + }, + "366": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "index" + }, + "367": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "obj" + }, + "368": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "thisArg" + }, + "369": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.findIndex" + }, + "370": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.findIndex" + }, + "371": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "predicate" + }, + "372": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "__type" + }, + "373": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "__type" + }, + "374": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "value" + }, + "375": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "index" + }, + "376": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "obj" + }, + "377": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "thisArg" + }, + "378": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.fill" + }, + "379": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.fill" + }, + "380": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "value" + }, + "381": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "start" + }, + "382": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "end" + }, + "383": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.copyWithin" + }, + "384": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.copyWithin" + }, + "385": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "target" + }, + "386": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "start" + }, + "387": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "end" + }, + "388": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.entries" + }, + "389": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.entries" + }, + "390": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.keys" + }, + "391": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.keys" + }, + "392": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.values" + }, + "393": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.values" + }, + "394": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "qualifiedName": "Array.includes" + }, + "395": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "qualifiedName": "Array.includes" + }, + "396": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "qualifiedName": "searchElement" + }, + "397": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "qualifiedName": "fromIndex" + }, + "398": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "Array.flatMap" + }, + "399": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "Array.flatMap" + }, + "400": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "U" + }, + "401": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "This" + }, + "402": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "callback" + }, + "403": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "__type" + }, + "404": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "__type" + }, + "405": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "this" + }, + "406": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "value" + }, + "407": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "index" + }, + "408": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "array" + }, + "409": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "thisArg" + }, + "410": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "Array.flat" + }, + "411": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "Array.flat" + }, + "412": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "A" + }, + "413": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "D" + }, + "414": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "this" + }, + "415": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "depth" + }, + "416": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2022.array.d.ts", + "qualifiedName": "Array.at" + }, + "417": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2022.array.d.ts", + "qualifiedName": "Array.at" + }, + "418": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2022.array.d.ts", + "qualifiedName": "index" + }, + "419": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.findLast" + }, + "420": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.findLast" + }, + "421": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "S" + }, + "422": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "predicate" + }, + "423": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "424": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "425": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "value" + }, + "426": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "index" + }, + "427": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "array" + }, + "428": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "thisArg" + }, + "429": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.findLast" + }, + "430": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "predicate" + }, + "431": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "432": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "433": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "value" + }, + "434": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "index" + }, + "435": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "array" + }, + "436": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "thisArg" + }, + "437": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.findLastIndex" + }, + "438": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.findLastIndex" + }, + "439": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "predicate" + }, + "440": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "441": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "442": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "value" + }, + "443": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "index" + }, + "444": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "array" + }, + "445": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "thisArg" + }, + "446": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.toReversed" + }, + "447": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.toReversed" + }, + "448": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.toSorted" + }, + "449": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.toSorted" + }, + "450": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "compareFn" + }, + "451": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "452": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "453": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "a" + }, + "454": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "b" + }, + "455": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.toSpliced" + }, + "456": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.toSpliced" + }, + "457": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "start" + }, + "458": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "deleteCount" + }, + "459": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "items" + }, + "460": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.toSpliced" + }, + "461": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "start" + }, + "462": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "deleteCount" + }, + "463": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.with" + }, + "464": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.with" + }, + "465": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "index" + }, + "466": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "value" + }, + "467": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.[iterator]" + }, + "468": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.[iterator]" + }, + "469": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "qualifiedName": "Array.[unscopables]" + }, + "470": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "qualifiedName": "__type" + }, + "471": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "length" + }, + "472": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "toString" + }, + "473": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "toLocaleString" + }, + "474": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "pop" + }, + "475": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "push" + }, + "476": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "concat" + }, + "477": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "join" + }, + "478": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "reverse" + }, + "479": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "shift" + }, + "480": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "slice" + }, + "481": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "sort" + }, + "482": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "splice" + }, + "483": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "unshift" + }, + "484": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "indexOf" + }, + "485": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "lastIndexOf" + }, + "486": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "every" + }, + "487": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "some" + }, + "488": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "forEach" + }, + "489": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "map" + }, + "490": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "filter" + }, + "491": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "reduce" + }, + "492": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "reduceRight" + }, + "493": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "find" + }, + "494": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "findIndex" + }, + "495": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "fill" + }, + "496": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "copyWithin" + }, + "497": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "entries" + }, + "498": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "keys" + }, + "499": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "values" + }, + "500": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "qualifiedName": "includes" + }, + "501": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "flatMap" + }, + "502": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "flat" + }, + "503": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2022.array.d.ts", + "qualifiedName": "at" + }, + "504": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "findLast" + }, + "505": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "findLastIndex" + }, + "506": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "toReversed" + }, + "507": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "toSorted" + }, + "508": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "toSpliced" + }, + "509": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "with" + }, + "510": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "[iterator]" + }, + "511": { + "sourceFileName": "node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "qualifiedName": "[unscopables]" + }, + "512": { + "sourceFileName": "src/isDarkMode.ts", + "qualifiedName": "isDarkMode" + }, + "513": { + "sourceFileName": "src/isDarkMode.ts", + "qualifiedName": "isDarkMode" + }, + "514": { + "sourceFileName": "src/isObject.ts", + "qualifiedName": "isObject" + }, + "515": { + "sourceFileName": "src/isObject.ts", + "qualifiedName": "isObject" + }, + "516": { + "sourceFileName": "src/isObject.ts", + "qualifiedName": "target" + }, + "517": { + "sourceFileName": "src/isDate.ts", + "qualifiedName": "isDate" + }, + "518": { + "sourceFileName": "src/isDate.ts", + "qualifiedName": "isDate" + }, + "519": { + "sourceFileName": "src/isDate.ts", + "qualifiedName": "target" + }, + "520": { + "sourceFileName": "src/isRegExp.ts", + "qualifiedName": "isRegExp" + }, + "521": { + "sourceFileName": "src/isRegExp.ts", + "qualifiedName": "isRegExp" + }, + "522": { + "sourceFileName": "src/isRegExp.ts", + "qualifiedName": "target" + }, + "523": { + "sourceFileName": "src/isArray.ts", + "qualifiedName": "isArray" + }, + "524": { + "sourceFileName": "src/isArray.ts", + "qualifiedName": "isArray" + }, + "525": { + "sourceFileName": "src/isArray.ts", + "qualifiedName": "target" + }, + "526": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "isIterable" + }, + "527": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "isIterable" + }, + "528": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "T" + }, + "529": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "target" + }, + "530": { + "sourceFileName": "src/inBrowser.ts", + "qualifiedName": "inBrowser" + }, + "531": { + "sourceFileName": "src/inNodeJs.ts", + "qualifiedName": "inNodeJs" + }, + "532": { + "sourceFileName": "src/windowSize.ts", + "qualifiedName": "windowSize" + }, + "533": { + "sourceFileName": "src/windowSize.ts", + "qualifiedName": "windowSize" + }, + "534": { + "sourceFileName": "src/windowSize.ts", + "qualifiedName": "WindowSizeObj" + }, + "535": { + "sourceFileName": "src/windowSize.ts", + "qualifiedName": "WindowSizeObj.width" + }, + "536": { + "sourceFileName": "src/windowSize.ts", + "qualifiedName": "WindowSizeObj.height" + }, + "537": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "getAppVersion" + }, + "538": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "getAppVersion" + }, + "539": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "appName" + }, + "540": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "withApp" + }, + "541": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "userAgent" + }, + "542": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "543": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "544": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "545": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "546": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "547": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ua" + }, + "548": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "549": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "550": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ua" + }, + "551": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "552": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "553": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ua" + }, + "554": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ignoreCase" + }, + "555": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "getOsVersion" + }, + "556": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "getOsVersion" + }, + "557": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "osName" + }, + "558": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "withOS" + }, + "559": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "userAgent" + }, + "560": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "osVersion" + }, + "561": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "osVersion" + }, + "562": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "ua" + }, + "563": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "OsVersion" + }, + "564": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "OsVersion.name" + }, + "565": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "OsVersion.version" + }, + "566": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "browserVersion" + }, + "567": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "browserVersion" + }, + "568": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "ua" + }, + "569": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "BrowserVersion" + }, + "570": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "BrowserVersion.name" + }, + "571": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "BrowserVersion.version" + }, + "572": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "compareVersion" + }, + "573": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "compareVersion" + }, + "574": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "input" + }, + "575": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "compare" + }, + "576": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "parseUrlParam" + }, + "577": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "parseUrlParam" + }, + "578": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "url" + }, + "579": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "covert" + }, + "580": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "spliceUrlParam" + }, + "581": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "spliceUrlParam" + }, + "582": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "T" + }, + "583": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "params" + }, + "584": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "covert" + }, + "585": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "SpliceUrlParamOptions" + }, + "586": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "SpliceUrlParamOptions.covert" + }, + "587": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "SpliceUrlParamOptions.encode" + }, + "588": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "SpliceUrlParamOptions.withQuestionsMark" + }, + "589": { + "sourceFileName": "src/safeParse.ts", + "qualifiedName": "safeParse" + }, + "590": { + "sourceFileName": "src/safeParse.ts", + "qualifiedName": "safeParse" + }, + "591": { + "sourceFileName": "src/safeParse.ts", + "qualifiedName": "data" + }, + "592": { + "sourceFileName": "src/safeParse.ts", + "qualifiedName": "covert" + }, + "593": { + "sourceFileName": "src/safeStringify.ts", + "qualifiedName": "safeStringify" + }, + "594": { + "sourceFileName": "src/safeStringify.ts", + "qualifiedName": "safeStringify" + }, + "595": { + "sourceFileName": "src/safeStringify.ts", + "qualifiedName": "data" + }, + "596": { + "sourceFileName": "src/safeStringify.ts", + "qualifiedName": "covert" + }, + "597": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "getDirParam" + }, + "598": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "getDirParam" + }, + "599": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "url" + }, + "600": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "DirParamType" + }, + "601": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "DirParamType.path" + }, + "602": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "DirParamType.host" + }, + "603": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "getQueryParam" + }, + "604": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "getQueryParam" + }, + "605": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "key" + }, + "606": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "getQueryParam" + }, + "607": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "key" + }, + "608": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "url" + }, + "609": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "610": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "611": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "url" + }, + "612": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "613": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "url" + }, + "614": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "615": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "url" + }, + "616": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "covert" + }, + "617": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "getUrlParam" + }, + "618": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "getUrlParam" + }, + "619": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "key" + }, + "620": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "getUrlParam" + }, + "621": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "key" + }, + "622": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "url" + }, + "623": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "624": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "625": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "url" + }, + "626": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "627": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "url" + }, + "628": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "629": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "url" + }, + "630": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "covert" + }, + "631": { + "sourceFileName": "src/getCache.ts", + "qualifiedName": "getCache" + }, + "632": { + "sourceFileName": "src/getCache.ts", + "qualifiedName": "getCache" + }, + "633": { + "sourceFileName": "src/getCache.ts", + "qualifiedName": "name" + }, + "634": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "setCache" + }, + "635": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "setCache" + }, + "636": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "T" + }, + "637": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "name" + }, + "638": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "value" + }, + "639": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "seconds" + }, + "640": { + "sourceFileName": "src/delCache.ts", + "qualifiedName": "delCache" + }, + "641": { + "sourceFileName": "src/delCache.ts", + "qualifiedName": "delCache" + }, + "642": { + "sourceFileName": "src/delCache.ts", + "qualifiedName": "name" + }, + "643": { + "sourceFileName": "src/getSession.ts", + "qualifiedName": "getSession" + }, + "644": { + "sourceFileName": "src/getSession.ts", + "qualifiedName": "getSession" + }, + "645": { + "sourceFileName": "src/getSession.ts", + "qualifiedName": "name" + }, + "646": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "setSession" + }, + "647": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "setSession" + }, + "648": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "T" + }, + "649": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "name" + }, + "650": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "value" + }, + "651": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "seconds" + }, + "652": { + "sourceFileName": "src/delSession.ts", + "qualifiedName": "delSession" + }, + "653": { + "sourceFileName": "src/delSession.ts", + "qualifiedName": "delSession" + }, + "654": { + "sourceFileName": "src/delSession.ts", + "qualifiedName": "name" + }, + "655": { + "sourceFileName": "src/getCookie.ts", + "qualifiedName": "getCookie" + }, + "656": { + "sourceFileName": "src/getCookie.ts", + "qualifiedName": "getCookie" + }, + "657": { + "sourceFileName": "src/getCookie.ts", + "qualifiedName": "name" + }, + "658": { + "sourceFileName": "src/getCookies.ts", + "qualifiedName": "getCookies" + }, + "659": { + "sourceFileName": "src/getCookies.ts", + "qualifiedName": "getCookies" + }, + "660": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "setCookie" + }, + "661": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "setCookie" + }, + "662": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "T" + }, + "663": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "name" + }, + "664": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "value" + }, + "665": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "seconds" + }, + "666": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "path" + }, + "667": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "samesite" + }, + "668": { + "sourceFileName": "src/delCookie.ts", + "qualifiedName": "delCookie" + }, + "669": { + "sourceFileName": "src/delCookie.ts", + "qualifiedName": "delCookie" + }, + "670": { + "sourceFileName": "src/delCookie.ts", + "qualifiedName": "name" + }, + "671": { + "sourceFileName": "src/encodeBase64.ts", + "qualifiedName": "encodeBase64" + }, + "672": { + "sourceFileName": "src/encodeBase64.ts", + "qualifiedName": "encodeBase64" + }, + "673": { + "sourceFileName": "src/encodeBase64.ts", + "qualifiedName": "input" + }, + "674": { + "sourceFileName": "src/encodeUtf8.ts", + "qualifiedName": "encodeUtf8" + }, + "675": { + "sourceFileName": "src/encodeUtf8.ts", + "qualifiedName": "encodeUtf8" + }, + "676": { + "sourceFileName": "src/encodeUtf8.ts", + "qualifiedName": "string" + }, + "677": { + "sourceFileName": "src/decodeBase64.ts", + "qualifiedName": "decodeBase64" + }, + "678": { + "sourceFileName": "src/decodeBase64.ts", + "qualifiedName": "decodeBase64" + }, + "679": { + "sourceFileName": "src/decodeBase64.ts", + "qualifiedName": "input" + }, + "680": { + "sourceFileName": "src/decodeUtf8.ts", + "qualifiedName": "decodeUtf8" + }, + "681": { + "sourceFileName": "src/decodeUtf8.ts", + "qualifiedName": "decodeUtf8" + }, + "682": { + "sourceFileName": "src/decodeUtf8.ts", + "qualifiedName": "utftext" + }, + "683": { + "sourceFileName": "src/stopBubble.ts", + "qualifiedName": "stopBubble" + }, + "684": { + "sourceFileName": "src/stopBubble.ts", + "qualifiedName": "stopBubble" + }, + "685": { + "sourceFileName": "src/stopBubble.ts", + "qualifiedName": "e" + }, + "686": { + "sourceFileName": "src/stopDefault.ts", + "qualifiedName": "stopDefault" + }, + "687": { + "sourceFileName": "src/stopDefault.ts", + "qualifiedName": "stopDefault" + }, + "688": { + "sourceFileName": "src/stopDefault.ts", + "qualifiedName": "e" + }, + "689": { + "sourceFileName": "src/addEvent.ts", + "qualifiedName": "addEvent" + }, + "690": { + "sourceFileName": "src/addEvent.ts", + "qualifiedName": "addEvent" + }, + "691": { + "sourceFileName": "src/addEvent.ts", + "qualifiedName": "element" + }, + "692": { + "sourceFileName": "src/addEvent.ts", + "qualifiedName": "type" + }, + "693": { + "sourceFileName": "src/addEvent.ts", + "qualifiedName": "handler" + }, + "694": { + "sourceFileName": "src/addEvent.ts", + "qualifiedName": "addEvent.guid" + }, + "695": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "removeEvent" + }, + "696": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "removeEvent" + }, + "697": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "element" + }, + "698": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "type" + }, + "699": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "handler" + }, + "700": { + "sourceFileName": "src/getScrollPosition.ts", + "qualifiedName": "getScrollPosition" + }, + "701": { + "sourceFileName": "src/getScrollPosition.ts", + "qualifiedName": "getScrollPosition" + }, + "702": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "nextIndex" + }, + "703": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "nextIndex" + }, + "704": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "min" + }, + "705": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "max" + }, + "706": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "nextVersion" + }, + "707": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "nextVersion" + }, + "708": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "version" + }, + "709": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "type" + }, + "710": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "preid" + }, + "711": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "Version" + }, + "712": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "Version.major" + }, + "713": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "Version.minor" + }, + "714": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "Version.patch" + }, + "715": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "Version.preid" + }, + "716": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "Version.release" + }, + "717": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "punctualTimer" + }, + "718": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "punctualTimer" + }, + "719": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "TArgs" + }, + "720": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "handler" + }, + "721": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__type" + }, + "722": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__type" + }, + "723": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "args" + }, + "724": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "delay" + }, + "725": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__2" + }, + "726": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "punctualTimer" + }, + "727": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "TArgs" + }, + "728": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "handler" + }, + "729": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__type" + }, + "730": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__type" + }, + "731": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "args" + }, + "732": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "delay" + }, + "733": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__2" + }, + "734": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "promiseFactory" + }, + "735": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "promiseFactory" + }, + "736": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "T" + }, + "737": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "original" + }, + "738": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "resolver" + }, + "739": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "__type" + }, + "740": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "__type" + }, + "741": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "fixNumber" + }, + "742": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "fixNumber" + }, + "743": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "number" + }, + "744": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "n" + }, + "745": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "mapTemplate" + }, + "746": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "mapTemplate" + }, + "747": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "tmp" + }, + "748": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "data" + }, + "749": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "__type" + }, + "750": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "__type" + }, + "751": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "value" + }, + "752": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "753": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "754": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "755": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "756": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "757": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "758": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "759": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "760": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "761": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "762": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "763": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "764": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "765": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "ExtendArrayData" + }, + "766": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "ExtendObjectData" + }, + "767": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "ExtendData" + }, + "768": { + "sourceFileName": "src/clone.ts", + "qualifiedName": "clone" + }, + "769": { + "sourceFileName": "src/clone.ts", + "qualifiedName": "clone" + }, + "770": { + "sourceFileName": "src/clone.ts", + "qualifiedName": "T" + }, + "771": { + "sourceFileName": "src/clone.ts", + "qualifiedName": "parent" + }, + "772": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "delay" + }, + "773": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "delay" + }, + "774": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object" + }, + "775": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.map" + }, + "776": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.register" + }, + "777": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.register" + }, + "778": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "id" + }, + "779": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "fn" + }, + "780": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "time" + }, + "781": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "boo" + }, + "782": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.destroy" + }, + "783": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.destroy" + }, + "784": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "id" + }, + "785": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "getType" + }, + "786": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "getType" + }, + "787": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "T" + }, + "788": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "target" + }, + "789": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "getFileType" + }, + "790": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "getFileType" + }, + "791": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "url" + }, + "792": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "__object" + }, + "793": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "__object.suffix" + }, + "794": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "__object.type" + }, + "795": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "sorter" + }, + "796": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "sorter" + }, + "797": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "locales" + }, + "798": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "options" + }, + "799": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "__function" + }, + "800": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "__function" + }, + "801": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "T" + }, + "802": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "P" + }, + "803": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "a" + }, + "804": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "b" + }, + "805": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "sortPinyin" + }, + "806": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "sortPinyin" + }, + "807": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "T" + }, + "808": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "P" + }, + "809": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "a" + }, + "810": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "b" + }, + "811": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "options" + }, + "812": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "cleanData" + }, + "813": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "cleanData" + }, + "814": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "data" + }, + "815": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "map" + }, + "816": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "nullFix" + }, + "817": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "searchObject" + }, + "818": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "searchObject" + }, + "819": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "tree" + }, + "820": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "expression" + }, + "821": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "keySet" + }, + "822": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "number" + }, + "823": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "SearchKeySet" + }, + "824": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "SearchKeySet.childName" + }, + "825": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "SearchKeySet.keyName" + }, + "826": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "SearchKeySet.__index" + }, + "828": { + "sourceFileName": "src/openUrl.ts", + "qualifiedName": "openUrl" + }, + "829": { + "sourceFileName": "src/openUrl.ts", + "qualifiedName": "openUrl" + }, + "830": { + "sourceFileName": "src/openUrl.ts", + "qualifiedName": "url" + }, + "831": { + "sourceFileName": "src/copy.ts", + "qualifiedName": "copy" + }, + "832": { + "sourceFileName": "src/copy.ts", + "qualifiedName": "copy" + }, + "833": { + "sourceFileName": "src/copy.ts", + "qualifiedName": "value" + }, + "834": { + "sourceFileName": "src/toThousands.ts", + "qualifiedName": "toThousands" + }, + "835": { + "sourceFileName": "src/toThousands.ts", + "qualifiedName": "toThousands" + }, + "836": { + "sourceFileName": "src/toThousands.ts", + "qualifiedName": "num" + }, + "837": { + "sourceFileName": "src/all.ts", + "qualifiedName": "all" + }, + "838": { + "sourceFileName": "src/all.ts", + "qualifiedName": "all" + }, + "839": { + "sourceFileName": "src/all.ts", + "qualifiedName": "T" + }, + "840": { + "sourceFileName": "src/all.ts", + "qualifiedName": "arr" + }, + "841": { + "sourceFileName": "src/all.ts", + "qualifiedName": "fn" + }, + "842": { + "sourceFileName": "src/any.ts", + "qualifiedName": "any" + }, + "843": { + "sourceFileName": "src/any.ts", + "qualifiedName": "any" + }, + "844": { + "sourceFileName": "src/any.ts", + "qualifiedName": "T" + }, + "845": { + "sourceFileName": "src/any.ts", + "qualifiedName": "arr" + }, + "846": { + "sourceFileName": "src/any.ts", + "qualifiedName": "fn" + }, + "847": { + "sourceFileName": "src/uuid.ts", + "qualifiedName": "uuid" + }, + "848": { + "sourceFileName": "src/uuid.ts", + "qualifiedName": "uuid" + }, + "849": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "CSVToArray" + }, + "850": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "CSVToArray" + }, + "851": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "data" + }, + "852": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "delimiter" + }, + "853": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "omitFirstRow" + }, + "854": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "arrayToCSV" + }, + "855": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "arrayToCSV" + }, + "856": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "T" + }, + "857": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "arr" + }, + "858": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "delimiter" + }, + "859": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "CSVToJSON" + }, + "860": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "CSVToJSON" + }, + "861": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "data" + }, + "862": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "delimiter" + }, + "863": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "JSONToCSV" + }, + "864": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "JSONToCSV" + }, + "865": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "arr" + }, + "866": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "columns" + }, + "867": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "delimiter" + }, + "868": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "RGBToHex" + }, + "869": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "RGBToHex" + }, + "870": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "r" + }, + "871": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "g" + }, + "872": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "b" + }, + "873": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "intersect" + }, + "874": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "intersect" + }, + "875": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "T" + }, + "876": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "args" + }, + "877": { + "sourceFileName": "src/union.ts", + "qualifiedName": "union" + }, + "878": { + "sourceFileName": "src/union.ts", + "qualifiedName": "union" + }, + "879": { + "sourceFileName": "src/union.ts", + "qualifiedName": "T" + }, + "880": { + "sourceFileName": "src/union.ts", + "qualifiedName": "args" + }, + "881": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "minus" + }, + "882": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "minus" + }, + "883": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "T" + }, + "884": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "args" + }, + "885": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "complement" + }, + "886": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "complement" + }, + "887": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "T" + }, + "888": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "args" + }, + "889": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "contains" + }, + "890": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "contains" + }, + "891": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "arr" + }, + "892": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "item" + }, + "893": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "unique" + }, + "894": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "unique" + }, + "895": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "T" + }, + "896": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "arr" + }, + "897": { + "sourceFileName": "src/fillIPv6.ts", + "qualifiedName": "fillIPv6" + }, + "898": { + "sourceFileName": "src/fillIPv6.ts", + "qualifiedName": "fillIPv6" + }, + "899": { + "sourceFileName": "src/fillIPv6.ts", + "qualifiedName": "ip" + }, + "900": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "getProperty" + }, + "901": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "getProperty" + }, + "902": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "T" + }, + "903": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "target" + }, + "904": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "prop" + }, + "905": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "__type" + }, + "906": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "__type" + }, + "907": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "defaultValue" + }, + "908": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "getProperty" + }, + "909": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "T" + }, + "910": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "target" + }, + "911": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "prop" + }, + "912": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "__type" + }, + "913": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "__type" + }, + "914": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "defaultValue" + }, + "915": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "setProperty" + }, + "916": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "setProperty" + }, + "917": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "target" + }, + "918": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "prop" + }, + "919": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "__type" + }, + "920": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "__type" + }, + "921": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "value" + }, + "922": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "preloader" + }, + "923": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "preloader" + }, + "924": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "images" + }, + "925": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "preloader" + }, + "926": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "images" + }, + "927": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "waiting" + }, + "928": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "waiting" + }, + "929": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "milliseconds" + }, + "930": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "throwOnTimeout" + }, + "931": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "arrayBufferToBase64" + }, + "932": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "arrayBufferToBase64" + }, + "933": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "input" + }, + "934": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "mime" + }, + "935": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "arrayBufferToBlob" + }, + "936": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "arrayBufferToBlob" + }, + "937": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "input" + }, + "938": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "mime" + }, + "939": { + "sourceFileName": "src/base64ToArrayBuffer.ts", + "qualifiedName": "base64ToArrayBuffer" + }, + "940": { + "sourceFileName": "src/base64ToArrayBuffer.ts", + "qualifiedName": "base64ToArrayBuffer" + }, + "941": { + "sourceFileName": "src/base64ToArrayBuffer.ts", + "qualifiedName": "input" + }, + "942": { + "sourceFileName": "src/base64ToBlob.ts", + "qualifiedName": "base64ToBlob" + }, + "943": { + "sourceFileName": "src/base64ToBlob.ts", + "qualifiedName": "base64ToBlob" + }, + "944": { + "sourceFileName": "src/base64ToBlob.ts", + "qualifiedName": "input" + }, + "945": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "base64ToFile" + }, + "946": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "base64ToFile" + }, + "947": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "input" + }, + "948": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "fileName" + }, + "949": { + "sourceFileName": "src/blobToArrayBuffer.ts", + "qualifiedName": "blobToArrayBuffer" + }, + "950": { + "sourceFileName": "src/blobToArrayBuffer.ts", + "qualifiedName": "blobToArrayBuffer" + }, + "951": { + "sourceFileName": "src/blobToArrayBuffer.ts", + "qualifiedName": "input" + }, + "952": { + "sourceFileName": "src/blobToBase64.ts", + "qualifiedName": "blobToBase64" + }, + "953": { + "sourceFileName": "src/blobToBase64.ts", + "qualifiedName": "blobToBase64" + }, + "954": { + "sourceFileName": "src/blobToBase64.ts", + "qualifiedName": "input" + }, + "955": { + "sourceFileName": "src/blobToUrl.ts", + "qualifiedName": "blobToUrl" + }, + "956": { + "sourceFileName": "src/blobToUrl.ts", + "qualifiedName": "blobToUrl" + }, + "957": { + "sourceFileName": "src/blobToUrl.ts", + "qualifiedName": "input" + }, + "958": { + "sourceFileName": "src/fileToBase64.ts", + "qualifiedName": "fileToBase64" + }, + "959": { + "sourceFileName": "src/fileToBase64.ts", + "qualifiedName": "fileToBase64" + }, + "960": { + "sourceFileName": "src/fileToBase64.ts", + "qualifiedName": "input" + }, + "961": { + "sourceFileName": "src/svgToBlob.ts", + "qualifiedName": "svgToBlob" + }, + "962": { + "sourceFileName": "src/svgToBlob.ts", + "qualifiedName": "svgToBlob" + }, + "963": { + "sourceFileName": "src/svgToBlob.ts", + "qualifiedName": "input" + }, + "964": { + "sourceFileName": "src/urlToBlob.ts", + "qualifiedName": "urlToBlob" + }, + "965": { + "sourceFileName": "src/urlToBlob.ts", + "qualifiedName": "urlToBlob" + }, + "966": { + "sourceFileName": "src/urlToBlob.ts", + "qualifiedName": "input" + }, + "967": { + "sourceFileName": "src/types.ts", + "qualifiedName": "AnyObject" + }, + "968": { + "sourceFileName": "src/types.ts", + "qualifiedName": "AnyFunction" + }, + "969": { + "sourceFileName": "src/types.ts", + "qualifiedName": "AnyFunction" + }, + "970": { + "sourceFileName": "src/types.ts", + "qualifiedName": "args" + }, + "971": { + "sourceFileName": "src/types.ts", + "qualifiedName": "ArrayOne" + }, + "972": { + "sourceFileName": "src/types.ts", + "qualifiedName": "ArrayOne.0" + }, + "973": { + "sourceFileName": "src/types.ts", + "qualifiedName": "ArrayOne.T" + }, + "974": { + "sourceFileName": "src/types.ts", + "qualifiedName": "ArrayOneMore" + }, + "975": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "976": { + "sourceFileName": "src/types.ts", + "qualifiedName": "ArrayTwoMore" + }, + "977": { + "sourceFileName": "src/types.ts", + "qualifiedName": "__type" + }, + "978": { + "sourceFileName": "src/types.ts", + "qualifiedName": "__type.0" + }, + "979": { + "sourceFileName": "src/types.ts", + "qualifiedName": "__type.1" + }, + "980": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "981": { + "sourceFileName": "src/types.ts", + "qualifiedName": "PickRequired" + }, + "982": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "983": { + "sourceFileName": "src/types.ts", + "qualifiedName": "K" + }, + "984": { + "sourceFileName": "src/types.ts", + "qualifiedName": "OmitRequired" + }, + "985": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "986": { + "sourceFileName": "src/types.ts", + "qualifiedName": "K" + }, + "987": { + "sourceFileName": "src/types.ts", + "qualifiedName": "PickPartial" + }, + "988": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "989": { + "sourceFileName": "src/types.ts", + "qualifiedName": "K" + }, + "990": { + "sourceFileName": "src/types.ts", + "qualifiedName": "OmitPartial" + }, + "991": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "992": { + "sourceFileName": "src/types.ts", + "qualifiedName": "K" + }, + "993": { + "sourceFileName": "src/types.ts", + "qualifiedName": "MaybePromiseOrGetter" + }, + "994": { + "sourceFileName": "src/types.ts", + "qualifiedName": "__type" + }, + "995": { + "sourceFileName": "src/types.ts", + "qualifiedName": "__type" + }, + "996": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "997": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "998": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "default" + }, + "999": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object" + }, + "1000": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.version" + }, + "1001": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.download" + }, + "1002": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.1/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "download" + }, + "1003": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.1/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "download" + }, + "1004": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.1/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "url" + }, + "1005": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.1/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "filename" + }, + "1006": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.1/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "type" + }, + "1007": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.RGBToHex" + }, + "1008": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "__function" + }, + "1009": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "__function" + }, + "1010": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "r" + }, + "1011": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "g" + }, + "1012": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "b" + }, + "1013": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.addEvent" + }, + "1014": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.all" + }, + "1015": { + "sourceFileName": "src/all.ts", + "qualifiedName": "__function" + }, + "1016": { + "sourceFileName": "src/all.ts", + "qualifiedName": "__function" + }, + "1017": { + "sourceFileName": "src/all.ts", + "qualifiedName": "T" + }, + "1018": { + "sourceFileName": "src/all.ts", + "qualifiedName": "arr" + }, + "1019": { + "sourceFileName": "src/all.ts", + "qualifiedName": "fn" + }, + "1020": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.any" + }, + "1021": { + "sourceFileName": "src/any.ts", + "qualifiedName": "__function" + }, + "1022": { + "sourceFileName": "src/any.ts", + "qualifiedName": "__function" + }, + "1023": { + "sourceFileName": "src/any.ts", + "qualifiedName": "T" + }, + "1024": { + "sourceFileName": "src/any.ts", + "qualifiedName": "arr" + }, + "1025": { + "sourceFileName": "src/any.ts", + "qualifiedName": "fn" + }, + "1026": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getCache" + }, + "1027": { + "sourceFileName": "src/getCache.ts", + "qualifiedName": "getCache" + }, + "1028": { + "sourceFileName": "src/getCache.ts", + "qualifiedName": "getCache" + }, + "1029": { + "sourceFileName": "src/getCache.ts", + "qualifiedName": "name" + }, + "1030": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.setCache" + }, + "1031": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "setCache" + }, + "1032": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "setCache" + }, + "1033": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "T" + }, + "1034": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "name" + }, + "1035": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "value" + }, + "1036": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "seconds" + }, + "1037": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.delCache" + }, + "1038": { + "sourceFileName": "src/delCache.ts", + "qualifiedName": "delCache" + }, + "1039": { + "sourceFileName": "src/delCache.ts", + "qualifiedName": "delCache" + }, + "1040": { + "sourceFileName": "src/delCache.ts", + "qualifiedName": "name" + }, + "1041": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getSession" + }, + "1042": { + "sourceFileName": "src/getSession.ts", + "qualifiedName": "getSession" + }, + "1043": { + "sourceFileName": "src/getSession.ts", + "qualifiedName": "getSession" + }, + "1044": { + "sourceFileName": "src/getSession.ts", + "qualifiedName": "name" + }, + "1045": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.setSession" + }, + "1046": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "setSession" + }, + "1047": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "setSession" + }, + "1048": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "T" + }, + "1049": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "name" + }, + "1050": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "value" + }, + "1051": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "seconds" + }, + "1052": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.delSession" + }, + "1053": { + "sourceFileName": "src/delSession.ts", + "qualifiedName": "delSession" + }, + "1054": { + "sourceFileName": "src/delSession.ts", + "qualifiedName": "delSession" + }, + "1055": { + "sourceFileName": "src/delSession.ts", + "qualifiedName": "name" + }, + "1056": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getCookie" + }, + "1057": { + "sourceFileName": "src/getCookie.ts", + "qualifiedName": "getCookie" + }, + "1058": { + "sourceFileName": "src/getCookie.ts", + "qualifiedName": "getCookie" + }, + "1059": { + "sourceFileName": "src/getCookie.ts", + "qualifiedName": "name" + }, + "1060": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getCookies" + }, + "1061": { + "sourceFileName": "src/getCookies.ts", + "qualifiedName": "getCookies" + }, + "1062": { + "sourceFileName": "src/getCookies.ts", + "qualifiedName": "getCookies" + }, + "1063": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.setCookie" + }, + "1064": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "setCookie" + }, + "1065": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "setCookie" + }, + "1066": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "T" + }, + "1067": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "name" + }, + "1068": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "value" + }, + "1069": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "seconds" + }, + "1070": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "path" + }, + "1071": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "samesite" + }, + "1072": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.delCookie" + }, + "1073": { + "sourceFileName": "src/delCookie.ts", + "qualifiedName": "delCookie" + }, + "1074": { + "sourceFileName": "src/delCookie.ts", + "qualifiedName": "delCookie" + }, + "1075": { + "sourceFileName": "src/delCookie.ts", + "qualifiedName": "name" + }, + "1076": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.camel2Dash" + }, + "1077": { + "sourceFileName": "src/camel2Dash.ts", + "qualifiedName": "camel2Dash" + }, + "1078": { + "sourceFileName": "src/camel2Dash.ts", + "qualifiedName": "camel2Dash" + }, + "1079": { + "sourceFileName": "src/camel2Dash.ts", + "qualifiedName": "string" + }, + "1080": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.cleanData" + }, + "1081": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "cleanData" + }, + "1082": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "cleanData" + }, + "1083": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "data" + }, + "1084": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "map" + }, + "1085": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "nullFix" + }, + "1086": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.clearAttr" + }, + "1087": { + "sourceFileName": "src/clearAttr.ts", + "qualifiedName": "clearAttr" + }, + "1088": { + "sourceFileName": "src/clearAttr.ts", + "qualifiedName": "clearAttr" + }, + "1089": { + "sourceFileName": "src/clearAttr.ts", + "qualifiedName": "string" + }, + "1090": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.clearHtml" + }, + "1091": { + "sourceFileName": "src/clearHtml.ts", + "qualifiedName": "clearHtml" + }, + "1092": { + "sourceFileName": "src/clearHtml.ts", + "qualifiedName": "clearHtml" + }, + "1093": { + "sourceFileName": "src/clearHtml.ts", + "qualifiedName": "string" + }, + "1094": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.escape" + }, + "1095": { + "sourceFileName": "src/escape.ts", + "qualifiedName": "escape" + }, + "1096": { + "sourceFileName": "src/escape.ts", + "qualifiedName": "escape" + }, + "1097": { + "sourceFileName": "src/escape.ts", + "qualifiedName": "string" + }, + "1098": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.unescape" + }, + "1099": { + "sourceFileName": "src/unescape.ts", + "qualifiedName": "unescape" + }, + "1100": { + "sourceFileName": "src/unescape.ts", + "qualifiedName": "unescape" + }, + "1101": { + "sourceFileName": "src/unescape.ts", + "qualifiedName": "string" + }, + "1102": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.client" + }, + "1103": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__function" + }, + "1104": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__function" + }, + "1105": { + "sourceFileName": "src/client.ts", + "qualifiedName": "name" + }, + "1106": { + "sourceFileName": "src/client.ts", + "qualifiedName": "userAgent" + }, + "1107": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object" + }, + "1108": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.IE" + }, + "1109": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.GECKO" + }, + "1110": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.WEBKIT" + }, + "1111": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.OPERA" + }, + "1112": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.TRIDENT" + }, + "1113": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.MOBILE" + }, + "1114": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.IOS" + }, + "1115": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.ANDROID" + }, + "1116": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.IPHONE" + }, + "1117": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.IPAD" + }, + "1118": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.QQBROWSER" + }, + "1119": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.WEIXIN" + }, + "1120": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.QQ" + }, + "1121": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.complement" + }, + "1122": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "complement" + }, + "1123": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "complement" + }, + "1124": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "T" + }, + "1125": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "args" + }, + "1126": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.contains" + }, + "1127": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "contains" + }, + "1128": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "contains" + }, + "1129": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "arr" + }, + "1130": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "item" + }, + "1131": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.CSVToArray" + }, + "1132": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "__function" + }, + "1133": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "__function" + }, + "1134": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "data" + }, + "1135": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "delimiter" + }, + "1136": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "omitFirstRow" + }, + "1137": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.arrayToCSV" + }, + "1138": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "__function" + }, + "1139": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "__function" + }, + "1140": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "T" + }, + "1141": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "arr" + }, + "1142": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "delimiter" + }, + "1143": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.CSVToJSON" + }, + "1144": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "CSVToJSON" + }, + "1145": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "CSVToJSON" + }, + "1146": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "data" + }, + "1147": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "delimiter" + }, + "1148": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.JSONToCSV" + }, + "1149": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "__function" + }, + "1150": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "__function" + }, + "1151": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "arr" + }, + "1152": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "columns" + }, + "1153": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "delimiter" + }, + "1154": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.cutCHSString" + }, + "1155": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "cutCHSString" + }, + "1156": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "cutCHSString" + }, + "1157": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "str" + }, + "1158": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "len" + }, + "1159": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "hasDot" + }, + "1160": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.dash2Camel" + }, + "1161": { + "sourceFileName": "src/dash2Camel.ts", + "qualifiedName": "dash2Camel" + }, + "1162": { + "sourceFileName": "src/dash2Camel.ts", + "qualifiedName": "dash2Camel" + }, + "1163": { + "sourceFileName": "src/dash2Camel.ts", + "qualifiedName": "string" + }, + "1164": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.decodeBase64" + }, + "1165": { + "sourceFileName": "src/decodeBase64.ts", + "qualifiedName": "decodeBase64" + }, + "1166": { + "sourceFileName": "src/decodeBase64.ts", + "qualifiedName": "decodeBase64" + }, + "1167": { + "sourceFileName": "src/decodeBase64.ts", + "qualifiedName": "input" + }, + "1168": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.decodeUtf8" + }, + "1169": { + "sourceFileName": "src/decodeUtf8.ts", + "qualifiedName": "decodeUtf8" + }, + "1170": { + "sourceFileName": "src/decodeUtf8.ts", + "qualifiedName": "decodeUtf8" + }, + "1171": { + "sourceFileName": "src/decodeUtf8.ts", + "qualifiedName": "utftext" + }, + "1172": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.delay" + }, + "1173": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "delay" + }, + "1174": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "delay" + }, + "1175": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object" + }, + "1176": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.map" + }, + "1177": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.register" + }, + "1178": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.register" + }, + "1179": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "id" + }, + "1180": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "fn" + }, + "1181": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "time" + }, + "1182": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "boo" + }, + "1183": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.destroy" + }, + "1184": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.destroy" + }, + "1185": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "id" + }, + "1186": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.encodeBase64" + }, + "1187": { + "sourceFileName": "src/encodeBase64.ts", + "qualifiedName": "encodeBase64" + }, + "1188": { + "sourceFileName": "src/encodeBase64.ts", + "qualifiedName": "encodeBase64" + }, + "1189": { + "sourceFileName": "src/encodeBase64.ts", + "qualifiedName": "input" + }, + "1190": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.encodeUtf8" + }, + "1191": { + "sourceFileName": "src/encodeUtf8.ts", + "qualifiedName": "encodeUtf8" + }, + "1192": { + "sourceFileName": "src/encodeUtf8.ts", + "qualifiedName": "encodeUtf8" + }, + "1193": { + "sourceFileName": "src/encodeUtf8.ts", + "qualifiedName": "string" + }, + "1194": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.extend" + }, + "1195": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "1196": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "1197": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "1198": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "1199": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "1200": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "1201": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "1202": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "1203": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "1204": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "1205": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "1206": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "1207": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "1208": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.clone" + }, + "1209": { + "sourceFileName": "src/clone.ts", + "qualifiedName": "clone" + }, + "1210": { + "sourceFileName": "src/clone.ts", + "qualifiedName": "clone" + }, + "1211": { + "sourceFileName": "src/clone.ts", + "qualifiedName": "T" + }, + "1212": { + "sourceFileName": "src/clone.ts", + "qualifiedName": "parent" + }, + "1213": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.fillIPv6" + }, + "1214": { + "sourceFileName": "src/fillIPv6.ts", + "qualifiedName": "fillIPv6" + }, + "1215": { + "sourceFileName": "src/fillIPv6.ts", + "qualifiedName": "fillIPv6" + }, + "1216": { + "sourceFileName": "src/fillIPv6.ts", + "qualifiedName": "ip" + }, + "1217": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.fixNumber" + }, + "1218": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "fixNumber" + }, + "1219": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "fixNumber" + }, + "1220": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "number" + }, + "1221": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "n" + }, + "1222": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.mapTemplate" + }, + "1223": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "mapTemplate" + }, + "1224": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "mapTemplate" + }, + "1225": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "tmp" + }, + "1226": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "data" + }, + "1227": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "__type" + }, + "1228": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "__type" + }, + "1229": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "value" + }, + "1230": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getAppVersion" + }, + "1231": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "getAppVersion" + }, + "1232": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "getAppVersion" + }, + "1233": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "appName" + }, + "1234": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "withApp" + }, + "1235": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "userAgent" + }, + "1236": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.appVersion" + }, + "1237": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "1238": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "1239": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "1240": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "1241": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "1242": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ua" + }, + "1243": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "1244": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "1245": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ua" + }, + "1246": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "1247": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "1248": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ua" + }, + "1249": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ignoreCase" + }, + "1250": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getCHSLength" + }, + "1251": { + "sourceFileName": "src/getCHSLength.ts", + "qualifiedName": "getCHSLength" + }, + "1252": { + "sourceFileName": "src/getCHSLength.ts", + "qualifiedName": "getCHSLength" + }, + "1253": { + "sourceFileName": "src/getCHSLength.ts", + "qualifiedName": "str" + }, + "1254": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getDirParam" + }, + "1255": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "getDirParam" + }, + "1256": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "getDirParam" + }, + "1257": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "url" + }, + "1258": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.compareVersion" + }, + "1259": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "compareVersion" + }, + "1260": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "compareVersion" + }, + "1261": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "input" + }, + "1262": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "compare" + }, + "1263": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getNumber" + }, + "1264": { + "sourceFileName": "src/getNumber.ts", + "qualifiedName": "getNumber" + }, + "1265": { + "sourceFileName": "src/getNumber.ts", + "qualifiedName": "getNumber" + }, + "1266": { + "sourceFileName": "src/getNumber.ts", + "qualifiedName": "string" + }, + "1267": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getOsVersion" + }, + "1268": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "getOsVersion" + }, + "1269": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "getOsVersion" + }, + "1270": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "osName" + }, + "1271": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "withOS" + }, + "1272": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "userAgent" + }, + "1273": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.osVersion" + }, + "1274": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "osVersion" + }, + "1275": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "osVersion" + }, + "1276": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "ua" + }, + "1277": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.browserVersion" + }, + "1278": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "browserVersion" + }, + "1279": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "browserVersion" + }, + "1280": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "ua" + }, + "1281": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getQueryParam" + }, + "1282": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "getQueryParam" + }, + "1283": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "getQueryParam" + }, + "1284": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "key" + }, + "1285": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "getQueryParam" + }, + "1286": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "key" + }, + "1287": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "url" + }, + "1288": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getQueryParams" + }, + "1289": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "1290": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "1291": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "url" + }, + "1292": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "1293": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "url" + }, + "1294": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "1295": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "url" + }, + "1296": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "covert" + }, + "1297": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getProperty" + }, + "1298": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "getProperty" + }, + "1299": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "getProperty" + }, + "1300": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "T" + }, + "1301": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "target" + }, + "1302": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "prop" + }, + "1303": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "__type" + }, + "1304": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "__type" + }, + "1305": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "defaultValue" + }, + "1306": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "getProperty" + }, + "1307": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "T" + }, + "1308": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "target" + }, + "1309": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "prop" + }, + "1310": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "__type" + }, + "1311": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "__type" + }, + "1312": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "defaultValue" + }, + "1313": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.randomColor" + }, + "1314": { + "sourceFileName": "src/randomColor.ts", + "qualifiedName": "randomColor" + }, + "1315": { + "sourceFileName": "src/randomColor.ts", + "qualifiedName": "randomColor" + }, + "1316": { + "sourceFileName": "src/randomColor.ts", + "qualifiedName": "min" + }, + "1317": { + "sourceFileName": "src/randomColor.ts", + "qualifiedName": "max" + }, + "1318": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.randomNumber" + }, + "1319": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "randomNumber" + }, + "1320": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "randomNumber" + }, + "1321": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "min" + }, + "1322": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "max" + }, + "1323": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.randomNumbers" + }, + "1324": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "randomNumbers" + }, + "1325": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "randomNumbers" + }, + "1326": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "n" + }, + "1327": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "sum" + }, + "1328": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "noZero" + }, + "1329": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.randomString" + }, + "1330": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "randomString" + }, + "1331": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "randomString" + }, + "1332": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "len" + }, + "1333": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "options" + }, + "1334": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "randomString" + }, + "1335": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "len" + }, + "1336": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "options" + }, + "1337": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.shuffle" + }, + "1338": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "shuffle" + }, + "1339": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "shuffle" + }, + "1340": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "value" + }, + "1341": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "size" + }, + "1342": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "shuffle" + }, + "1343": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "T" + }, + "1344": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "value" + }, + "1345": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "size" + }, + "1346": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.fingerprint" + }, + "1347": { + "sourceFileName": "src/fingerprint.ts", + "qualifiedName": "fingerprint" + }, + "1348": { + "sourceFileName": "src/fingerprint.ts", + "qualifiedName": "fingerprint" + }, + "1349": { + "sourceFileName": "src/fingerprint.ts", + "qualifiedName": "domain" + }, + "1350": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getScrollPosition" + }, + "1351": { + "sourceFileName": "src/getScrollPosition.ts", + "qualifiedName": "getScrollPosition" + }, + "1352": { + "sourceFileName": "src/getScrollPosition.ts", + "qualifiedName": "getScrollPosition" + }, + "1353": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getType" + }, + "1354": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "getType" + }, + "1355": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "getType" + }, + "1356": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "T" + }, + "1357": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "target" + }, + "1358": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getFileType" + }, + "1359": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "getFileType" + }, + "1360": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "getFileType" + }, + "1361": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "url" + }, + "1362": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "__object" + }, + "1363": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "__object.suffix" + }, + "1364": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "__object.type" + }, + "1365": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.sorter" + }, + "1366": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "sorter" + }, + "1367": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "sorter" + }, + "1368": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "locales" + }, + "1369": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "options" + }, + "1370": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "__function" + }, + "1371": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "__function" + }, + "1372": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "T" + }, + "1373": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "P" + }, + "1374": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "a" + }, + "1375": { + "sourceFileName": "src/sorter.ts", + "qualifiedName": "b" + }, + "1376": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.sortPinyin" + }, + "1377": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "sortPinyin" + }, + "1378": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "sortPinyin" + }, + "1379": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "T" + }, + "1380": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "P" + }, + "1381": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "a" + }, + "1382": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "b" + }, + "1383": { + "sourceFileName": "src/sortPinyin.ts", + "qualifiedName": "options" + }, + "1384": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.parseUrlParam" + }, + "1385": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "parseUrlParam" + }, + "1386": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "parseUrlParam" + }, + "1387": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "url" + }, + "1388": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "covert" + }, + "1389": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.spliceUrlParam" + }, + "1390": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "spliceUrlParam" + }, + "1391": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "spliceUrlParam" + }, + "1392": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "T" + }, + "1393": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "params" + }, + "1394": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "covert" + }, + "1395": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.safeParse" + }, + "1396": { + "sourceFileName": "src/safeParse.ts", + "qualifiedName": "safeParse" + }, + "1397": { + "sourceFileName": "src/safeParse.ts", + "qualifiedName": "safeParse" + }, + "1398": { + "sourceFileName": "src/safeParse.ts", + "qualifiedName": "data" + }, + "1399": { + "sourceFileName": "src/safeParse.ts", + "qualifiedName": "covert" + }, + "1400": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.safeStringify" + }, + "1401": { + "sourceFileName": "src/safeStringify.ts", + "qualifiedName": "safeStringify" + }, + "1402": { + "sourceFileName": "src/safeStringify.ts", + "qualifiedName": "safeStringify" + }, + "1403": { + "sourceFileName": "src/safeStringify.ts", + "qualifiedName": "data" + }, + "1404": { + "sourceFileName": "src/safeStringify.ts", + "qualifiedName": "covert" + }, + "1405": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getUrlParam" + }, + "1406": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "getUrlParam" + }, + "1407": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "getUrlParam" + }, + "1408": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "key" + }, + "1409": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "getUrlParam" + }, + "1410": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "key" + }, + "1411": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "url" + }, + "1412": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getUrlParams" + }, + "1413": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "1414": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "1415": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "url" + }, + "1416": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "1417": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "url" + }, + "1418": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "1419": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "url" + }, + "1420": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "covert" + }, + "1421": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.intersect" + }, + "1422": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "intersect" + }, + "1423": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "intersect" + }, + "1424": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "T" + }, + "1425": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "args" + }, + "1426": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isDigitals" + }, + "1427": { + "sourceFileName": "src/isDigitals.ts", + "qualifiedName": "isDigitals" + }, + "1428": { + "sourceFileName": "src/isDigitals.ts", + "qualifiedName": "isDigitals" + }, + "1429": { + "sourceFileName": "src/isDigitals.ts", + "qualifiedName": "str" + }, + "1430": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isExitsFunction" + }, + "1431": { + "sourceFileName": "src/isExitsFunction.ts", + "qualifiedName": "isExitsFunction" + }, + "1432": { + "sourceFileName": "src/isExitsFunction.ts", + "qualifiedName": "isExitsFunction" + }, + "1433": { + "sourceFileName": "src/isExitsFunction.ts", + "qualifiedName": "name" + }, + "1434": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isExitsVariable" + }, + "1435": { + "sourceFileName": "src/isExitsVariable.ts", + "qualifiedName": "isExitsVariable" + }, + "1436": { + "sourceFileName": "src/isExitsVariable.ts", + "qualifiedName": "isExitsVariable" + }, + "1437": { + "sourceFileName": "src/isExitsVariable.ts", + "qualifiedName": "name" + }, + "1438": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isEqual" + }, + "1439": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "isEqual" + }, + "1440": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "isEqual" + }, + "1441": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "T" + }, + "1442": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "P" + }, + "1443": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "a" + }, + "1444": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "b" + }, + "1445": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isWindow" + }, + "1446": { + "sourceFileName": "src/isWindow.ts", + "qualifiedName": "isWindow" + }, + "1447": { + "sourceFileName": "src/isWindow.ts", + "qualifiedName": "isWindow" + }, + "1448": { + "sourceFileName": "src/isWindow.ts", + "qualifiedName": "target" + }, + "1449": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isObject" + }, + "1450": { + "sourceFileName": "src/isObject.ts", + "qualifiedName": "isObject" + }, + "1451": { + "sourceFileName": "src/isObject.ts", + "qualifiedName": "isObject" + }, + "1452": { + "sourceFileName": "src/isObject.ts", + "qualifiedName": "target" + }, + "1453": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isDate" + }, + "1454": { + "sourceFileName": "src/isDate.ts", + "qualifiedName": "isDate" + }, + "1455": { + "sourceFileName": "src/isDate.ts", + "qualifiedName": "isDate" + }, + "1456": { + "sourceFileName": "src/isDate.ts", + "qualifiedName": "target" + }, + "1457": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isRegExp" + }, + "1458": { + "sourceFileName": "src/isRegExp.ts", + "qualifiedName": "isRegExp" + }, + "1459": { + "sourceFileName": "src/isRegExp.ts", + "qualifiedName": "isRegExp" + }, + "1460": { + "sourceFileName": "src/isRegExp.ts", + "qualifiedName": "target" + }, + "1461": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isArray" + }, + "1462": { + "sourceFileName": "src/isArray.ts", + "qualifiedName": "isArray" + }, + "1463": { + "sourceFileName": "src/isArray.ts", + "qualifiedName": "isArray" + }, + "1464": { + "sourceFileName": "src/isArray.ts", + "qualifiedName": "target" + }, + "1465": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isIterable" + }, + "1466": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "isIterable" + }, + "1467": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "isIterable" + }, + "1468": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "T" + }, + "1469": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "target" + }, + "1470": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isPlainObject" + }, + "1471": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "isPlainObject" + }, + "1472": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "isPlainObject" + }, + "1473": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "target" + }, + "1474": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isDarkMode" + }, + "1475": { + "sourceFileName": "src/isDarkMode.ts", + "qualifiedName": "isDarkMode" + }, + "1476": { + "sourceFileName": "src/isDarkMode.ts", + "qualifiedName": "isDarkMode" + }, + "1477": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.inBrowser" + }, + "1478": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.inNodeJs" + }, + "1479": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.minus" + }, + "1480": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "minus" + }, + "1481": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "minus" + }, + "1482": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "T" + }, + "1483": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "args" + }, + "1484": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.nextIndex" + }, + "1485": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "nextIndex" + }, + "1486": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "nextIndex" + }, + "1487": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "min" + }, + "1488": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "max" + }, + "1489": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.nextVersion" + }, + "1490": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "nextVersion" + }, + "1491": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "nextVersion" + }, + "1492": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "version" + }, + "1493": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "type" + }, + "1494": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "preid" + }, + "1495": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.punctualTimer" + }, + "1496": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "punctualTimer" + }, + "1497": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "punctualTimer" + }, + "1498": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "TArgs" + }, + "1499": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "handler" + }, + "1500": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__type" + }, + "1501": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__type" + }, + "1502": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "args" + }, + "1503": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "delay" + }, + "1504": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__2" + }, + "1505": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "punctualTimer" + }, + "1506": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "TArgs" + }, + "1507": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "handler" + }, + "1508": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__type" + }, + "1509": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__type" + }, + "1510": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "args" + }, + "1511": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "delay" + }, + "1512": { + "sourceFileName": "src/punctualTimer.ts", + "qualifiedName": "__2" + }, + "1513": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.promiseFactory" + }, + "1514": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "promiseFactory" + }, + "1515": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "promiseFactory" + }, + "1516": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "T" + }, + "1517": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "original" + }, + "1518": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "resolver" + }, + "1519": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "__type" + }, + "1520": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "__type" + }, + "1521": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.waiting" + }, + "1522": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "__function" + }, + "1523": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "__function" + }, + "1524": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "milliseconds" + }, + "1525": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "throwOnTimeout" + }, + "1526": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.awaitTo" + }, + "1527": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "awaitToDone" + }, + "1528": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "awaitToDone" + }, + "1529": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "T" + }, + "1530": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "E" + }, + "1531": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "promise" + }, + "1532": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "awaitToDone" + }, + "1533": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "P" + }, + "1534": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "E" + }, + "1535": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "promise" + }, + "1536": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "awaitToDone" + }, + "1537": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "T" + }, + "1538": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "P" + }, + "1539": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "E" + }, + "1540": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "promise" + }, + "1541": { + "sourceFileName": "node_modules/.pnpm/await-to-done@1.1.1/node_modules/await-to-done/dist/index.d.ts", + "qualifiedName": "promises" + }, + "1542": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.arrayBufferToBase64" + }, + "1543": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "arrayBufferToBase64" + }, + "1544": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "arrayBufferToBase64" + }, + "1545": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "input" + }, + "1546": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "mime" + }, + "1547": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.arrayBufferToBlob" + }, + "1548": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "arrayBufferToBlob" + }, + "1549": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "arrayBufferToBlob" + }, + "1550": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "input" + }, + "1551": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "mime" + }, + "1552": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.base64ToArrayBuffer" + }, + "1553": { + "sourceFileName": "src/base64ToArrayBuffer.ts", + "qualifiedName": "base64ToArrayBuffer" + }, + "1554": { + "sourceFileName": "src/base64ToArrayBuffer.ts", + "qualifiedName": "base64ToArrayBuffer" + }, + "1555": { + "sourceFileName": "src/base64ToArrayBuffer.ts", + "qualifiedName": "input" + }, + "1556": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.base64ToBlob" + }, + "1557": { + "sourceFileName": "src/base64ToBlob.ts", + "qualifiedName": "base64ToBlob" + }, + "1558": { + "sourceFileName": "src/base64ToBlob.ts", + "qualifiedName": "base64ToBlob" + }, + "1559": { + "sourceFileName": "src/base64ToBlob.ts", + "qualifiedName": "input" + }, + "1560": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.base64ToFile" + }, + "1561": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "base64ToFile" + }, + "1562": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "base64ToFile" + }, + "1563": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "input" + }, + "1564": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "fileName" + }, + "1565": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.blobToArrayBuffer" + }, + "1566": { + "sourceFileName": "src/blobToArrayBuffer.ts", + "qualifiedName": "blobToArrayBuffer" + }, + "1567": { + "sourceFileName": "src/blobToArrayBuffer.ts", + "qualifiedName": "blobToArrayBuffer" + }, + "1568": { + "sourceFileName": "src/blobToArrayBuffer.ts", + "qualifiedName": "input" + }, + "1569": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.blobToBase64" + }, + "1570": { + "sourceFileName": "src/blobToBase64.ts", + "qualifiedName": "blobToBase64" + }, + "1571": { + "sourceFileName": "src/blobToBase64.ts", + "qualifiedName": "blobToBase64" + }, + "1572": { + "sourceFileName": "src/blobToBase64.ts", + "qualifiedName": "input" + }, + "1573": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.blobToUrl" + }, + "1574": { + "sourceFileName": "src/blobToUrl.ts", + "qualifiedName": "blobToUrl" + }, + "1575": { + "sourceFileName": "src/blobToUrl.ts", + "qualifiedName": "blobToUrl" + }, + "1576": { + "sourceFileName": "src/blobToUrl.ts", + "qualifiedName": "input" + }, + "1577": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.fileToBase64" + }, + "1578": { + "sourceFileName": "src/fileToBase64.ts", + "qualifiedName": "fileToBase64" + }, + "1579": { + "sourceFileName": "src/fileToBase64.ts", + "qualifiedName": "fileToBase64" + }, + "1580": { + "sourceFileName": "src/fileToBase64.ts", + "qualifiedName": "input" + }, + "1581": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.svgToBlob" + }, + "1582": { + "sourceFileName": "src/svgToBlob.ts", + "qualifiedName": "svgToBlob" + }, + "1583": { + "sourceFileName": "src/svgToBlob.ts", + "qualifiedName": "svgToBlob" + }, + "1584": { + "sourceFileName": "src/svgToBlob.ts", + "qualifiedName": "input" + }, + "1585": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.urlToBlob" + }, + "1586": { + "sourceFileName": "src/urlToBlob.ts", + "qualifiedName": "urlToBlob" + }, + "1587": { + "sourceFileName": "src/urlToBlob.ts", + "qualifiedName": "urlToBlob" + }, + "1588": { + "sourceFileName": "src/urlToBlob.ts", + "qualifiedName": "input" + }, + "1589": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.openUrl" + }, + "1590": { + "sourceFileName": "src/openUrl.ts", + "qualifiedName": "openUrl" + }, + "1591": { + "sourceFileName": "src/openUrl.ts", + "qualifiedName": "openUrl" + }, + "1592": { + "sourceFileName": "src/openUrl.ts", + "qualifiedName": "url" + }, + "1593": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.copy" + }, + "1594": { + "sourceFileName": "src/copy.ts", + "qualifiedName": "copy" + }, + "1595": { + "sourceFileName": "src/copy.ts", + "qualifiedName": "copy" + }, + "1596": { + "sourceFileName": "src/copy.ts", + "qualifiedName": "value" + }, + "1597": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.pattern" + }, + "1598": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object" + }, + "1599": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.any" + }, + "1600": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.number" + }, + "1601": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.string" + }, + "1602": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.postcode" + }, + "1603": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.url" + }, + "1604": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.username" + }, + "1605": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.float" + }, + "1606": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.email" + }, + "1607": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.mobile" + }, + "1608": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.chinese" + }, + "1609": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.tel" + }, + "1610": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.qq" + }, + "1611": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.pass" + }, + "1612": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.json" + }, + "1613": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.arrjson" + }, + "1614": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.array" + }, + "1615": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.isjson" + }, + "1616": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.textarea" + }, + "1617": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.removeEvent" + }, + "1618": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "removeEvent" + }, + "1619": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "removeEvent" + }, + "1620": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "element" + }, + "1621": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "type" + }, + "1622": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "handler" + }, + "1623": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.searchObject" + }, + "1624": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "searchObject" + }, + "1625": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "searchObject" + }, + "1626": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "tree" + }, + "1627": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "expression" + }, + "1628": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "keySet" + }, + "1629": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "number" + }, + "1630": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.setProperty" + }, + "1631": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "setProperty" + }, + "1632": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "setProperty" + }, + "1633": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "target" + }, + "1634": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "prop" + }, + "1635": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "__type" + }, + "1636": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "__type" + }, + "1637": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "value" + }, + "1638": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.stopBubble" + }, + "1639": { + "sourceFileName": "src/stopBubble.ts", + "qualifiedName": "stopBubble" + }, + "1640": { + "sourceFileName": "src/stopBubble.ts", + "qualifiedName": "stopBubble" + }, + "1641": { + "sourceFileName": "src/stopBubble.ts", + "qualifiedName": "e" + }, + "1642": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.stopDefault" + }, + "1643": { + "sourceFileName": "src/stopDefault.ts", + "qualifiedName": "stopDefault" + }, + "1644": { + "sourceFileName": "src/stopDefault.ts", + "qualifiedName": "stopDefault" + }, + "1645": { + "sourceFileName": "src/stopDefault.ts", + "qualifiedName": "e" + }, + "1646": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.toThousands" + }, + "1647": { + "sourceFileName": "src/toThousands.ts", + "qualifiedName": "toThousands" + }, + "1648": { + "sourceFileName": "src/toThousands.ts", + "qualifiedName": "toThousands" + }, + "1649": { + "sourceFileName": "src/toThousands.ts", + "qualifiedName": "num" + }, + "1650": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.trim" + }, + "1651": { + "sourceFileName": "src/trim.ts", + "qualifiedName": "trim" + }, + "1652": { + "sourceFileName": "src/trim.ts", + "qualifiedName": "trim" + }, + "1653": { + "sourceFileName": "src/trim.ts", + "qualifiedName": "string" + }, + "1654": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.union" + }, + "1655": { + "sourceFileName": "src/union.ts", + "qualifiedName": "union" + }, + "1656": { + "sourceFileName": "src/union.ts", + "qualifiedName": "union" + }, + "1657": { + "sourceFileName": "src/union.ts", + "qualifiedName": "T" + }, + "1658": { + "sourceFileName": "src/union.ts", + "qualifiedName": "args" + }, + "1659": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.unique" + }, + "1660": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "unique" + }, + "1661": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "unique" + }, + "1662": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "T" + }, + "1663": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "arr" + }, + "1664": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.upperFirst" + }, + "1665": { + "sourceFileName": "src/upperFirst.ts", + "qualifiedName": "upperFirst" + }, + "1666": { + "sourceFileName": "src/upperFirst.ts", + "qualifiedName": "upperFirst" + }, + "1667": { + "sourceFileName": "src/upperFirst.ts", + "qualifiedName": "string" + }, + "1668": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.uuid" + }, + "1669": { + "sourceFileName": "src/uuid.ts", + "qualifiedName": "__function" + }, + "1670": { + "sourceFileName": "src/uuid.ts", + "qualifiedName": "__function" + }, + "1671": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.windowSize" + }, + "1672": { + "sourceFileName": "src/windowSize.ts", + "qualifiedName": "windowSize" + }, + "1673": { + "sourceFileName": "src/windowSize.ts", + "qualifiedName": "windowSize" + }, + "1674": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.loadSource" + }, + "1675": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "loadSource" + }, + "1676": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "loadSource" + }, + "1677": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "url" + }, + "1678": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "option" + }, + "1679": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.mountCss" + }, + "1680": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "mountCss" + }, + "1681": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "mountCss" + }, + "1682": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "src" + }, + "1683": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "option" + }, + "1684": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.mountImg" + }, + "1685": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "mountImage" + }, + "1686": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "mountImage" + }, + "1687": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "src" + }, + "1688": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "option" + }, + "1689": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.mountJs" + }, + "1690": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "mountScript" + }, + "1691": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "mountScript" + }, + "1692": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "src" + }, + "1693": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "option" + }, + "1694": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.mountStyle" + }, + "1695": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "mountStyle" + }, + "1696": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "mountStyle" + }, + "1697": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "css" + }, + "1698": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "option" + }, + "1699": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.preloader" + }, + "1700": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "preloader" + }, + "1701": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "preloader" + }, + "1702": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "images" + }, + "1703": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "preloader" + }, + "1704": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "images" + } + } +} \ No newline at end of file diff --git a/types/AnyObject.html b/types/AnyObject.html new file mode 100644 index 00000000..5172a45d --- /dev/null +++ b/types/AnyObject.html @@ -0,0 +1 @@ +AnyObject | index.md - v5.21.1

Type alias AnyObject

AnyObject: Record<string, any>
\ No newline at end of file diff --git a/types/ArrayOneMore.html b/types/ArrayOneMore.html new file mode 100644 index 00000000..9763f673 --- /dev/null +++ b/types/ArrayOneMore.html @@ -0,0 +1 @@ +ArrayOneMore | index.md - v5.21.1

Type alias ArrayOneMore<T>

ArrayOneMore<T>: ArrayOne<T> & T[]

Type Parameters

  • T
\ No newline at end of file diff --git a/types/ArrayTwoMore.html b/types/ArrayTwoMore.html new file mode 100644 index 00000000..7ee14070 --- /dev/null +++ b/types/ArrayTwoMore.html @@ -0,0 +1 @@ +ArrayTwoMore | index.md - v5.21.1

Type alias ArrayTwoMore<T>

ArrayTwoMore<T>: {
    0: T;
    1: T;
} & T[]

Type Parameters

  • T

Type declaration

\ No newline at end of file diff --git a/types/ExtendArrayData.html b/types/ExtendArrayData.html new file mode 100644 index 00000000..a54e3095 --- /dev/null +++ b/types/ExtendArrayData.html @@ -0,0 +1 @@ +ExtendArrayData | index.md - v5.21.1

Type alias ExtendArrayData

ExtendArrayData: any[]
\ No newline at end of file diff --git a/types/ExtendData.html b/types/ExtendData.html new file mode 100644 index 00000000..0609fea8 --- /dev/null +++ b/types/ExtendData.html @@ -0,0 +1 @@ +ExtendData | index.md - v5.21.1

Type alias ExtendData

\ No newline at end of file diff --git a/types/ExtendObjectData.html b/types/ExtendObjectData.html new file mode 100644 index 00000000..13261627 --- /dev/null +++ b/types/ExtendObjectData.html @@ -0,0 +1 @@ +ExtendObjectData | index.md - v5.21.1

Type alias ExtendObjectData

ExtendObjectData: Record<string, any>
\ No newline at end of file diff --git a/types/JSONValue.html b/types/JSONValue.html new file mode 100644 index 00000000..7ca83ddc --- /dev/null +++ b/types/JSONValue.html @@ -0,0 +1 @@ +JSONValue | index.md - v5.21.1

Type alias JSONValue

\ No newline at end of file diff --git a/types/MaybePromiseOrGetter.html b/types/MaybePromiseOrGetter.html new file mode 100644 index 00000000..5a911e55 --- /dev/null +++ b/types/MaybePromiseOrGetter.html @@ -0,0 +1 @@ +MaybePromiseOrGetter | index.md - v5.21.1

Type alias MaybePromiseOrGetter<T>

MaybePromiseOrGetter<T>: Promise<T> | (<T>() => Promise<T>)

Type Parameters

  • T

Type declaration

    • <T>(): Promise<T>
    • Type Parameters

      • T

      Returns Promise<T>

\ No newline at end of file diff --git a/types/OmitPartial.html b/types/OmitPartial.html new file mode 100644 index 00000000..d1496276 --- /dev/null +++ b/types/OmitPartial.html @@ -0,0 +1 @@ +OmitPartial | index.md - v5.21.1

Type alias OmitPartial<T, K>

OmitPartial<T, K>: {
    [P in K]: T[P]
} & Omit<Partial<T>, K>

Type Parameters

  • T
  • K extends keyof T
\ No newline at end of file diff --git a/types/OmitRequired.html b/types/OmitRequired.html new file mode 100644 index 00000000..ce9b04b5 --- /dev/null +++ b/types/OmitRequired.html @@ -0,0 +1 @@ +OmitRequired | index.md - v5.21.1

Type alias OmitRequired<T, K>

OmitRequired<T, K>: {
    [P in K]: T[P]
} & Omit<Required<T>, K>

Type Parameters

  • T
  • K extends keyof T
\ No newline at end of file diff --git a/types/PickPartial.html b/types/PickPartial.html new file mode 100644 index 00000000..ff8a1395 --- /dev/null +++ b/types/PickPartial.html @@ -0,0 +1 @@ +PickPartial | index.md - v5.21.1

Type alias PickPartial<T, K>

PickPartial<T, K>: {
    [P in K]?: T[P]
} & Omit<T, K>

Type Parameters

  • T
  • K extends keyof T
\ No newline at end of file diff --git a/types/PickRequired.html b/types/PickRequired.html new file mode 100644 index 00000000..2a269d7b --- /dev/null +++ b/types/PickRequired.html @@ -0,0 +1 @@ +PickRequired | index.md - v5.21.1

Type alias PickRequired<T, K>

PickRequired<T, K>: {
    [P in K]-?: T[P]
} & Omit<T, K>

Type Parameters

  • T
  • K extends keyof T
\ No newline at end of file diff --git a/types/Primitive.html b/types/Primitive.html new file mode 100644 index 00000000..e7d351db --- /dev/null +++ b/types/Primitive.html @@ -0,0 +1 @@ +Primitive | index.md - v5.21.1

Type alias Primitive

Primitive: bigint | boolean | null | number | string | symbol | undefined
\ No newline at end of file diff --git a/types/RandomStringCharType.html b/types/RandomStringCharType.html new file mode 100644 index 00000000..5c4ccd8d --- /dev/null +++ b/types/RandomStringCharType.html @@ -0,0 +1 @@ +RandomStringCharType | index.md - v5.21.1

Type alias RandomStringCharType

RandomStringCharType: "uppercase" | "lowercase" | "number" | "special"
\ No newline at end of file diff --git a/variables/default.html b/variables/default.html new file mode 100644 index 00000000..44533710 --- /dev/null +++ b/variables/default.html @@ -0,0 +1,845 @@ +default | index.md - v5.21.1

Variable default

default: {
    CSVToArray: ((data, delimiter?, omitFirstRow?) => string[][]);
    CSVToJSON: ((data, delimiter?) => any[]);
    JSONToCSV: ((arr, columns, delimiter?) => string);
    RGBToHex: ((r, g, b) => string);
    addEvent: typeof addEvent;
    all: (<T>(arr, fn) => boolean);
    any: (<T>(arr, fn) => boolean);
    appVersion: {
        (appName): string | null;
        (appName, ua): string | null;
        (appName, ua): string | null;
        (appName, ua, ignoreCase): string | null;
    };
    arrayBufferToBase64: ((input, mime?) => string);
    arrayBufferToBlob: ((input, mime?) => Blob);
    arrayToCSV: (<T>(arr, delimiter?) => string);
    awaitTo: {
        <T, E>(promise): Promise<[E, undefined] | [null, T]>;
        <P, E>(promise): Promise<[E, undefined] | [null, P]>;
        <T, P, E>(promise, ...promises): Promise<[E, undefined] | [null, [T, ...P]]>;
    };
    base64ToArrayBuffer: ((input) => ArrayBuffer);
    base64ToBlob: ((input) => Blob);
    base64ToFile: ((input, fileName) => File);
    blobToArrayBuffer: ((input) => Promise<ArrayBuffer | null>);
    blobToBase64: ((input) => Promise<string | null>);
    blobToUrl: ((input) => string);
    browserVersion: ((ua?) => BrowserVersion | null);
    camel2Dash: ((string) => string);
    cleanData: ((data, map, nullFix?) => any);
    clearAttr: ((string) => string);
    clearHtml: ((string) => string);
    client: ((name?, userAgent?) => boolean | {
        ANDROID: boolean;
        GECKO: boolean;
        IE: boolean;
        IOS: boolean;
        IPAD: boolean;
        IPHONE: boolean;
        MOBILE: boolean;
        OPERA: boolean;
        QQ: null | RegExpMatchArray;
        QQBROWSER: boolean;
        TRIDENT: boolean;
        WEBKIT: boolean;
        WEIXIN: boolean;
    });
    clone: (<T>(parent) => T);
    compareVersion: ((input, compare) => -1 | 0 | 1);
    complement: (<T>(...args) => T[]);
    contains: ((arr, item) => boolean);
    copy: ((value) => undefined | boolean);
    cutCHSString: ((str, len?, hasDot?) => string);
    dash2Camel: ((string) => string);
    decodeBase64: ((input) => string);
    decodeUtf8: ((utftext) => string);
    delCache: ((name) => void);
    delCookie: ((name) => void);
    delSession: ((name) => void);
    delay: (() => {
        map: any;
        destroy(id): void;
        register(id, fn, time, boo): void;
    });
    download: ((url, filename, type?) => void);
    encodeBase64: ((input) => string);
    encodeUtf8: ((string) => string);
    escape: ((string) => string);
    extend: {
        (target, ...args): ExtendObjectData;
        (target, ...args): ExtendObjectData;
        (target, ...args): ExtendArrayData;
        (target, ...args): ExtendArrayData;
    };
    fileToBase64: ((input) => Promise<string | null>);
    fillIPv6: ((ip) => string);
    fingerprint: ((domain?) => null | string);
    fixNumber: ((number, n?) => number);
    getAppVersion: ((appName, withApp?, userAgent?) => string | boolean | null);
    getCHSLength: ((str) => number);
    getCache: ((name) => any);
    getCookie: ((name) => any);
    getCookies: (() => Record<string, string>);
    getDirParam: ((url) => DirParamType);
    getFileType: ((url) => {
        suffix: string;
        type: "audio" | "video" | "image" | "other" | "word" | "txt" | "excel" | "pdf" | "ppt" | "zip";
    });
    getNumber: ((string) => string);
    getOsVersion: ((osName, withOS?, userAgent?) => string | boolean | null);
    getProperty: {
        <T>(target, prop, defaultValue?): any;
        <T>(target, prop, defaultValue?): any;
    };
    getQueryParam: {
        (key): string | undefined;
        (key, url): string | undefined;
    };
    getQueryParams: {
        (url): Record<string, string>;
        (url): Record<string, unknown>;
        (url, covert): Record<string, unknown>;
    };
    getScrollPosition: (() => undefined | "bottom" | "top");
    getSession: ((name) => any);
    getType: (<T>(target) => "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "window" | "error" | "promise" | "math" | "document" | "navigator" | "global" | "null" | "array" | "date" | "regexp");
    getUrlParam: {
        (key): string | undefined;
        (key, url): string | undefined;
    };
    getUrlParams: {
        (url): Record<string, string>;
        (url): Record<string, unknown>;
        (url, covert): Record<string, unknown>;
    };
    inBrowser: boolean;
    inNodeJs: boolean;
    intersect: (<T>(...args) => T[]);
    isArray: ((target) => target is any[]);
    isDarkMode: (() => boolean);
    isDate: ((target) => target is Date);
    isDigitals: ((str) => boolean);
    isEqual: (<T, P>(a, b) => boolean);
    isExitsFunction: ((name) => boolean);
    isExitsVariable: ((name) => boolean);
    isIterable: (<T>(target) => target is Iterable<T>);
    isObject: ((target) => target is Object);
    isPlainObject: ((target) => target is PlainObject);
    isRegExp: ((target) => target is RegExp);
    isWindow: ((target) => target is Window);
    loadSource: ((url, option) => Promise<boolean | string>);
    mapTemplate: ((tmp, data) => string);
    minus: (<T>(...args) => T[]);
    mountCss: ((src, option?) => Promise<boolean>);
    mountImg: ((src, option?) => Promise<boolean | string>);
    mountJs: ((src, option?) => Promise<boolean>);
    mountStyle: ((css, option?) => Promise<boolean>);
    nextIndex: ((min?, max?) => number);
    nextVersion: ((version, type?, preid?) => string);
    openUrl: ((url) => void);
    osVersion: ((ua?) => OsVersion | null);
    parseUrlParam: ((url, covert?) => Record<string, unknown>);
    pattern: {
        any: RegExp;
        array: RegExp;
        arrjson: RegExp;
        chinese: RegExp;
        email: RegExp;
        float: RegExp;
        isjson: RegExp;
        json: RegExp;
        mobile: RegExp;
        number: RegExp;
        pass: RegExp;
        postcode: RegExp;
        qq: RegExp;
        string: RegExp;
        tel: RegExp;
        textarea: RegExp;
        url: RegExp;
        username: RegExp;
    };
    preloader: {
        (images): HTMLImageElement;
        (images): Record<string, HTMLImageElement>;
    };
    promiseFactory: (<T>(original, resolver) => T & PromiseLike<T>);
    punctualTimer: {
        <TArgs>(handler, delay, args?): void;
        <TArgs>(handler, delay, __namedParameters?): void;
    };
    randomColor: ((min?, max?) => string);
    randomNumber: ((min?, max?) => number);
    randomNumbers: ((n?, sum?, noZero?) => number[]);
    randomString: {
        (len?, options?): string;
        (len?, options?): string;
    };
    removeEvent: ((element, type, handler) => void);
    safeParse: ((data, covert?) => any);
    safeStringify: ((data, covert?) => string);
    searchObject: ((tree, expression, keySet, number?) => any[]);
    setCache: (<T>(name, value, seconds?) => void);
    setCookie: (<T>(name, value, seconds, path?, samesite?) => void);
    setProperty: ((target, prop, value) => any);
    setSession: (<T>(name, value, seconds?) => void);
    shuffle: {
        (value, size?): string;
        <T>(value, size?): T;
    };
    sortPinyin: (<T, P>(a, b, options?) => number);
    sorter: ((locales?, options?) => (<T, P>(a, b) => number));
    spliceUrlParam: (<T>(params, covert?) => string);
    stopBubble: ((e) => boolean);
    stopDefault: ((e) => boolean);
    svgToBlob: ((input) => Blob);
    toThousands: ((num) => string);
    trim: ((string) => string);
    unescape: ((string) => string);
    union: (<T>(...args) => T[]);
    unique: (<T>(arr) => T[]);
    upperFirst: ((string) => string);
    urlToBlob: ((input) => Promise<Blob | null>);
    uuid: (() => string);
    version: string;
    waiting: ((milliseconds, throwOnTimeout?) => Promise<void>);
    windowSize: (() => WindowSizeObj);
}

Type declaration

  • CSVToArray: ((data, delimiter?, omitFirstRow?) => string[][])
      • (data, delimiter?, omitFirstRow?): string[][]
      • Converts a comma-separated string of values (CSV) to a 2D array.

        +

        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

        +

        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']]`. +
        +

        Since

        1.0.9

        +
  • CSVToJSON: ((data, delimiter?) => any[])
      • (data, delimiter?): any[]
      • 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
        • +
        +

        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'}]`. +
        +

        Since

        1.0.9

        +
  • JSONToCSV: ((arr, columns, delimiter?) => string)
      • (arr, columns, delimiter?): string
      • Converts an array of objects to a comma-separated value (CSV) string containing only the specified columns.

        +

        Parameters

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

          the specified columns

          +
        • delimiter: string = ','

          delimiter, default ','

          +

        Returns string

          +
        • CSV data
        • +
        +

        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"' +
        +

        Since

        1.0.9

        +
  • RGBToHex: ((r, g, b) => string)
      • (r, g, b): string
      • Converts RGB component values to color codes.

        +

        Parameters

        • r: number

          the 1st value of RGB

          +
        • g: number

          RGB's 2nd value

          +
        • b: number

          RGB's 3rd value

          +

        Returns string

          +
        • hex value
        • +
        +

        Example

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

        Since

        1.0.9

        +
  • addEvent: typeof addEvent
  • all: (<T>(arr, fn) => boolean)
      • <T>(arr, fn): boolean
      • Returns true if the provided predicate function returns true for all elements in a set, otherwise it returns false.

        +

        Type Parameters

        • T = unknown

        Parameters

        • arr: T[]

          the target array

          +
        • fn: AnyFunction

          the judgment method

          +

        Returns boolean

          +
        • the result of the judgment
        • +
        +

        Example

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

        Since

        1.0.9

        +
  • any: (<T>(arr, fn) => boolean)
      • <T>(arr, fn): boolean
      • Returns true if the provided predicate function returns true for at least one element of a set, otherwise it returns false.

        +

        Type Parameters

        • T = unknown

        Parameters

        • arr: T[]

          the target array

          +
        • fn: AnyFunction

          the judgment method

          +

        Returns boolean

          +
        • the result of the judgment
        • +
        +

        Example

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

        Since

        1.0.9

        +
  • appVersion: {
        (appName): string | null;
        (appName, ua): string | null;
        (appName, ua): string | null;
        (appName, ua, ignoreCase): string | null;
    }
      • (appName): string | null
      • 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

        +

        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 +
        +

        Since

        5.1.0

        +
      • (appName, ua): string | null
      • Parameters

        • appName: string
        • ua: string

        Returns string | null

      • (appName, ua): string | null
      • Parameters

        • appName: string
        • ua: boolean

        Returns string | null

      • (appName, ua, ignoreCase): string | null
      • Parameters

        • appName: string
        • ua: string
        • ignoreCase: boolean

        Returns string | null

  • arrayBufferToBase64: ((input, mime?) => string)
      • (input, mime?): string
      • arrayBuffer to base64

        +

        Parameters

        • input: ArrayBuffer

          arrayBuffer

          +
        • Optional mime: string

          image mime, eq: image/png

          +

        Returns string

          +
        • base64
        • +
        +

        Example

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

        arrayBufferToBase64(arrayBuffer)
        // xxxxxxxxxxxx +
        +

        Since

        5.13.0

        +
  • arrayBufferToBlob: ((input, mime?) => Blob)
      • (input, mime?): Blob
      • arrayBuffer to blob

        +

        Parameters

        • input: ArrayBuffer

          arrayBuffer

          +
        • mime: string = 'image/png'

          image mime, default: image/png

          +

        Returns Blob

          +
        • blob
        • +
        +

        Since

        5.13.0

        +
  • arrayToCSV: (<T>(arr, delimiter?) => string)
      • <T>(arr, delimiter?): string
      • Converts a two-dimensional array to a comma-separated string of values (CSV).

        +

        Type Parameters

        • T extends unknown[][]

        Parameters

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

          delimiter, default ','

          +

        Returns string

        CSV data

        +

        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' +
        +

        Since

        1.0.9

        +
  • awaitTo: {
        <T, E>(promise): Promise<[E, undefined] | [null, T]>;
        <P, E>(promise): Promise<[E, undefined] | [null, P]>;
        <T, P, E>(promise, ...promises): Promise<[E, undefined] | [null, [T, ...P]]>;
    }
      • <T, E>(promise): Promise<[E, undefined] | [null, T]>
      • Async await wrapper for easy error handling

        +

        Type Parameters

        • T
        • E = Error

        Parameters

        • promise: Promise<T>

          Promise

          +

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

          +
        • result
        • +
        +

        Example

        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()])
        })() +
        +

        Since

        1.0.0

        +

        Author

        saqqdy

        +
      • <P, E>(promise): Promise<[E, undefined] | [null, P]>
      • Type Parameters

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

        Parameters

        • promise: PromiseAll<P>

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

      • <T, P, E>(promise, ...promises): Promise<[E, undefined] | [null, [T, ...P]]>
      • Type Parameters

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

        Parameters

        • promise: Promise<T>
        • Rest ...promises: PromiseAll<P>

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

  • base64ToArrayBuffer: ((input) => ArrayBuffer)
      • (input): ArrayBuffer
      • base64 to arrayBuffer

        +

        Parameters

        • input: string

          base64 string

          +

        Returns ArrayBuffer

          +
        • arrayBuffer
        • +
        +

        Since

        5.13.0

        +
  • base64ToBlob: ((input) => Blob)
      • (input): Blob
      • base64 to blob

        +

        Parameters

        • input: string

          base64 string

          +

        Returns Blob

          +
        • blob
        • +
        +

        Since

        5.13.0

        +
  • base64ToFile: ((input, fileName) => File)
      • (input, fileName): File
      • base64 to file

        +

        Parameters

        • input: string

          base64 string

          +
        • fileName: string

          file name

          +

        Returns File

          +
        • the BASE64 encoding
        • +
        +

        Since

        5.13.0

        +
  • blobToArrayBuffer: ((input) => Promise<ArrayBuffer | null>)
      • (input): Promise<ArrayBuffer | null>
      • blob to arrayBuffer

        +

        Parameters

        • input: Blob

          blob data

          +

        Returns Promise<ArrayBuffer | null>

          +
        • arrayBuffer
        • +
        +

        Since

        5.13.0

        +
  • blobToBase64: ((input) => Promise<string | null>)
      • (input): Promise<string | null>
      • blob to base64

        +

        Parameters

        • input: Blob

          blob data

          +

        Returns Promise<string | null>

          +
        • base64 string
        • +
        +

        Since

        5.13.0

        +
  • blobToUrl: ((input) => string)
      • (input): string
      • blob to blobUrl

        +

        Parameters

        • input: Blob

          blob data

          +

        Returns string

          +
        • blobUrl
        • +
        +

        Since

        5.13.0

        +
  • browserVersion: ((ua?) => BrowserVersion | null)
      • (ua?): BrowserVersion | null
      • Get the browser name and version

        +

        Parameters

        • Optional ua: string

          ua or any ua like string, may not be passed, default is navigator.userAgent

          +

        Returns BrowserVersion | null

        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' \} +
        +

        Since

        5.2.0

        +
  • camel2Dash: ((string) => string)
      • (string): string
      • Converts humped strings to -spaced and all lowercase Dash pattern

        +

        Parameters

        • string: string

          the string to be converted

          +

        Returns string

          +
        • the converted string
        • +
        +

        Since

        1.0.1

        +
  • cleanData: ((data, map, nullFix?) => any)
      • (data, map, nullFix?): any
      • 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

          +
        • Optional nullFix: any

        Returns any

          +
        • the cleaned object
        • +
        +

        Since

        1.0.2

        +
  • clearAttr: ((string) => string)
      • (string): string
      • Remove all attributes of HTML tags

        +

        Parameters

        • string: string

          pass in the string

          +

        Returns string

        newString

        +

        Since

        1.0.1

        +
  • clearHtml: ((string) => string)
      • (string): string
      • Removing HTML tags

        +

        Parameters

        • string: string

          string with html tags

          +

        Returns string

        newString

        +

        Since

        1.0.1

        +
  • client: ((name?, userAgent?) => boolean | {
        ANDROID: boolean;
        GECKO: boolean;
        IE: boolean;
        IOS: boolean;
        IPAD: boolean;
        IPHONE: boolean;
        MOBILE: boolean;
        OPERA: boolean;
        QQ: null | RegExpMatchArray;
        QQBROWSER: boolean;
        TRIDENT: boolean;
        WEBKIT: boolean;
        WEIXIN: boolean;
    })
      • (name?, userAgent?): boolean | {
            ANDROID: boolean;
            GECKO: boolean;
            IE: boolean;
            IOS: boolean;
            IPAD: boolean;
            IPHONE: boolean;
            MOBILE: boolean;
            OPERA: boolean;
            QQ: null | RegExpMatchArray;
            QQBROWSER: boolean;
            TRIDENT: boolean;
            WEBKIT: boolean;
            WEIXIN: boolean;
        }
      • 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 }

        +

        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 | {
            ANDROID: boolean;
            GECKO: boolean;
            IE: boolean;
            IOS: boolean;
            IPAD: boolean;
            IPHONE: boolean;
            MOBILE: boolean;
            OPERA: boolean;
            QQ: null | RegExpMatchArray;
            QQBROWSER: boolean;
            TRIDENT: boolean;
            WEBKIT: boolean;
            WEIXIN: boolean;
        }

          +
        • the common ua match table, if name is passed, then returns whether the terminal matches true/false
        • +
        +

        Deprecated

        Will be refactored for the next major release

        +

        Since

        1.0.1

        +
  • clone: (<T>(parent) => T)
      • <T>(parent): T
      • deep clone (Buffer, Promise, Set, Map are not supported)

        +

        Type Parameters

        • T = any

        Parameters

        • parent: T

          source object

          +

        Returns T

          +
        • new object
        • +
        +

        Example

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

        Since

        5.15.0

        +
  • compareVersion: ((input, compare) => -1 | 0 | 1)
      • (input, compare): -1 | 0 | 1
      • 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

        +

        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 +
        +

        Since

        4.7.0

        +
  • complement: (<T>(...args) => T[])
      • <T>(...args): T[]
      • Find the complement of multiple arrays

        +

        Type Parameters

        • T = unknown

        Parameters

        • Rest ...args: T[][]

          arguments

          +

        Returns T[]

        array

        +

        Example

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

        Since

        2.2.1

        +
  • contains: ((arr, item) => boolean)
      • (arr, item): boolean
      • Whether the array contains the specified element

        +

        Parameters

        • arr: any[]

          the target array

          +
        • item: any

          the target to find

          +

        Returns boolean

        boolean

        +

        Example

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

        Since

        2.2.1

        +
  • copy: ((value) => undefined | boolean)
      • (value): undefined | boolean
      • copy to clipboard

        +

        Parameters

        • value: any

          any target

          +

        Returns undefined | boolean

          +
        • target is Object
        • +
        +

        Since

        5.0.0

        +
  • cutCHSString: ((str, len?, hasDot?) => string)
      • (str, len?, hasDot?): string
      • 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
        • +
        +

        Since

        1.0.1

        +
  • dash2Camel: ((string) => string)
      • (string): string
      • Converts -spaced and all lowercase Dash patterns to humped strings

        +

        Parameters

        • string: string

          the string to be converted

          +

        Returns string

          +
        • the converted string
        • +
        +

        Since

        1.0.1

        +
  • decodeBase64: ((input) => string)
      • (input): string
      • base64 decoding

        +

        Parameters

        • input: string

          the string to be decoded

          +

        Returns string

        decoded string

        +

        Since

        1.0.1

        +
  • decodeUtf8: ((utftext) => string)
      • (utftext): string
      • Decoding Utf8

        +

        Parameters

        • utftext: string

        Returns string

        decoded string

        +

        Since

        1.0.1

        +
  • delCache: ((name) => void)
      • (name): void
      • Delete localStorage

        +

        Parameters

        • name: string

          name

          +

        Returns void

        Since

        1.0.2

        +
  • delCookie: ((name) => void)
      • (name): void
      • Delete cookie

        +

        Parameters

        • name: string

          cookie name

          +

        Returns void

        Since

        1.0.2

        +
  • delSession: ((name) => void)
      • (name): void
      • Delete sessionStorage

        +

        Parameters

        • name: string

          name

          +

        Returns void

        Since

        1.0.2

        +
  • delay: (() => {
        map: any;
        destroy(id): void;
        register(id, fn, time, boo): void;
    })
      • (): {
            map: any;
            destroy(id): void;
            register(id, fn, time, boo): void;
        }
      • debounce & throttle

        +

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

        class

        +
        • map: any
        • destroy:function
          • Parameters

            • id: string

            Returns void

        • register:function
          • Parameters

            Returns void

        Since

        1.0.2

        +
  • download: ((url, filename, type?) => void)
      • (url, filename, type?): void
      • 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

          +
        • Optional type: string

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

          +

        Returns void

  • encodeBase64: ((input) => string)
      • (input): string
      • String, number to base64

        +

        Parameters

        • input: string

          the string to be encoded

          +

        Returns string

          +
        • the BASE64 encoding
        • +
        +

        Since

        1.0.1

        +
  • encodeUtf8: ((string) => string)
      • (string): string
      • Encoding Utf8

        +

        Parameters

        • string: string

        Returns string

          +
        • the UTF-8 encoding
        • +
        +

        Since

        1.0.1

        +
  • escape: ((string) => string)
      • (string): string
      • Escaping HTML Special Characters

        +

        Parameters

        • string: string

          string with html tags

          +

        Returns string

          +
        • newString
        • +
        +

        Example

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

        Since

        5.5.0

        +
  • extend: {
        (target, ...args): ExtendObjectData;
        (target, ...args): ExtendObjectData;
        (target, ...args): ExtendArrayData;
        (target, ...args): ExtendArrayData;
    }
  • fileToBase64: ((input) => Promise<string | null>)
      • (input): Promise<string | null>
      • file to base64

        +

        Parameters

        • input: File

          file data

          +

        Returns Promise<string | null>

          +
        • base64 string
        • +
        +

        Since

        5.13.0

        +
  • fillIPv6: ((ip) => string)
      • (ip): string
      • Read full IPv6

        +

        Parameters

        • ip: string

        Returns string

          +
        • 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' +
        +

        Since

        2.2.2

        +
  • fingerprint: ((domain?) => null | string)
      • (domain?): null | string
      • Generating Browser Fingerprints

        +

        Parameters

        • Optional domain: string

          key string, default: location.host

          +

        Returns null | string

          +
        • fingerprint
        • +
        +

        Since

        5.2.0

        +
  • fixNumber: ((number, n?) => number)
      • (number, n?): number
      • 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
        • +
        +

        Example

        fixNumber('100.888')
        // 100.88

        fixNumber('100.8', 2)
        // 100.8

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

        Since

        1.0.2

        +
  • getAppVersion: ((appName, withApp?, userAgent?) => string | boolean | null)
      • (appName, withApp?, userAgent?): string | boolean | null
      • Get the APP version number

        +

        Parameters

        • appName: string

          app name

          +
        • Optional withApp: boolean

          whether to bring the name

          +
        • Optional userAgent: string

          ua, may not be passed, default is navigator.appVersion

          +

        Returns string | boolean | null

        null/true/false

        +

        Deprecated

        please use 'appVersion' instead

        +

        Since

        1.0.1

        +
  • getCHSLength: ((str) => number)
      • (str): number
      • Get the length of the text, Chinese counts as 2 bytes

        +

        Parameters

        • str: string

          string

          +

        Returns number

          +
        • length
        • +
        +

        Example

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

        Since

        1.0.1

        +
  • getCache: ((name) => any)
      • (name): any
      • 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
        • +
        +

        Example

        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 +
        +

        Since

        1.0.2

        +
  • getCookie: ((name) => any)
      • (name): any
      • Read cookie by name

        +

        Parameters

        • name: string

          cookie name

          +

        Returns any

          +
        • the cookie string
        • +
        +

        Example

        getCookie('data1')
        // 100 +
        +

        Since

        1.0.2

        +
  • getCookies: (() => Record<string, string>)
      • (): Record<string, string>
      • Read all cookies

        +

        Returns Record<string, string>

          +
        • the cookie values
        • +
        +

        Example

        getCookies()
        // \{ token: 'xxx', name: 'saqqdy' \} +
        +

        Since

        5.6.0

        +
  • getDirParam: ((url) => DirParamType)
      • (url): DirParamType
      • Get directory form URL parameters

        +

        Parameters

        • url: string

          pass in the url address

          +

        Returns DirParamType

          +
        • parameter object
        • +
        +

        Deprecated

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

        +

        Since

        1.0.1

        +
  • getFileType: ((url) => {
        suffix: string;
        type: "audio" | "video" | "image" | "other" | "word" | "txt" | "excel" | "pdf" | "ppt" | "zip";
    })
      • (url): {
            suffix: string;
            type: "audio" | "video" | "image" | "other" | "word" | "txt" | "excel" | "pdf" | "ppt" | "zip";
        }
      • 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

        +
        • suffix: string
        • type: "audio" | "video" | "image" | "other" | "word" | "txt" | "excel" | "pdf" | "ppt" | "zip"

        Example

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

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

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

        Since

        5.11.0

        +
  • getNumber: ((string) => string)
      • (string): string
      • Get the number in the string

        +

        Parameters

        • string: string

          pass in a string with a number

          +

        Returns string

          +
        • a pure numeric string
        • +
        +

        Example

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

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

        Since

        1.0.1

        +
  • getOsVersion: ((osName, withOS?, userAgent?) => string | boolean | null)
      • (osName, withOS?, userAgent?): string | boolean | null
      • Get the phone system version

        +

        Parameters

        • osName: string

          system type string Android, iPod, iWatch or iPhone

          +
        • Optional withOS: boolean

          whether to bring the name

          +
        • Optional userAgent: string

          ua, may not be passed, default takes navigator.appVersion

          +

        Returns string | boolean | null

          +
        • null/true/false
        • +
        +

        Example

        getOsVersion('iPhone')
        // '13.2.3'

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

        Deprecated

        please use 'osVersion' instead

        +

        Since

        1.0.1

        +
  • getProperty: {
        <T>(target, prop, defaultValue?): any;
        <T>(target, prop, defaultValue?): any;
    }
      • <T>(target, prop, defaultValue?): any
      • 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

          +
        • Optional defaultValue: any

          default value

          +

        Returns any

        result

        +

        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 +
        +

        Since

        2.2.4

        +
      • <T>(target, prop, defaultValue?): any
      • Type Parameters

        • T extends any[]

        Parameters

        • target: T
        • prop: string | (() => string)
        • Optional defaultValue: any

        Returns any

  • getQueryParam: {
        (key): string | undefined;
        (key, url): string | undefined;
    }
      • (key): string | undefined
      • Get a single query parameter (behind "#")

        +

        Parameters

        • key: string

          key name

          +

        Returns string | undefined

          +
        • result
        • +
        +

        Example

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

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

        Since

        5.0.0

        +
      • (key, url): string | undefined
      • Parameters

        • key: string
        • url: string

        Returns string | undefined

  • getQueryParams: {
        (url): Record<string, string>;
        (url): Record<string, unknown>;
        (url, covert): Record<string, unknown>;
    }
      • (url): Record<string, string>
      • Get all URL parameters (behind "#")

        +

        Parameters

        • url: string

          pass in the url string

          +

        Returns Record<string, string>

          +
        • result
        • +
        +

        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\} +
        +

        Since

        5.0.0

        +
      • (url): Record<string, unknown>
      • Parameters

        • url: boolean

        Returns Record<string, unknown>

      • (url, covert): Record<string, unknown>
      • Parameters

        • url: string
        • covert: boolean

        Returns Record<string, unknown>

  • getScrollPosition: (() => undefined | "bottom" | "top")
      • (): undefined | "bottom" | "top"
      • Get slide to top and bottom return 'top' 'bottom', recommend using limit flow

        +

        Returns undefined | "bottom" | "top"

          +
        • position
        • +
        +

        Deprecated

        will be removed in the next major release.

        +

        Since

        1.0.2

        +
  • getSession: ((name) => any)
      • (name): any
      • Read sessionStorage

        +

        Parameters

        • name: string

          name

          +

        Returns any

          +
        • sessionStorage
        • +
        +

        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 +
        +

        Since

        1.0.2

        +
  • getType: (<T>(target) => "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "window" | "error" | "promise" | "math" | "document" | "navigator" | "global" | "null" | "array" | "date" | "regexp")
      • <T>(target): "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "window" | "error" | "promise" | "math" | "document" | "navigator" | "global" | "null" | "array" | "date" | "regexp"
      • 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" | "null" | "array" | "date" | "regexp"

        type

        +

        Since

        1.0.2

        +
  • getUrlParam: {
        (key): string | undefined;
        (key, url): string | undefined;
    }
      • (key): string | undefined
      • Get a single URL parameter (from the "location.search", before "#")

        +

        Parameters

        • key: string

          key name

          +

        Returns string | undefined

          +
        • result
        • +
        +

        Example

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

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

        Since

        5.0.0

        +
      • (key, url): string | undefined
      • Parameters

        • key: string
        • url: string

        Returns string | undefined

  • getUrlParams: {
        (url): Record<string, string>;
        (url): Record<string, unknown>;
        (url, covert): Record<string, unknown>;
    }
      • (url): Record<string, string>
      • Get all URL parameters (from the "location.search", before "#")

        +

        Parameters

        • url: string

          pass in the url string

          +

        Returns Record<string, string>

          +
        • result
        • +
        +

        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\} +
        +

        Since

        5.0.0

        +
      • (url): Record<string, unknown>
      • Parameters

        • url: boolean

        Returns Record<string, unknown>

      • (url, covert): Record<string, unknown>
      • Parameters

        • url: string
        • covert: boolean

        Returns Record<string, unknown>

  • inBrowser: boolean
  • inNodeJs: boolean
  • intersect: (<T>(...args) => T[])
      • <T>(...args): T[]
      • Find the intersection of multiple arrays

        +

        Type Parameters

        • T = unknown

        Parameters

        • Rest ...args: T[][]

          arguments

          +

        Returns T[]

          +
        • new array
        • +
        +

        Example

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

        Since

        2.2.1

        +
  • isArray: ((target) => target is any[])
      • (target): target is any[]
      • Determine if it is an array

        +

        Parameters

        • target: any

          any target

          +

        Returns target is any[]

          +
        • target is Array
        • +
        +

        Example

        isArray([]) // true
        +
        +

        Since

        1.0.2

        +
  • isDarkMode: (() => boolean)
      • (): boolean
      • Determine if dark color mode

        +

        Returns boolean

          +
        • result
        • +
        +

        Example

        isDarkMode() // true
        +
        +

        Since

        5.5.0

        +
  • isDate: ((target) => target is Date)
      • (target): target is Date
      • Determine if target is Date

        +

        Parameters

        • target: any

          any target

          +

        Returns target is Date

          +
        • target is Date
        • +
        +

        Example

        const now = new Date()

        isDate(now)
        // true +
        +

        Since

        5.15.0

        +
  • isDigitals: ((str) => boolean)
      • (str): boolean
      • Whether or not it is a string consisting of numbers

        +

        Parameters

        • str: string

          the string to be tested

          +

        Returns boolean

          +
        • true/false
        • +
        +

        Deprecated

        will be removed in the next major release.

        +

        Since

        1.0.1

        +
  • isEqual: (<T, P>(a, b) => boolean)
      • <T, P>(a, b): boolean
      • Determine if 2 objects are equal

        +

        Type Parameters

        • T
        • P

        Parameters

        • a: T

          source

          +
        • b: P

          compare

          +

        Returns boolean

          +
        • a equals to b
        • +
        +

        Example

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

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

        isEqual(NaN, NaN)
        // true +
        +

        Since

        5.12.0

        +
  • isExitsFunction: ((name) => boolean)
      • (name): boolean
      • The presence or absence of the specified function

        +

        Parameters

        • name: string

          incoming function name

          +

        Returns boolean

          +
        • true/false
        • +
        +

        Example

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

        Since

        1.0.1

        +
  • isExitsVariable: ((name) => boolean)
      • (name): boolean
      • The presence or absence of the specified variable

        +

        Parameters

        • name: string

          variable name

          +

        Returns boolean

          +
        • true/false
        • +
        +

        Example

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

        Since

        1.0.1

        +
  • isIterable: (<T>(target) => target is Iterable<T>)
      • <T>(target): target is Iterable<T>
      • Determine if it is iterable

        +

        Type Parameters

        • T = any

        Parameters

        • target: T | Iterable<T>

          any target

          +

        Returns target is Iterable<T>

          +
        • target is Array
        • +
        +

        Example

        isIterable([]) // true
        +
        +

        Since

        5.7.0

        +
  • isObject: ((target) => target is Object)
      • (target): target is Object
      • Determine if target is an object

        +

        Parameters

        • target: any

          any target

          +

        Returns target is Object

          +
        • target is Object
        • +
        +

        Example

        isObject({}) // true
        +
        +

        Since

        5.0.0

        +
  • isPlainObject: ((target) => target is PlainObject)
      • (target): target is PlainObject
      • Determine if target is an plain object

        +

        Parameters

        • target: unknown

          any target

          +

        Returns target is PlainObject

          +
        • target is plain Object
        • +
        +

        Example

        isPlainObject({}) // true
        isPlainObject(window) // false +
        +

        Since

        5.0.0

        +
  • isRegExp: ((target) => target is RegExp)
      • (target): target is RegExp
      • Determine if target is RegExp

        +

        Parameters

        • target: any

          any target

          +

        Returns target is RegExp

          +
        • target is RegExp
        • +
        +

        Example

        isRegExp(/\d/) // true
        +
        +

        Since

        5.15.0

        +
  • isWindow: ((target) => target is Window)
      • (target): target is Window
      • Determine if target is an window object

        +

        Parameters

        • target: any

          any

          +

        Returns target is Window

          +
        • target is Window
        • +
        +

        Example

        isWindow({}) // false
        isWindow(window) // true +
        +

        Since

        5.0.0

        +
  • loadSource: ((url, option) => Promise<boolean | string>)
      • (url, option): Promise<boolean | string>
      • 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
        • +
        +
  • mapTemplate: ((tmp, data) => string)
      • (tmp, data): string
      • Replacing specific data in a template string, support ${xxxx} {{xxxx}} and {xxxx}

        +

        Parameters

        • tmp: string

          Template string

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

          Template data of map function

          +

        Returns string

          +
        • result
        • +
        +

        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 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. +
        +

        Since

        5.9.0

        +
  • minus: (<T>(...args) => T[])
      • <T>(...args): T[]
      • 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

        • Rest ...args: T[][]

          arguments

          +

        Returns T[]

          +
        • new array
        • +
        +

        Example

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

        Since

        2.2.1

        +
  • mountCss: ((src, option?) => Promise<boolean>)
      • (src, option?): Promise<boolean>
      • Dynamic loading of css link resources

        +

        Parameters

        • src: string

          resource address

          +
        • Optional option: CssOptions

          parameters: attrs, props, force

          +

        Returns Promise<boolean>

          +
        • result
        • +
        +
  • mountImg: ((src, option?) => Promise<boolean | string>)
      • (src, option?): Promise<boolean | string>
      • Dynamic loading of image resources

        +

        Parameters

        • src: string

          resource address

          +
        • Optional option: ImgOptions

          parameters: attrs, props, force

          +

        Returns Promise<boolean | string>

          +
        • result
        • +
        +
  • mountJs: ((src, option?) => Promise<boolean>)
      • (src, option?): Promise<boolean>
      • Dynamic loading of js linked resources

        +

        Parameters

        • src: string

          resource address

          +
        • Optional option: JsOptions

          parameters: attrs, props, force

          +

        Returns Promise<boolean>

          +
        • result
        • +
        +
  • mountStyle: ((css, option?) => Promise<boolean>)
      • (css, option?): Promise<boolean>
      • Dynamic loading of css styles

        +

        Parameters

        • css: string
        • Optional option: StyleOptions

          parameters: attrs, props

          +

        Returns Promise<boolean>

          +
        • results
        • +
        +
  • nextIndex: ((min?, max?) => number)
      • (min?, max?): number
      • Return the next zIndex value

        +

        Parameters

        • min: number = 5000

          optional, minimum value

          +
        • max: number = 10000

          optional, maximum value

          +

        Returns number

          +
        • number
        • +
        +

        Example

        nextIndex()
        // 1

        nextIndex(1000)
        // 1001

        nextIndex(10, 100)
        // 100 +
        +

        Since

        1.0.2

        +
  • nextVersion: ((version, type?, preid?) => string)
      • (version, type?, preid?): string
      • 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)

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

          optional, version type

          +
        • preid: string = ''

          optional, prerelease id

          +

        Returns string

          +
        • new version
        • +
        +

        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 +
        +

        Since

        5.10.0

        +
  • openUrl: ((url) => void)
      • (url): void
      • Open link in new tab (file jump download if browser can't parse)

        +

        Parameters

        • url: string

          link

          +

        Returns void

        Since

        1.0.6

        +
  • osVersion: ((ua?) => OsVersion | null)
      • (ua?): OsVersion | null
      • Get the system name and version

        +

        Parameters

        • Optional ua: string

          ua or any ua like string, may not be passed, default is navigator.userAgent

          +

        Returns OsVersion | null

        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' \}
        +
        +

        Since

        5.1.0

        +
  • parseUrlParam: ((url, covert?) => Record<string, unknown>)
      • (url, covert?): Record<string, unknown>
      • 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

        +

        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"\} +
        +

        Since

        5.0.0

        +
  • pattern: {
        any: RegExp;
        array: RegExp;
        arrjson: RegExp;
        chinese: RegExp;
        email: RegExp;
        float: RegExp;
        isjson: RegExp;
        json: RegExp;
        mobile: RegExp;
        number: RegExp;
        pass: RegExp;
        postcode: RegExp;
        qq: RegExp;
        string: RegExp;
        tel: RegExp;
        textarea: RegExp;
        url: RegExp;
        username: RegExp;
    }
    • any: RegExp
    • array: RegExp
    • arrjson: RegExp
    • chinese: RegExp
    • email: RegExp
    • float: RegExp
    • isjson: RegExp
    • json: RegExp
    • mobile: RegExp
    • number: RegExp
    • pass: RegExp
    • postcode: RegExp
    • qq: RegExp
    • string: RegExp
    • tel: RegExp
    • textarea: RegExp
    • url: RegExp
    • username: RegExp
  • preloader: {
        (images): HTMLImageElement;
        (images): Record<string, HTMLImageElement>;
    }
      • (images): HTMLImageElement
      • Image preloading

        +

        Parameters

        • images: string

          images url

          +

        Returns HTMLImageElement

        Since

        5.5.0

        +
      • (images): Record<string, HTMLImageElement>
      • Parameters

        • images: string[]

        Returns Record<string, HTMLImageElement>

  • promiseFactory: (<T>(original, resolver) => T & PromiseLike<T>)
      • <T>(original, resolver): T & PromiseLike<T>
      • Convert an object to a promise like api

        +

        Type Parameters

        • T extends object

        Parameters

        • original: T

          original object

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

          resolver function

          +
            • (): Promise<any>
            • Returns Promise<any>

        Returns T & PromiseLike<T>

          +
        • result
        • +
        +

        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 +
        +

        Since

        5.10.0

        +
  • punctualTimer: {
        <TArgs>(handler, delay, args?): void;
        <TArgs>(handler, delay, __namedParameters?): void;
    }
      • <TArgs>(handler, delay, args?): void
      • punctual setInterval

        +

        Type Parameters

        • TArgs extends any[]

        Parameters

        • handler: ((args) => void)

          A function to be executed after the timer expires.

          +
            • (args): void
            • Parameters

              • args: void

              Returns void

        • 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.

          +
        • Optional args: TArgs

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

          +

        Returns void

        Example

        const printDate = () => console.log(new Date())
        punctualTimer(printDate, 1000) +
        +

        Since

        5.18.0

        +
      • <TArgs>(handler, delay, __namedParameters?): void
      • Type Parameters

        • TArgs extends any[]

        Parameters

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

              Returns void

        • delay: number
        • Optional __namedParameters: TArgs

        Returns void

  • randomColor: ((min?, max?) => string)
      • (min?, max?): string
      • Generate random hexadecimal colors

        +

        Parameters

        • Optional min: number | [number, number, number]

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

          +
        • Optional max: number | [number, number, number]

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

          +

        Returns string

          +
        • result
        • +
        +

        Example

        randomColor()
        // #bf444b

        randomColor(200)
        // #d6e9d7

        randomColor(200, 255)
        // #d3f9e4

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

        Since

        5.5.0

        +
  • randomNumber: ((min?, max?) => number)
      • (min?, max?): number
      • 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
        • +
        +

        Example

        randomNumber()
        // 8

        randomNumber(0.1, 0.9)
        // 0.8 +
        +

        Since

        5.0.0

        +
  • randomNumbers: ((n?, sum?, noZero?) => number[])
      • (n?, sum?, noZero?): number[]
      • Generate n random integers that sum to a fixed sum

        +

        Parameters

        • Optional n: number

          Number of generated integers, default: 1

          +
        • Optional sum: number

          Sum of generated integers, default: 100

          +
        • Optional noZero: boolean

        Returns number[]

          +
        • numbers
        • +
        +

        Example

        randomNumbers()
        // [8]

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

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

        Since

        5.4.0

        +
  • randomString: {
        (len?, options?): string;
        (len?, options?): string;
    }
      • (len?, options?): string
      • Get a random string

        +

        Parameters

        • Optional len: number

          the length of the random string that needs to be obtained

          +
        • Optional options: boolean | RandomStringOptions

          optional, randomString options

          +

        Returns string

          +
        • random 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 +
        +

        Since

        5.0.0

        +
      • (len?, options?): string
      • Parameters

        Returns string

  • removeEvent: ((element, type, handler) => void)
      • (element, type, handler): void
      • 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

        Since

        1.0.2

        +
  • safeParse: ((data, covert?) => any)
      • (data, covert?): any
      • Secure parsing of JSON strings

        +

        Parameters

        • data: string

          JSON string

          +
        • covert: boolean = true

          Whether to convert data, default: true

          +

        Returns any

          +
        • JSON Object
        • +
        +

        Example

        safeParse('100')
        // 100

        safeParse('{"a":"undefined","b":"NaN","c":"Infinity","d":"9007199254740993"}')
        // { b: NaN, c: Infinity, d: 9007199254740993n } +
        +
  • safeStringify: ((data, covert?) => string)
      • (data, covert?): string
      • Secure stringify of JSON Object

        +

        Parameters

        • data: any

          JSON Object

          +
        • covert: boolean = true

          Whether to convert data, default: true

          +

        Returns string

          +
        • JSON 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"} +
        +
  • searchObject: ((tree, expression, keySet, number?) => any[])
      • (tree, expression, keySet, number?): any[]
      • 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
        • +
        +

        Since

        5.0.0

        +
  • setCache: (<T>(name, value, seconds?) => void)
      • <T>(name, value, seconds?): void
      • 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

          +
        • Optional seconds: string | number

          cache time (seconds)

          +

        Returns void

        Example

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

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

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

        Since

        1.0.2

        +
  • setCookie: (<T>(name, value, seconds, path?, samesite?) => void)
      • <T>(name, value, seconds, path?, samesite?): void
      • 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

        Example

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

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

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

        Since

        1.0.2

        +
  • setProperty: ((target, prop, value) => any)
      • (target, prop, value): any
      • 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
        • +
        +

        Example

        const target = {
        a: 1,
        b: [{
        c: 2
        }]
        }

        setProperty(target, 'a', 2)

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

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

        Since

        2.7.0

        +
  • setSession: (<T>(name, value, seconds?) => void)
      • <T>(name, value, seconds?): void
      • 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

          +
        • Optional seconds: string | number

          the valid time

          +

        Returns void

        Example

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

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

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

        Since

        1.0.2

        +
  • shuffle: {
        (value, size?): string;
        <T>(value, size?): T;
    }
      • (value, size?): string
      • shuffling algorithm, Reordering arrays or strings

        +

        Parameters

        • value: string

          arrays or strings

          +
        • Optional size: number

          new array or string length

          +

        Returns string

          +
        • result
        • +
        +

        Example

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

        shuffle(str)
        // cdbse

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

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

        Since

        5.4.0

        +
      • <T>(value, size?): T
      • Type Parameters

        • T extends unknown[] = unknown[]

        Parameters

        • value: T
        • Optional size: number

        Returns T

  • sortPinyin: (<T, P>(a, b, options?) => number)
      • <T, P>(a, b, options?): number
      • 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
        • +
        +

        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, "阿吧", "啊我", "波拉" ] +
        +

        Since

        5.14.0

        +
  • sorter: ((locales?, options?) => (<T, P>(a, b) => number))
      • (locales?, options?): (<T, P>(a, b) => number)
      • Sorter factory function

        +

        Parameters

        • Optional locales: string | string[]

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

          +
        • Optional options: CollatorOptions

          An object adjusting the output format.

          +

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

          +
        • compare function
        • +
        +
          • <T, P>(a, b): number
          • Type Parameters

            • T = string
            • P = string

            Parameters

            Returns number

        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, "阿吧", "啊我", "波拉" ] +
        +

        Since

        5.14.0

        +
  • spliceUrlParam: (<T>(params, covert?) => string)
      • <T>(params, covert?): string
      • 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
        • +
        +

        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\}', true)
        // ?key1=100&key2=true&key3=&key4=

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

        Since

        5.3.0

        +
  • stopBubble: ((e) => boolean)
      • (e): boolean
      • Block bubbling

        +

        Parameters

        • e: Event

          dom's event object

          +

        Returns boolean

          +
        • false
        • +
        +

        Since

        1.0.2

        +
  • stopDefault: ((e) => boolean)
      • (e): boolean
      • Block default events

        +

        Parameters

        • e: Event

          dom's event object

          +

        Returns boolean

          +
        • false
        • +
        +

        Since

        1.0.2

        +
  • svgToBlob: ((input) => Blob)
      • (input): Blob
      • svg to blob

        +

        Parameters

        • input: string

          svg string

          +

        Returns Blob

          +
        • blob
        • +
        +

        Since

        5.13.0

        +
  • toThousands: ((num) => string)
      • (num): string
      • Digital thousandths division

        +

        Parameters

        • num: string | number

          input number

          +

        Returns string

          +
        • the split string
        • +
        +

        Example

        toThousands(10000000222)
        // 10,000,000,222

        toThousands(100.2232323)
        // 100.2232323

        toThousands(null)
        // '' +
        +

        Since

        3.0.0

        +
  • trim: ((string) => string)
      • (string): string
      • Remove leading and trailing spaces from strings

        +

        Parameters

        • string: string

          pass in the string

          +

        Returns string

          +
        • the new string
        • +
        +

        Deprecated

        will be removed in the next major release.

        +

        Since

        1.0.1

        +
  • unescape: ((string) => string)
      • (string): string
      • Restore HTML Special Characters

        +

        Parameters

        • string: string

          string

          +

        Returns string

          +
        • newString
        • +
        +

        Example

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

        Since

        5.5.0

        +
  • union: (<T>(...args) => T[])
      • <T>(...args): T[]
      • Find the concatenation of multiple arrays

        +

        Type Parameters

        • T = unknown

        Parameters

        • Rest ...args: T[][]

          arguments

          +

        Returns T[]

          +
        • new array
        • +
        +

        Example

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

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

        Since

        2.2.1

        +
  • unique: (<T>(arr) => T[])
      • <T>(arr): T[]
      • Array de-duplication

        +

        Type Parameters

        • T = unknown

        Parameters

        • arr: T[]

          array data

          +

        Returns T[]

          +
        • new array
        • +
        +

        Example

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

        Since

        2.2.1

        +
  • upperFirst: ((string) => string)
      • (string): string
      • First letter capitalized

        +

        Parameters

        • string: string

          the string to be converted

          +

        Returns string

          +
        • the converted string
        • +
        +

        Example

        upperFirst('saqqdy') // Saqqdy
        +
        +

        Since

        1.0.1

        +
  • urlToBlob: ((input) => Promise<Blob | null>)
      • (input): Promise<Blob | null>
      • url to blob

        +

        Parameters

        • input: string

          url

          +

        Returns Promise<Blob | null>

          +
        • blob
        • +
        +

        Since

        5.13.0

        +
  • uuid: (() => string)
      • (): string
      • Browser-side generation of uuid, using v4 method

        +

        Returns string

          +
        • uuid
        • +
        +

        Example

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

        Since

        1.0.9

        +
  • version: string
  • waiting: ((milliseconds, throwOnTimeout?) => Promise<void>)
      • (milliseconds, throwOnTimeout?): Promise<void>
      • waiting for a while

        +

        Parameters

        • milliseconds: number

          waiting time (milliseconds)

          +
        • throwOnTimeout: boolean = false

          throw on timeout

          +

        Returns Promise<void>

        Since

        5.5.0

        +
  • windowSize: (() => WindowSizeObj)
      • (): WindowSizeObj
      • windowSize to get the window size

        +

        Returns WindowSizeObj

          +
        • the width and height
        • +
        +

        Example

        windowSize() // { width: 1280, height: 800 }
        +
        +

        Since

        1.0.1

        +
\ No newline at end of file diff --git a/variables/inBrowser.html b/variables/inBrowser.html new file mode 100644 index 00000000..fb4cf398 --- /dev/null +++ b/variables/inBrowser.html @@ -0,0 +1,4 @@ +inBrowser | index.md - v5.21.1

Variable inBrowserConst

inBrowser: boolean = ...

Determine if it is running on the browser side

+

Since

4.5.0

+

Returns

boolean

+
\ No newline at end of file diff --git a/variables/inNodeJs.html b/variables/inNodeJs.html new file mode 100644 index 00000000..f027cb08 --- /dev/null +++ b/variables/inNodeJs.html @@ -0,0 +1,4 @@ +inNodeJs | index.md - v5.21.1

Variable inNodeJsConst

inNodeJs: boolean = ...

Determine if it is running on node.js

+

Since

5.13.0

+

Returns

boolean

+
\ No newline at end of file diff --git a/variables/pattern.html b/variables/pattern.html new file mode 100644 index 00000000..8d4bfb04 --- /dev/null +++ b/variables/pattern.html @@ -0,0 +1,7 @@ +pattern | index.md - v5.21.1

Variable patternConst

pattern: {
    any: RegExp;
    array: RegExp;
    arrjson: RegExp;
    chinese: RegExp;
    email: RegExp;
    float: RegExp;
    isjson: RegExp;
    json: RegExp;
    mobile: RegExp;
    number: RegExp;
    pass: RegExp;
    postcode: RegExp;
    qq: RegExp;
    string: RegExp;
    tel: RegExp;
    textarea: RegExp;
    url: RegExp;
    username: RegExp;
} = ...

Collection of common regular expressions

+

Type declaration

  • any: RegExp
  • array: RegExp
  • arrjson: RegExp
  • chinese: RegExp
  • email: RegExp
  • float: RegExp
  • isjson: RegExp
  • json: RegExp
  • mobile: RegExp
  • number: RegExp
  • pass: RegExp
  • postcode: RegExp
  • qq: RegExp
  • string: RegExp
  • tel: RegExp
  • textarea: RegExp
  • url: RegExp
  • username: RegExp

Deprecated

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

+

Since

1.0.1

+

Returns

    +
  • object
  • +
+
\ No newline at end of file diff --git a/variables/version-1.html b/variables/version-1.html new file mode 100644 index 00000000..6ba11177 --- /dev/null +++ b/variables/version-1.html @@ -0,0 +1 @@ +version | index.md - v5.21.1

Variable versionConst

version: string = ...
\ No newline at end of file