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

Refactor 'Enum.values()' to 'Enum.entries' #42

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yongsuk44
Copy link

The enumValues() function is still supported, but we recommend that you use the enumEntries() function instead because it has less performance impact. Every time you call enumValues() a new array is created, whereas whenever you call enumEntries() the same list is returned each time, which is far more efficient.

link

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 this pull request may close these issues.

2 participants