You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/stats/base/min-by/README.md
+1
Original file line number
Diff line number
Diff line change
@@ -161,6 +161,7 @@ var v = minBy.ndarray( 3, x, 1, x.length-3, accessor );
161
161
162
162
- If `N <= 0`, both functions return `NaN`.
163
163
- A provided callback function should return a numeric value.
164
+
- If a provided callback function does not return any value (or equivalently, explicitly returns `undefined`), the value is **ignored**.
164
165
- When possible, prefer using [`dmin`][@stdlib/stats/base/dmin], [`smin`][@stdlib/stats/base/smin], and/or [`min`][@stdlib/stats/base/min], as, depending on the environment, these interfaces are likely to be significantly more performant.
* - The callback function should return a numeric value.
97
+
* - The callback function should return a numeric value. If the callback function does not return any value (or equivalently, explicitly returns `undefined`), the value is ignored.
98
98
*
99
99
* @param N - number of indexed elements
100
100
* @param x - input array
@@ -127,7 +127,7 @@ interface Routine {
127
127
* - `sidx`: strided index (offset + aidx*stride)
128
128
* - `array`: input array
129
129
*
130
-
* - The callback function should return a numeric value.
130
+
* - The callback function should return a numeric value. If the callback function does not return any value (or equivalently, explicitly returns `undefined`), the value is ignored.
131
131
*
132
132
* @param N - number of indexed elements
133
133
* @param x - input array
@@ -162,7 +162,7 @@ interface Routine {
162
162
* - `sidx`: strided index (offset + aidx*stride)
163
163
* - `array`: input array
164
164
*
165
-
* - The callback function should return a numeric value.
165
+
* - The callback function should return a numeric value. If the callback function does not return any value (or equivalently, explicitly returns `undefined`), the value is ignored.
0 commit comments