DEV Community

Discussion on: How to Reduce Functions in Javascript

Collapse
 
savagepixie profile image
SavagePixie

Hey Diegoper. That's an interesting approach. However, I think that a map would be more appropriate in this case:

const result = myFunctions.map(func => func())
Collapse
 
diegoper profile image
Diegoper

Hahaha it's good... Thanks