Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Create unique list in JS with underscorelibrary
function addFailedTask(taskID){
if(taskID != null){
$scope.failedTaskList.push(taskID);
}
$scope.failedTaskList = _.uniq($scope.failedTaskList);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment