Javascript – How to iterate the array inside array of object in react js?
I am trying to iterate the data but it saying testData is not iterable. This is my code - const testData = details?.[0]?.one?.map((item) => { const labelTwo = item?.itemType === 'FIRST' ? 'newLabel' : 'oldLabel'; return { label: details?.[0]?.one?.length >…