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

[Array] toggle with falsy elements returns wrong result #417

Open
karoyqiu opened this issue Jul 5, 2024 · 1 comment
Open

[Array] toggle with falsy elements returns wrong result #417

karoyqiu opened this issue Jul 5, 2024 · 1 comment

Comments

@karoyqiu
Copy link

karoyqiu commented Jul 5, 2024

Code:
toggle([0, 1, 2, 3], 0)

Expected result:
[1, 2, 3]

Actual result:
[0, 1, 2, 3]

Radash version 12.1.0

@aleclarson
Copy link

Hello @karoyqiu, we've fixed this over at the Radashi fork. You can use it today by installing radashi@beta. An official release is pending until I get the docs running. You can check out the CHANGELOG.md to see everything we've added/fixed.

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

No branches or pull requests

2 participants