1 2 3 4 5 6 7 8
'use strict'; function splitCents(totalCents, n) { const share = Math.floor(totalCents / n); return Array.from({ length: n }, () => share); } module.exports = { splitCents };