I have this massive
$scope.arrVaritions = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9],
[1, 4, 7],
[2, 5, 8],
[3, 6, 9],
[1, 5, 9],
[3, 5, 7]
];
How can I find an element index in this array? I'm use this code, but it does not work:
$scope.elementId = 1;
$filter('filter')($scope.arrVaritions, { $scope.elementId });