UNPKG

@davidcal/fec-raptorq

Version:

Node.js wrapper for RaptorQ forward error correction

10 lines (7 loc) 165 B
export const reduce = (iterable, reducer, initial_acc) => { let acc = initial_acc; for (let entry of iterable) { acc = reducer(acc, entry); } return acc; };