Skip to content

Commit 96b4481

Browse files
Update docs.
1 parent 5871a70 commit 96b4481

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

js/libjsonnet.wasm

560 KB
Binary file not shown.

ref/stdlib.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2854,7 +2854,11 @@ <h4 id="std-minArray">
28542854
</em>
28552855
</p>
28562856
<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.
28582862
</p>
28592863

28602864
</div>
@@ -2881,7 +2885,11 @@ <h4 id="std-maxArray">
28812885
</em>
28822886
</p>
28832887
<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.
28852893
</p>
28862894

28872895
</div>

0 commit comments

Comments
 (0)