Back to Lo

Core Max

docs/data/core-max.md

1.53.0138 B
Original Source

Searches the maximum value of a collection. Returns zero value when the collection is empty.

go
max := lo.Max([]int{2, 5, 3})
// 5