Back to Arrays
argmin
Index (1-based) of the minimum element.
Syntax
argmin(arr) → Int64 index of the smallest element
Backends
TypeScript
Description
Index (1-based) of the minimum element.
Parameters
| Name | Description |
|---|---|
| arr | Input array |
Returns
Int64 index of the smallest element