data : { detailList : { 0:{quantity : “”} 1:{quantity : “”} 2:{quantity : “”} }}
It is an example of the array. The details array can be more than 10 objects.
How I can check that any quantity value is Empty or less than 0 from the whole array. If it is not then it will perform the function which I want like hit API else it will show a message.
I try it through the map but it hit API multiple times depending on the length of detailList.