function categorizeTabs(tabs) { const categories = { work: [], research: [], entertainment: [] };
tabs.forEach(tab => { if (tab.url.includes('work')) categories.work.push(tab); else if (tab.url.includes('research')) categories.research.push(tab); else categories.entertainment.push(tab); });
return categories; }
Log in or sign up for Devpost to join the conversation.