I'm using .map from lodash as per below:
map(data, (data: array) => {
return (
<FormItem label={data?.label}>
<FormControl fullWidth>
<Typography>{data?.value}</Typography>
</FormControl>
</FormItem>
);
From my understanding lodash .map does not guarantee iteration order, it means the order I will display won't necessarily be same from the original array. Is that correct? If so there are any other functions I could use to map it on the correct order?