O'Reilly logo
  • Patrick S thinks this is interesting:

Another example is a function named plucker that takes a key into an associative structure—such as an array or an object—and returns a function that, given a structure, returns the value at the key. The implementation is as follows:

function plucker(FIELD) {
  return funct...


Cover of Functional JavaScript


Plucker example