I have the following Array
[
0: {
nameId: "041c1119"
lastError: null
spotId: "15808822"
workType: "1"
},
1: {
nameId: "041c1130"
lastError: null
spotId: "15808821"
workType: "1"
},
2: {
nameId: "041c11123"
lastError: null
spotId: "15808820"
workType: "1"
}
]
I'm trying to get the lowest spotId
value, in this case I would need to get 15808820
.
I will appreciate any help of advice ( an example using lodash would be awesome)
Thanks!