Created
February 26, 2018 23:00
-
-
Save goldhand/c181ad7d0aa3e59f362e1ca1aea4d633 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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