marge-calcul/marge.js

6 lines
138 B
JavaScript
Raw Normal View History

2026-11-13 23:20:30 +00:00
// Calcul de la marge d'un bookmaker
function marge(cotes) {
return cotes.reduce((s, c) => s + 1 / c, 0) - 1;
}
module.exports = marge;