timoxley / functional-javascript-workshop

A functional javascript workshop. No libraries required (i.e. no underscore), just ES5.
2.06k stars 441 forks source link

Update solution for basic recursion #176

Open basemath opened 7 years ago

basemath commented 7 years ago

This would be a more elegant/correct solution for the recursion problem since it defines the reduce function itself in a recursive manner and is more straightforward.