selfrefactor / rambdax

Extended version of Rambda
https://selfrefactor.github.io/rambdax
MIT License
221 stars 26 forks source link

R.count not working as expected #86

Closed mauriciosoares closed 1 year ago

mauriciosoares commented 2 years ago

Looks like R.count is always returning 0, even the documentation REPL for count is not working properly:

https://rambda.vercel.app/?const%20list%20%3D%20%5B%7Ba%3A%201%7D%2C%201%2C%20%7Ba%3A2%7D%5D%0Aconst%20result%20%3D%20R.count(x%20%3D%3E%20x.a%20!%3D%3D%20undefined%2C%20list)%0A%2F%2F%20%3D%3E%202

Here's another example without using objects https://codesandbox.io/s/spring-sun-npcx1i?file=/src/index.ts

I also tested with rambda to see if that might be an issue in there too, but looks like this only happens with rambdax

selfrefactor commented 2 years ago

thanks for filing this issue. I will look into it.

selfrefactor commented 2 years ago

I couldn't find the reason, but I added a test that proves that current version doesn't have any issues. I will keep the issue open until next release, so we can prove that it is gone.

selfrefactor commented 1 year ago

closing as it cannot be reproduced with latest version