Skip to content

uncurryThis uses bind twice #51230

Answered by aduh95
saurabhraushan asked this question in General
Discussion options

You must be logged in to vote

I don't know if it helps, but it used to be even more convoluted: #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: 2 comments

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 RedYetiDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants