Skip to content

uncurryThis uses bind twice #4811

Answered by aduh95
saurabhraushan asked this question in Q&A
Discussion options

You must be logged in to vote

I don't know if it helps, but it used to be even more convoluted: nodejs/node#36866

I wouldn't worry too much if you don't understand it, no one should need to make their own uncurryThis, if you're happy to take my word for it, just know it's equivalent to const uncurryThis = (fn) => (this, ...args) => Reflect.apply(fn, this, args).

Replies: 0 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by avivkeller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants