Extending Currying: Partial Functions in Javascript
- by kerry
Last week I posted about function currying in javascript. This week I am taking it a step further by adding the ability to call partial functions.
Suppose we have a graphing application that will pull data via Ajax and perform some calculation to update a graph. Using a method with the signature ‘updateGraph(id,value)’.
To do this, we…