I have an array of objects (json data) and each object has 2 statuses in 2 languages, how can I divide this array into 10 objects and duplicate it 2 times (you need to display the status 1 time in another language and 2 times in another) and so on further, that is, take 10 objects from the array in js, help is urgently needed, I couldn’t come up with something and then I need to output it in react.
here is an example of an array
{
code: '123',
ret_en_status: 'Ready',
ret_ru_status: 'Готов'
}
I tried several ways