Reference Find

Example - found element title: nesciunt totam sit blanditiis sit
WDS Video on this Hook
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); });