DEV Community

Discussion on: Daily Challenge #301 - Array Combos

Collapse
 
_bkeren profile image
''

JS

const solve = (arrays) => arrays.map(array => new Set(array).size).reduce((a,b) => a * b)

Enter fullscreen mode Exit fullscreen mode