Tell me how to remove elements from the array:
Pressed to delete the last item in the list: GUAVA 1 kg. Here is a screenshot from the debugger:
The function returned the array by removing the position of 1 kg PITAHAYA and not GUAVA 1 kg.
What is the error?