Week 4
Quiz 9f

Assignment: reduce

Provide a function (or lambda expression) named 'join' such that

[1,2,3].reduce(join('-')) equals '1-2-3'
Solution
const join = separator => (acc, value) => acc + separator + value

Your solution will be tested against:

[1,2,3].reduce(join('-')) === '1-2-3'