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

Is there a way to also get IDs using names in lowercase #54

Closed
PuneetGopinath opened this issue Jun 13, 2021 · 1 comment
Closed

Is there a way to also get IDs using names in lowercase #54

PuneetGopinath opened this issue Jun 13, 2021 · 1 comment

Comments

@PuneetGopinath
Copy link

When passing name in getId function, if I pass pikachu it doesn't work but if I pass Pikachu I get it
So, is there a way to make both the name to lowercase or bring the first letter to UPPERCASE and check with index function?
I found this stackoverflow answer useful: https://stackoverflow.com/a/4878800

@sindresorhus
Copy link
Owner

That wouldn't work well for Type: Null. I don't think I want to add this here. I'll have to document how the transformation work in all cases and it's just easier for people to do it themselves if you need to be able to use lowercase IDs.

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

Successfully merging a pull request may close this issue.

2 participants