I am facing an issue with two arrays in my AngularJS project. One array is initially empty, and I assign the content of the other array to this empty one using a statement like
$scope.module_Allquestions = $scope.module_questions.questions;
.
My concern is about breaking the references between these two arrays. While I know that in ES6 we can use the spread operator for this purpose, I have been informed that it may not be feasible in AngularJS as it does not fully support ES6 yet. Are there any alternative methods available in AngularJS to achieve this without referencing the arrays?
Thank you.