The type of the function.
The new name to be set for the function.
The function whose name is to be set.
The function with the new name.
const myFun = () => 'Hello World';
funSetName('newFun', myFun).name;;
//=> 'newFun'
Generated using TypeDoc
This function sets the name of a function and returns the function with the new name.