- bind<T>(fn, thisArg): ((...args) => ReturnType<T>)
Type Parameters
T extends ((...args) => unknown)
Parameters
fn: T | ((...args) => unknown)
thisArg: unknown
Returns ((...args) => ReturnType<T>)
- (...args): ReturnType<T>
Parameters
Rest
...args: Parameters<T>
Returns ReturnType<T>
Binds a function to a specific context.