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 + valueYour solution will be tested against:
[1,2,3].reduce(join('-')) === '1-2-3'