In JavaScript you can even use apply and call to define what this will be set to during the application.
Ingredients of Effective Functional JavaScript: Closures, Partial Application and Currying
Hugo Di Francesco

In the example the value of ‘this’ is irrelevant and might as well be set to null. In my mind ‘this’ is more an aspect of OOP than FP as it is a mechanism for passing around context/state.

Show your support

Clapping shows how much you appreciated Tracy-Gregory Gilmore’s story.