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