I created an object with javascript and want to make the "completed" property of all objects true.
codes:
let todos = [
  {
    id: 0,
    title: "Javascript",
    completed: false
  },
  {
    id: 1,
    title: "php",
    completed: false
  },
]
I want to make the completed property of all objects true
function completeAll() { 
  //some codes
 //I'm running with button
} 
 
     
    