let index = $scope.fetchPanelAssessorDetails.findIndex
( assessor => assessor.name === assessorDet.name );
I tried fetching the index of the object using above code. It worked too, but it affects my minification and uglification of code using grunt. What is the solution to overcome this.