Create a new Set with elements that are filtered and transformed by a provided reducer function.
A reducer function applied to each value. Positional arguments are the accumulator, the value, the index of iteration, and the set being reduced.
The initial value of the returned accumulator.
The final value of the accumulator.
Array#reduce
Create a new Set with elements that are filtered and transformed by a provided reducer function.