Within my Angular Component, I have a public array variable that is initially set to an empty array. Upon receiving a response from a service in the constructor, I attempt to update the array by using this.variable = array.reverse()
. However, instead of storing the reversed array, it seems to only retain the original array. Am I overlooking something here? Thank you in advance for your help.