Alternatively, sort the array by the key of the ob...
# suitescript
g
Alternatively, sort the array by the key of the object and then get the first or last one by index.