I have to show some data from API in my UI. I am getting an array of 12 elements, but after each loop, there are 60 items in my UI. These items are chaotic. Can I somehow break the loop, or fix this in the other way? For example, I have an array [1, 2, 3, 4, 5, 6] Each loop returns 1,1,2,3,4,1,1 i.e. values are chaotic and looped several times
success: function (data) {
   var arr = data.Races;  // my array
   jQuery.each(arr, function (index, item) {
     var date = item.RACE_DATE;
     content += '<tr class="test-content">\n' +
                  '<td>' + date + '</td>\n +';// i am getting each item from array
                  '</tr>';
        raceInformation.append(content);
     });
  }
 
    