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