9 points · by codecurve · 11y ago · 1 comment
callbacks.forEach(fn => fn())
Calling an Array of Functions in JavaScript
I've reviewed some bits of code over the past couple months that stored functions in an array and then at some point in the future needed to call all of them. T
zpao.com