Ajouter marge
This commit is contained in:
parent
9cf4b8a2e8
commit
9d21ca12cb
1 changed files with 5 additions and 0 deletions
5
marge.js
Normal file
5
marge.js
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
// Calcul de la marge d'un bookmaker
|
||||||
|
function marge(cotes) {
|
||||||
|
return cotes.reduce((s, c) => s + 1 / c, 0) - 1;
|
||||||
|
}
|
||||||
|
module.exports = marge;
|
||||||
Loading…
Reference in a new issue