Extracts unique ingredients, tags, and titles from a recipe collection
Processes an array of recipes to extract all unique ingredients, tags, and titles for use in filter dropdowns and search suggestions.
Array of recipes to process
Tuple containing [sorted titles, unique ingredients, sorted tags]
const [titles, ingredients, tags] = extractFilteredRecipeDatas(recipes);console.log(`Found ${ingredients.length} unique ingredients`); Copy
const [titles, ingredients, tags] = extractFilteredRecipeDatas(recipes);console.log(`Found ${ingredients.length} unique ingredients`);
Extracts unique ingredients, tags, and titles from a recipe collection
Processes an array of recipes to extract all unique ingredients, tags, and titles for use in filter dropdowns and search suggestions.