johnpaulada
4/11/2017 - 3:25 AM

Call a function on different sets of parameters.

Call a function on different sets of parameters.

const callForArgs = (fn, ...argz) => argz.forEach((arg) => fn(...arg))