Takes a value and applies a function to it.
const applyTo10 = applyTo(10);applyTo10((value: number) => value * 2); // 20applyTo10((value: number) => value / 2); // 5
Function that expects a function that will receive the input.
input
Takes a value and applies a function to it.
Example
Returns
Function that expects a function that will receive the
input
.