Back to Lo

Core Issorted

docs/data/core-issorted.md

1.53.0103 B
Original Source

Checks if a slice is sorted in ascending order.

go
lo.IsSorted([]int{0, 1, 2, 3, 4, 5})
// true