-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
797fd85
commit c4dfc0b
Showing
530 changed files
with
5,254 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"versions":["v1.0.0-beta01"],"stable":"v1.0.0-beta01","dev":"v1.0.0-beta01"} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/home/runner/work/fe-tools/fe-tools/docs/v1.0.0-beta01 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<meta http-equiv="refresh" content="0; url=stable/"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/home/runner/work/fe-tools/fe-tools/docs/v1.0.0-beta01 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/home/runner/work/fe-tools/fe-tools/docs/v1.0.0-beta01 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"id":292,"name":"allEqual","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":69,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/797fd85/utils/packages/utils/src/array.ts#L69"}],"signatures":[{"id":293,"name":"allEqual","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"allEqual"}]},{"tag":"@description","content":[{"kind":"text","text":"判断数组中所有项是否都相等。(NaN !== NaN)"}]},{"tag":"@returns","content":[]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nallEqual([0, 1, 2]); // false\r\nallEqual([2, 2, 2]); // true\n```"}]}]},"parameters":[{"id":294,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","id":291,"name":"AnyArr"},"text":{}}],"type":{"type":"intrinsic","name":"boolean"},"is":{"declaration":false},"location":{"query":"Array.Function.allEqual","hash":"allEqual"},"text":{"comment":"<h5>Function:</h5><p>allEqual</p>\n<h5>Description:</h5><p>判断数组中所有项是否都相等。(NaN !== NaN)</p>\n<h5>Returns:</h5><h5>Example:</h5><pre><code class=\"language-ts\"><span class=\"pl-en\">allEqual</span>([<span class=\"pl-c1\">0</span>, <span class=\"pl-c1\">1</span>, <span class=\"pl-c1\">2</span>]); <span class=\"pl-c\">// false</span>\n<span class=\"pl-en\">allEqual</span>([<span class=\"pl-c1\">2</span>, <span class=\"pl-c1\">2</span>, <span class=\"pl-c1\">2</span>]); <span class=\"pl-c\">// true</span>\n</code></pre>\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":69,"character":24,"url":"https://github.com/MichealWayne/fe-tools/blob/797fd85/utils/packages/utils/src/array.ts#L69"}],"parentId":292}],"is":{"declaration":true},"location":{"query":"Array.Function.allEqual","hash":""},"text":{},"parentId":154} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"id":161,"name":"arrayAverage","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":45,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/797fd85/utils/packages/utils/src/array.ts#L45"}],"signatures":[{"id":162,"name":"arrayAverage","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"arrayAverage"}]},{"tag":"@description","content":[{"kind":"text","text":"求数组平均值"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\narrayMax([1, 2, 3, 0, -1, -5]); // -> 0\n```"}]}]},"parameters":[{"id":163,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"array","elementType":{"type":"intrinsic","name":"number"}},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Array.Function.arrayAverage","hash":"arrayAverage"},"text":{"comment":"<h5>Function:</h5><p>arrayAverage</p>\n<h5>Description:</h5><p>求数组平均值</p>\n<h5>Example:</h5><pre><code class=\"language-ts\"><span class=\"pl-en\">arrayMax</span>([<span class=\"pl-c1\">1</span>, <span class=\"pl-c1\">2</span>, <span class=\"pl-c1\">3</span>, <span class=\"pl-c1\">0</span>, <span class=\"pl-k\">-</span><span class=\"pl-c1\">1</span>, <span class=\"pl-k\">-</span><span class=\"pl-c1\">5</span>]); <span class=\"pl-c\">// -> 0</span>\n</code></pre>\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":45,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/797fd85/utils/packages/utils/src/array.ts#L45"}],"parentId":161}],"is":{"declaration":true},"location":{"query":"Array.Function.arrayAverage","hash":""},"text":{},"parentId":154} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"id":155,"name":"arrayMax","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":22,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/797fd85/utils/packages/utils/src/array.ts#L22"}],"signatures":[{"id":156,"name":"arrayMax","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"arrayMax"}]},{"tag":"@description","content":[{"kind":"text","text":"求数组最大值"}]},{"tag":"@returns","content":[]},{"tag":"@example","content":[{"kind":"code","text":"```ts\narrayMax([1, 2, 3, 0, -1, -5]); // -> 3\n```"}]}]},"parameters":[{"id":157,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","id":290,"name":"NumberArr"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Array.Function.arrayMax","hash":"arrayMax"},"text":{"comment":"<h5>Function:</h5><p>arrayMax</p>\n<h5>Description:</h5><p>求数组最大值</p>\n<h5>Returns:</h5><h5>Example:</h5><pre><code class=\"language-ts\"><span class=\"pl-en\">arrayMax</span>([<span class=\"pl-c1\">1</span>, <span class=\"pl-c1\">2</span>, <span class=\"pl-c1\">3</span>, <span class=\"pl-c1\">0</span>, <span class=\"pl-k\">-</span><span class=\"pl-c1\">1</span>, <span class=\"pl-k\">-</span><span class=\"pl-c1\">5</span>]); <span class=\"pl-c\">// -> 3</span>\n</code></pre>\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":22,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/797fd85/utils/packages/utils/src/array.ts#L22"}],"parentId":155}],"is":{"declaration":true},"location":{"query":"Array.Function.arrayMax","hash":""},"text":{},"parentId":154} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"id":158,"name":"arrayMin","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":34,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/797fd85/utils/packages/utils/src/array.ts#L34"}],"signatures":[{"id":159,"name":"arrayMin","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"arrayMin"}]},{"tag":"@description","content":[{"kind":"text","text":"求数组最小值"}]},{"tag":"@returns","content":[]},{"tag":"@example","content":[{"kind":"code","text":"```ts\narrayMax([1, 2, 3, 0, -1, -5]); // -> -5\n```"}]}]},"parameters":[{"id":160,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","id":290,"name":"NumberArr"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Array.Function.arrayMin","hash":"arrayMin"},"text":{"comment":"<h5>Function:</h5><p>arrayMin</p>\n<h5>Description:</h5><p>求数组最小值</p>\n<h5>Returns:</h5><h5>Example:</h5><pre><code class=\"language-ts\"><span class=\"pl-en\">arrayMax</span>([<span class=\"pl-c1\">1</span>, <span class=\"pl-c1\">2</span>, <span class=\"pl-c1\">3</span>, <span class=\"pl-c1\">0</span>, <span class=\"pl-k\">-</span><span class=\"pl-c1\">1</span>, <span class=\"pl-k\">-</span><span class=\"pl-c1\">5</span>]); <span class=\"pl-c\">// -> -5</span>\n</code></pre>\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":34,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/797fd85/utils/packages/utils/src/array.ts#L34"}],"parentId":158}],"is":{"declaration":true},"location":{"query":"Array.Function.arrayMin","hash":""},"text":{},"parentId":154} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"id":164,"name":"arraySum","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":56,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/797fd85/utils/packages/utils/src/array.ts#L56"}],"signatures":[{"id":165,"name":"arraySum","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"arraySum"}]},{"tag":"@description","content":[{"kind":"text","text":"数组求和"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\narrayMax([1, 2, 3]); // -> 6\n```"}]}]},"parameters":[{"id":166,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"array","elementType":{"type":"intrinsic","name":"number"}},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Array.Function.arraySum","hash":"arraySum"},"text":{"comment":"<h5>Function:</h5><p>arraySum</p>\n<h5>Description:</h5><p>数组求和</p>\n<h5>Example:</h5><pre><code class=\"language-ts\"><span class=\"pl-en\">arrayMax</span>([<span class=\"pl-c1\">1</span>, <span class=\"pl-c1\">2</span>, <span class=\"pl-c1\">3</span>]); <span class=\"pl-c\">// -> 6</span>\n</code></pre>\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":56,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/797fd85/utils/packages/utils/src/array.ts#L56"}],"parentId":164}],"is":{"declaration":true},"location":{"query":"Array.Function.arraySum","hash":""},"text":{},"parentId":154} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"id":170,"name":"arrayToCSV","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":115,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/797fd85/utils/packages/utils/src/array.ts#L115"}],"signatures":[{"id":171,"name":"arrayToCSV","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"arrayToCSV"}]},{"tag":"@description","content":[{"kind":"text","text":"二维数据转csv字符串"}]},{"tag":"@returns","content":[]}]},"parameters":[{"id":172,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"array","elementType":{"type":"reference","id":291,"name":"AnyArr"}},"text":{}},{"id":173,"name":"delimiter","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"string"},"text":{}}],"type":{"type":"intrinsic","name":"string"},"is":{"declaration":false},"location":{"query":"Array.Function.arrayToCSV","hash":"arrayToCSV"},"text":{"comment":"<h5>Function:</h5><p>arrayToCSV</p>\n<h5>Description:</h5><p>二维数据转csv字符串</p>\n<h5>Returns:</h5>"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":115,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/797fd85/utils/packages/utils/src/array.ts#L115"}],"parentId":170}],"is":{"declaration":true},"location":{"query":"Array.Function.arrayToCSV","hash":""},"text":{},"parentId":154} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"id":174,"name":"castArray","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":125,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/797fd85/utils/packages/utils/src/array.ts#L125"}],"signatures":[{"id":175,"name":"castArray","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"castArray"}]},{"tag":"@description","content":[{"kind":"text","text":"未知类型的数据val转数组"}]},{"tag":"@returns","content":[]}]},"typeParameter":[{"id":176,"name":"T","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":177,"name":"val","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"reference","id":176,"name":"T"},{"type":"array","elementType":{"type":"reference","id":176,"name":"T"}}]},"text":{}}],"type":{"type":"array","elementType":{"type":"reference","id":176,"name":"T"}},"is":{"declaration":false},"location":{"query":"Array.Function.castArray","hash":"castArray"},"text":{"comment":"<h5>Function:</h5><p>castArray</p>\n<h5>Description:</h5><p>未知类型的数据val转数组</p>\n<h5>Returns:</h5>"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":125,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/797fd85/utils/packages/utils/src/array.ts#L125"}],"parentId":174}],"is":{"declaration":true},"location":{"query":"Array.Function.castArray","hash":""},"text":{},"parentId":154} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"id":178,"name":"chunk","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":138,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/797fd85/utils/packages/utils/src/array.ts#L138"}],"signatures":[{"id":179,"name":"chunk","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"chunk"}]},{"tag":"@description","content":[{"kind":"text","text":"数组分片。"}]},{"tag":"@returns","content":[]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nchunk([1,2,3,4,5], 3); // [[1,2,3],[4,5]]\n```"}]}]},"typeParameter":[{"id":180,"name":"T","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":181,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"array","elementType":{"type":"reference","id":180,"name":"T"}},"text":{}},{"id":182,"name":"size","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"number"},"text":{}}],"type":{"type":"array","elementType":{"type":"array","elementType":{"type":"reference","id":180,"name":"T"}}},"is":{"declaration":false},"location":{"query":"Array.Function.chunk","hash":"chunk"},"text":{"comment":"<h5>Function:</h5><p>chunk</p>\n<h5>Description:</h5><p>数组分片。</p>\n<h5>Returns:</h5><h5>Example:</h5><pre><code class=\"language-ts\"><span class=\"pl-en\">chunk</span>([<span class=\"pl-c1\">1</span>,<span class=\"pl-c1\">2</span>,<span class=\"pl-c1\">3</span>,<span class=\"pl-c1\">4</span>,<span class=\"pl-c1\">5</span>], <span class=\"pl-c1\">3</span>); <span class=\"pl-c\">// [[1,2,3],[4,5]]</span>\n</code></pre>\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":138,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/797fd85/utils/packages/utils/src/array.ts#L138"}],"parentId":178}],"is":{"declaration":true},"location":{"query":"Array.Function.chunk","hash":""},"text":{},"parentId":154} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"id":183,"name":"compact","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":153,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/797fd85/utils/packages/utils/src/array.ts#L153"}],"signatures":[{"id":184,"name":"compact","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"compact"}]},{"tag":"@description","content":[{"kind":"text","text":"数组筛选出“真”值项。(false、0、NaN、Undefined、null非真)"}]},{"tag":"@returns","content":[]}]},"typeParameter":[{"id":185,"name":"T","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":186,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"array","elementType":{"type":"reference","id":185,"name":"T"}},"text":{}}],"type":{"type":"array","elementType":{"type":"reference","id":185,"name":"T"}},"is":{"declaration":false},"location":{"query":"Array.Function.compact","hash":"compact"},"text":{"comment":"<h5>Function:</h5><p>compact</p>\n<h5>Description:</h5><p>数组筛选出“真”值项。(false、0、NaN、Undefined、null非真)</p>\n<h5>Returns:</h5>"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":153,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/797fd85/utils/packages/utils/src/array.ts#L153"}],"parentId":183}],"is":{"declaration":true},"location":{"query":"Array.Function.compact","hash":""},"text":{},"parentId":154} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"id":187,"name":"countOccurrences","kind":64,"kindString":"Function","flags":{},"children":[],"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":166,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/797fd85/utils/packages/utils/src/array.ts#L166"}],"signatures":[{"id":188,"name":"countOccurrences","kind":4096,"kindString":"Call signature","flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@function","content":[{"kind":"text","text":"countOccurrences"}]},{"tag":"@description","content":[{"kind":"text","text":"计算数据val在数组arr中出现的次数"}]},{"tag":"@returns","content":[]},{"tag":"@example","content":[{"kind":"code","text":"```ts\ncountOccurrences([1,2,4,5,2,6,3], 2); // -> 2\n```"}]}]},"typeParameter":[{"id":189,"name":"T","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":190,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"array","elementType":{"type":"reference","id":189,"name":"T"}},"text":{}},{"id":191,"name":"val","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","id":189,"name":"T"},"text":{}}],"type":{"type":"intrinsic","name":"number"},"is":{"declaration":false},"location":{"query":"Array.Function.countOccurrences","hash":"countOccurrences"},"text":{"comment":"<h5>Function:</h5><p>countOccurrences</p>\n<h5>Description:</h5><p>计算数据val在数组arr中出现的次数</p>\n<h5>Returns:</h5><h5>Example:</h5><pre><code class=\"language-ts\"><span class=\"pl-en\">countOccurrences</span>([<span class=\"pl-c1\">1</span>,<span class=\"pl-c1\">2</span>,<span class=\"pl-c1\">4</span>,<span class=\"pl-c1\">5</span>,<span class=\"pl-c1\">2</span>,<span class=\"pl-c1\">6</span>,<span class=\"pl-c1\">3</span>], <span class=\"pl-c1\">2</span>); <span class=\"pl-c\">// -> 2</span>\n</code></pre>\n"},"sources":[{"fileName":"utils/src/array.ts","fullFileName":"/home/runner/work/fe-tools/fe-tools/utils/packages/utils/src/array.ts","line":166,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/797fd85/utils/packages/utils/src/array.ts#L166"}],"parentId":187}],"is":{"declaration":true},"location":{"query":"Array.Function.countOccurrences","hash":""},"text":{},"parentId":154} |
Oops, something went wrong.