one-liner trick with `forEach` you should remember
Intuition\nSelf-explanatory\n\n# Code\n\nreduce=(s,f,i)=>s.forEach(n=>i=f(i,n))||i\n
# Intuition\nSelf-explanatory\n\n# Code\n```\nreduce=(s,f,i)=>s.forEach(n=>i=f(i,n))||i\n```
['JavaScript']