JAVASCRIPT FILTRER TABLEAU MULTIDIMENSIONNEL
let match = recipes.filter(function(element) {
for (let i = 0; i < element.ingredients.length; i++) {
if (element.ingredients[i] === 'citron') {
return element;
}
}
});
console.table(match); // Retourne les 2 dernières lignes
Are there any code examples left?
New code examples in category Javascript