I have the function:
$(this.SubOfferGroups).each(function () {
$(this.AnswerOffersList).each(function () {
menorValor = Math.min(this.SalePrice.DefaultValue);
});
});
When entering the array AnswerOffersList
, I need to go through and get the smallest SalePrice
, which in some cases has two registers for each position in the array, however, what is coming is the largest or last in the array. p>
Where am I going wrong?