Function: setFunctionName()
setFunctionName<
F>(name:string,f:F):F
Defined in: pkg/function-name/src/index.ts:23
Assigns the name to the given function. Note that this is a mutating
operation!
Type Parameters
| Type Parameter |
|---|
F extends AnyFunction |
Parameters
| Parameter | Type |
|---|---|
name |
string |
f |
F |
Returns
F