Skip to content

Instantly share code, notes, and snippets.

@Franckapik
Created February 2, 2020 19:23
Show Gist options
  • Save Franckapik/278add7eb8eae798ee026d2bf19fcfe0 to your computer and use it in GitHub Desktop.
Save Franckapik/278add7eb8eae798ee026d2bf19fcfe0 to your computer and use it in GitHub Desktop.
get montantHorsFdp() {
if (panier.listeProduits.length > 0) {
return panier.listeProduits.reduce((sum, i) => (
sum += i.qte * i.prix
), 0);
} else {
return 0
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment