const notes = [
{ title: 'Meeting Notes', content: 'Discuss project roadmap' },
{ title: 'Grocery List', content: 'Buy milk, eggs, bread' },
{ title: 'Workout Plan', content: 'Push day: Bench, Shoulder Press' },
{ title: 'Recipe Ideas', content: 'Pasta, Salad, Tacos' },
];
const [firstNote, ...otherNotes] = notes;
console.log(firstNote);
// { title: "Meeting Notes", content: "Discuss project roadmap" }
console.log(otherNotes);
// [ { title: "Grocery List", content: "Buy milk, eggs, bread" }, { title: "Workout Plan", content: "Push day: Bench, Shoulder Press" }, { title: "Recipe Ideas", content: "Pasta, Salad, Tacos" } ]