DEV Community

Discussion on: Daily Coding Puzzles - Nov 4th - Nov 9th

Collapse
 
gypsydave5 profile image
David Wickes

JavaScript

const product = arr => arr.reduce((acc, x) => acc * x)