const a = [1, 5, 2]
const b = [15, 22, 24, 10,11,2, 7, 8]
const c = [15, 116160, 56]
const mul = arr => arr.reduce((acc, n) => acc * n, 1);
const result = count.map(function(n) {
return mul(data.slice(this[0], this[0] += n));
}, [ 0 ]);
const result = count.map(n => mul(data.splice(0, n)));