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

Use Object.entries for iteration #59

Closed
wants to merge 4 commits into from
Closed

Conversation

jrandolf-2
Copy link
Collaborator

No description provided.

Because manual formatting is painful.
This fixes an problem related to parsing CSS escapes and removes some redundant matching done during restoration of strings and parentheses.

Fixed: #30
`Tokens` is not semantic as it doesn't represent several tokens, but just a single one.
Copy link
Owner

@LeaVerou LeaVerou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM! This would also have been fine as a direct commit.

The reason I used a for..in loop originally was to avoid the extra array creation and extra iteration that Objet.entries() introduces, but this kind of micro-optimization is probably not needed anymore (especially for such a small data structure and such small inputs) so I should get over myself 😄

@jrandolf-2 jrandolf-2 changed the base branch from jrandolf/rename to master March 15, 2023 00:36
@jrandolf-2
Copy link
Collaborator Author

Closed in 1599bce

@jrandolf-2 jrandolf-2 closed this Mar 15, 2023
@jrandolf-2 jrandolf-2 deleted the jrandolf/small-refactor branch March 16, 2023 01:19
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.

3 participants