app/services/todos.js
// Check if todo list is duplicated
Check if todo list is duplicated
Check if todo list is duplicated
function isDuplicate(name) {
          return _.some(listTodos, function (todo) {
               return todo.name === name;
           });
        }
function isDuplicate ( name ) { return _ . some ( listTodos , function ( todo ) { return todo . name === name ; } ) ; }
Check if todo list is duplicated
Check if todo list is duplicated