I have an array $scope.blinkingBoxes=[1,3,2]
I have another array called $scope.clickedBoxes
and I push few values in it.
Now if(angular.equals($scope.blinkingBoxes, $scope.clickedBoxes)){doSomething()}
checks if the both the arrays are same (i.e. same elements in same order)
However I want to check if the second array do not contain any element from first array and perform some action. How can I achieve this?