2
I have this array of objects, how can I make to return the object with the lowest value in currentTasks
"programmers":[
{
"id": 1,
"name": "Eduardo Candido",
"currentTasks": 1
},
{
"id":2,
"name": "João Lemos",
"currentTasks": 1
},
{
"id":3,
"name": "Antonio Bond",
"currentTasks": 2
}
]
In this case it is the smallest objects? why you can have more than one minor, like the example, you want only the first two if that were the case, since they are 1.
– Everton Figueiredo
Exactly, or any of the first two
– Eduardo Candido
https://answall.com/questions/285005/howto get o-maior-valor-em-um-array-com-javascript 
.
– Everton Figueiredo