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

[New] support enumerable Symbol properties #4

Merged
merged 1 commit into from
Dec 20, 2023
Merged

Conversation

Americas
Copy link
Contributor

Currently, if traverse encounters an object with a Symbol property, it does not see it so it skips and anything nested under it.

This PR adds two small changes (one is even a TODO comment) to allow traverse to walk into those properties and further iterate down its chain.

index.js Show resolved Hide resolved
test/has.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
@Americas Americas force-pushed the main branch 2 times, most recently from 059f5fc to 5e5b9e8 Compare December 20, 2023 17:49
index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
Copy link
Owner

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

Thanks! Made a few tweaks, will land shortly.

@ljharb ljharb changed the title Update traverse to recognize Symbol properties [New] support enumerable Symbol properties Dec 20, 2023
@ljharb ljharb added the enhancement New feature or request label Dec 20, 2023
Copy link

New dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
es-value-fixtures 1.4.2 None +6 110 kB ljharb

@ljharb ljharb merged commit 7d659e7 into ljharb:main Dec 20, 2023
316 of 317 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants