radash
radash copied to clipboard
[Array] toggle with falsy elements returns wrong result
Code:
toggle([0, 1, 2, 3], 0)
Expected result:
[1, 2, 3]
Actual result:
[0, 1, 2, 3]
Radash version 12.1.0
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.