Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name causes undefined #10

Closed
aquacash5 opened this issue Apr 16, 2021 · 1 comment
Closed

Name causes undefined #10

aquacash5 opened this issue Apr 16, 2021 · 1 comment

Comments

@aquacash5
Copy link

I was playing with the library. It works amazingly well for how simple it is. However, when I used the name João it returned undefined.

var nc = require('namecase')

String.prototype.toNameCase = function () {
  var name = this.toString()

  if (nc.checkName(name)) {
    return nc(name, { individualFields : true } )
  }
}

console.log("João".toNameCase())
// returns undefined
@aquacash5
Copy link
Author

Never mind, the issue was with my use of the example toNameCase function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant