-
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
8986eba
commit 4bfd17a
Showing
288 changed files
with
284 additions
and
279 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"id":298,"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":77,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/32ad824/utils/packages/utils/src/array.ts#L77"}],"signatures":[{"id":299,"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":[{"kind":"text","text":"是否所有项都相等, 空数组返回true"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nallEqual([0, 1, 2]); // false\r\nallEqual([2, 2, 2]); // true\r\nallEqual([2, 2, '2']); // false\r\nallEqual([NaN, NaN, NaN]); // false\n```"}]}]},"parameters":[{"id":300,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组"}]},"type":{"type":"reference","id":297,"name":"AnyArr"},"text":{"comment":"<p>数组</p>\n"}}],"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><p>是否所有项都相等, 空数组返回true</p>\n<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<span class=\"pl-en\">allEqual</span>([<span class=\"pl-c1\">2</span>, <span class=\"pl-c1\">2</span>, <span class=\"pl-s\"><span class=\"pl-pds\">'</span>2<span class=\"pl-pds\">'</span></span>]); <span class=\"pl-c\">// false</span>\n<span class=\"pl-en\">allEqual</span>([<span class=\"pl-c1\">NaN</span>, <span class=\"pl-c1\">NaN</span>, <span class=\"pl-c1\">NaN</span>]); <span class=\"pl-c\">// false</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":77,"character":24,"url":"https://github.com/MichealWayne/fe-tools/blob/32ad824/utils/packages/utils/src/array.ts#L77"}],"parentId":298}],"is":{"declaration":true},"location":{"query":"Array.Function.allEqual","hash":""},"text":{},"parentId":154} | ||
{"id":298,"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":77,"character":13,"url":"https://github.com/MichealWayne/fe-tools/blob/8986eba/utils/packages/utils/src/array.ts#L77"}],"signatures":[{"id":299,"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":[{"kind":"text","text":"是否所有项都相等, 空数组返回true"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\nallEqual([0, 1, 2]); // false\r\nallEqual([2, 2, 2]); // true\r\nallEqual([2, 2, '2']); // false\r\nallEqual([NaN, NaN, NaN]); // false\n```"}]}]},"parameters":[{"id":300,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数组"}]},"type":{"type":"reference","id":297,"name":"AnyArr"},"text":{"comment":"<p>数组</p>\n"}}],"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><p>是否所有项都相等, 空数组返回true</p>\n<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<span class=\"pl-en\">allEqual</span>([<span class=\"pl-c1\">2</span>, <span class=\"pl-c1\">2</span>, <span class=\"pl-s\"><span class=\"pl-pds\">'</span>2<span class=\"pl-pds\">'</span></span>]); <span class=\"pl-c\">// false</span>\n<span class=\"pl-en\">allEqual</span>([<span class=\"pl-c1\">NaN</span>, <span class=\"pl-c1\">NaN</span>, <span class=\"pl-c1\">NaN</span>]); <span class=\"pl-c\">// false</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":77,"character":24,"url":"https://github.com/MichealWayne/fe-tools/blob/8986eba/utils/packages/utils/src/array.ts#L77"}],"parentId":298}],"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 |
---|---|---|
@@ -1 +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":49,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/32ad824/utils/packages/utils/src/array.ts#L49"}],"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":"@returns","content":[{"kind":"text","text":"数组平均值, 数组为空返回0"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\narrayMax([1, 2, 3, 0, -1, -5]); // -> 0\r\narrayMax([1, 2, 3]); // -> 2\n```"}]}]},"parameters":[{"id":163,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字数组"}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"number"}},"text":{"comment":"<p>数字数组</p>\n"}}],"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>Returns:</h5><p>数组平均值, 数组为空返回0</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<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\">// -> 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":49,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/32ad824/utils/packages/utils/src/array.ts#L49"}],"parentId":161}],"is":{"declaration":true},"location":{"query":"Array.Function.arrayAverage","hash":""},"text":{},"parentId":154} | ||
{"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":49,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/8986eba/utils/packages/utils/src/array.ts#L49"}],"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":"@returns","content":[{"kind":"text","text":"数组平均值, 数组为空返回0"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\narrayMax([1, 2, 3, 0, -1, -5]); // -> 0\r\narrayMax([1, 2, 3]); // -> 2\n```"}]}]},"parameters":[{"id":163,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字数组"}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"number"}},"text":{"comment":"<p>数字数组</p>\n"}}],"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>Returns:</h5><p>数组平均值, 数组为空返回0</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<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\">// -> 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":49,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/8986eba/utils/packages/utils/src/array.ts#L49"}],"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 |
---|---|---|
@@ -1 +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":23,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/32ad824/utils/packages/utils/src/array.ts#L23"}],"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":[{"kind":"text","text":"数组最大值, 数组为空返回-Infinity, 数组中有非数字项返回NaN"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\narrayMax([1, 2, 3, 0, -1, -5]); // -> 3\r\narrayMax([1, 2, 3]); // -> 3\n```"}]}]},"parameters":[{"id":157,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字数组"}]},"type":{"type":"reference","id":296,"name":"NumberArr"},"text":{"comment":"<p>数字数组</p>\n"}}],"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><p>数组最大值, 数组为空返回-Infinity, 数组中有非数字项返回NaN</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\">// -> 3</span>\n<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\">// -> 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":23,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/32ad824/utils/packages/utils/src/array.ts#L23"}],"parentId":155}],"is":{"declaration":true},"location":{"query":"Array.Function.arrayMax","hash":""},"text":{},"parentId":154} | ||
{"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":23,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/8986eba/utils/packages/utils/src/array.ts#L23"}],"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":[{"kind":"text","text":"数组最大值, 数组为空返回-Infinity, 数组中有非数字项返回NaN"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\narrayMax([1, 2, 3, 0, -1, -5]); // -> 3\r\narrayMax([1, 2, 3]); // -> 3\n```"}]}]},"parameters":[{"id":157,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字数组"}]},"type":{"type":"reference","id":296,"name":"NumberArr"},"text":{"comment":"<p>数字数组</p>\n"}}],"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><p>数组最大值, 数组为空返回-Infinity, 数组中有非数字项返回NaN</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\">// -> 3</span>\n<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\">// -> 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":23,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/8986eba/utils/packages/utils/src/array.ts#L23"}],"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 |
---|---|---|
@@ -1 +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":36,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/32ad824/utils/packages/utils/src/array.ts#L36"}],"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":[{"kind":"text","text":"数组最小值, 数组为空返回Infinity, 数组中有非数字项返回NaN"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\narrayMax([1, 2, 3, 0, -1, -5]); // -> -5\r\narrayMax([1, 2, 3]); // -> 1\n```"}]}]},"parameters":[{"id":160,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字数组"}]},"type":{"type":"reference","id":296,"name":"NumberArr"},"text":{"comment":"<p>数字数组</p>\n"}}],"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><p>数组最小值, 数组为空返回Infinity, 数组中有非数字项返回NaN</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\">// -> -5</span>\n<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\">// -> 1</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":36,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/32ad824/utils/packages/utils/src/array.ts#L36"}],"parentId":158}],"is":{"declaration":true},"location":{"query":"Array.Function.arrayMin","hash":""},"text":{},"parentId":154} | ||
{"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":36,"character":16,"url":"https://github.com/MichealWayne/fe-tools/blob/8986eba/utils/packages/utils/src/array.ts#L36"}],"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":[{"kind":"text","text":"数组最小值, 数组为空返回Infinity, 数组中有非数字项返回NaN"}]},{"tag":"@example","content":[{"kind":"code","text":"```ts\narrayMax([1, 2, 3, 0, -1, -5]); // -> -5\r\narrayMax([1, 2, 3]); // -> 1\n```"}]}]},"parameters":[{"id":160,"name":"arr","kind":32768,"kindString":"Parameter","flags":{},"comment":{"summary":[{"kind":"text","text":"数字数组"}]},"type":{"type":"reference","id":296,"name":"NumberArr"},"text":{"comment":"<p>数字数组</p>\n"}}],"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><p>数组最小值, 数组为空返回Infinity, 数组中有非数字项返回NaN</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\">// -> -5</span>\n<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\">// -> 1</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":36,"character":0,"url":"https://github.com/MichealWayne/fe-tools/blob/8986eba/utils/packages/utils/src/array.ts#L36"}],"parentId":158}],"is":{"declaration":true},"location":{"query":"Array.Function.arrayMin","hash":""},"text":{},"parentId":154} |
Oops, something went wrong.