Returns the largest number in the given arguments.
Accepts int and float.
max(value1, value2, ...)
values (int | float) - Two or more numeric values.
int | float
Integer values
max(1, 2, 3) // 3
Float values
max(3.14, 2.72, 1.41) // 3.14
From an array using spread
[5, 3, 8, 1].max($this...) // 8
CLI usage
Last updated 2 months ago
$ echo '{"scores": [88, 72, 95, 64]}' | dasel -i json 'scores.max($this...)' 95