timoxley / functional-javascript-workshop

A functional javascript workshop. No libraries required (i.e. no underscore), just ES5.
2.05k stars 442 forks source link

Higher Order Functions hack solution #148

Open Kidlike opened 8 years ago

Kidlike commented 8 years ago

This exercise passes with the following code:

function repeat(operation, num) {
    operation(num);
}

module.exports = repeat
mmwtsn commented 8 years ago

Testing against 1.0.5 it appears that anything passes so long as the function is exported correctly.

For example, this passes:

function repeat(fn, num) {
}

module.exports = repeat