SyntaxFix
Write A Post
Hire A Developer
Questions
You can also sort your array and then use array.first or array.last
array.first
array.last