Create a new, equivalent function with the specified name.
The original function's properties, arity and prototype are maintained with the newly named function.
var nameFn = require('namefn')
function User() {
}
console.log(new User()) // User {}
var OtherUser = nameFn('OtherUser', User)
console.log(new OtherUser()) // OtherUser {}
MIT