Created
February 2, 2020 19:23
-
-
Save Franckapik/278add7eb8eae798ee026d2bf19fcfe0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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