A loop and condition can locate one object in an array before updating its property.
Complete the loop so only the task whose id matches selectedId becomes done. Display Selected done: true and keep the first task unchanged.
id
selectedId
Selected done: true