W3Schools Documentation Array Find
fetch("https://jsonplaceholder.typicode.com/todos")
.then((response) => response.json())
.then((todos) => {
const matchedElement = { title: "" };
const foundElement = todos.find((t) => t.id === 28);
// Maybe a better approach
// matchedElement.title = todos.find((t) => t.id === 28).title;
matchedElement.title = foundElement.title;
console.log(matchedElement);
});