Reversing the array remains in the original order
I am trying to modify an array in typescript. This is what the original array looks like:
But when I call reverse()
on the array, it doesn't change:
recommendations
- an array of arrays, declared like this:
recommendations: any;
And an instance:
me.recommendations = [[]];
Can anyone tell me why the array is not reversed and how to fix this problem?
thank
+3
source to share