Skip to content

Instantly share code, notes, and snippets.

@goldhand
Created February 26, 2018 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goldhand/c181ad7d0aa3e59f362e1ca1aea4d633 to your computer and use it in GitHub Desktop.
Save goldhand/c181ad7d0aa3e59f362e1ca1aea4d633 to your computer and use it in GitHub Desktop.
// gets the prototype function of an object so it can be called against a value
const protoOf = curry((Obj, method, value, ...args) =>
Obj.prototype[method].call(value, ...args));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment