function getPerformActionFunction(someParameter) { return function() { performAction(someParameter); } }
What would you call getPerformActionFunction to indicate that it is not performing an action, but returning a function that performs the action?
An example of Javascript, and if there is a Javascript convention that is preferred but also interested in other languages, if the answer is different.
Davy8 source share