radash icon indicating copy to clipboard operation
radash copied to clipboard

[Array] toggle with falsy elements returns wrong result

Open karoyqiu opened this issue 1 year ago • 1 comments

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

Expected result: [1, 2, 3]

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

Radash version 12.1.0

karoyqiu avatar Jul 05 '24 02:07 karoyqiu

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.

aleclarson avatar Jul 12 '24 17:07 aleclarson