DEV Community

Discussion on: PWC 258 How do I sum thee? Let me count the ones.

Collapse
 
muthm profile image
Matthias Muth

Great idea to use an array slice. Much more elegant than a map call to get the array elements for the filtered indexes!