How can I update an object in an array in JavaScript, like changing a specific property based on a condition?

Hey! you can use Array.prototype.find() to get the object reference directly and then update its properties. Super handy when you’re collaborating and want clear, readable logic:

const item = projects.find(p => p.value === "jquery-ui");
if (item) {
  item.desc = "Updated description here!";
}

This approach keeps it clean and avoids mutating anything unnecessarily, your teammates will appreciate how maintainable it is.