DEV Community

Discussion on: Making a TODO App in Svelte

Collapse
 
devhammed profile image
Hammed Oyedele

Nice one but let's simplify the removeTodo function:

  function removeTodo (id) {
    todos = todos.filter(todo => todo.id !== id)
  }