* Creates a new function that calls the given function with a specified thisArg and arguments. * * @param func - The function to be wrapped and called. * @returns A new function that calls the given function with a specified thisArg and arguments.
( func: (thisArg: any, ...args: any[]) => T )
| 91 | * @returns A new function that calls the given function with a specified thisArg and arguments. |
| 92 | */ |
| 93 | function unapply<T>( |
| 94 | func: (thisArg: any, ...args: any[]) => T |
| 95 | ): (thisArg: any, ...args: any[]) => T { |
| 96 | return (thisArg: any, ...args: any[]): T => apply(func, thisArg, args); |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * Creates a new function that constructs an instance of the given constructor function with the provided arguments. |
no outgoing calls
no test coverage detected