Answers for "JAVASCRIPT FILTRER TABLEAU MULTIDIMENSIONNEL"

0

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
Posted by: Guest on March-20-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language