File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -2854,7 +2854,11 @@ <h4 id="std-minArray">
2854
2854
</ em >
2855
2855
</ p >
2856
2856
< p >
2857
- Return the min of all element in < code > arr</ code > .
2857
+ Return the minimum of all elements in < code > arr</ code > . If < code > keyF</ code > is provided, it is called on each element
2858
+ of the array and should return a comparator value, and in this case < code > minArray</ code > will return an element
2859
+ with the minimum comparator value. If < code > onEmpty</ code > is provided, and < code > arr</ code > is empty, then
2860
+ < code > minArray</ code > will return the provided < code > onEmpty</ code > value. If < code > onEmpty</ code > is not provided,
2861
+ then an empty < code > arr</ code > will raise an error.
2858
2862
</ p >
2859
2863
2860
2864
</ div >
@@ -2881,7 +2885,11 @@ <h4 id="std-maxArray">
2881
2885
</ em >
2882
2886
</ p >
2883
2887
< p >
2884
- Return the max of all element in < code > arr</ code > .
2888
+ Return the maximum of all elements in < code > arr</ code > . If < code > keyF</ code > is provided, it is called on each element
2889
+ of the array and should return a comparator value, and in this case < code > maxArray</ code > will return an element
2890
+ with the maximum comparator value. If < code > onEmpty</ code > is provided, and < code > arr</ code > is empty, then
2891
+ < code > maxArray</ code > will return the provided < code > onEmpty</ code > value. If < code > onEmpty</ code > is not provided,
2892
+ then an empty < code > arr</ code > will raise an error.
2885
2893
</ p >
2886
2894
2887
2895
</ div >
You can’t perform that action at this time.
0 commit comments