Skip to content

chore: clean up usage of Object.keys #14484

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

Merged
merged 2 commits into from
Aug 29, 2024
Merged

chore: clean up usage of Object.keys #14484

merged 2 commits into from
Aug 29, 2024

Conversation

aslilac
Copy link
Member

@aslilac aslilac commented Aug 29, 2024

We use Object.keys in a ton of places where we should really be using Object.entries, or at least use it without aiming it at our feet. A lot of stuff made simpler by small changes!

Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

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

Love to see it!

) {
// A and B are either both files or both folders, so they should be sorted
// lexically.
if (isFolder(contentA) === isFolder(contentB)) {
Copy link
Member

Choose a reason for hiding this comment

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

wonderful 👌

@aslilac aslilac merged commit 4672849 into main Aug 29, 2024
28 checks passed
@aslilac aslilac deleted the object-keys branch August 29, 2024 23:21
@github-actions github-actions bot locked and limited conversation to collaborators Aug 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants