selfrefactor / rambda

Faster and smaller alternative to Ramda
https://selfrefactor.github.io/rambda
MIT License
1.65k stars 89 forks source link

f.length gives 0 #605

Closed mohit61 closed 2 years ago

mohit61 commented 3 years ago

f.length should give the no. of arguments that function expects, which in the below case is 2, but the output is 0

var f = R.compose(R.map, R.multiply, parseInt);
console.log(f.length)

output: 0 expected: 2

selfrefactor commented 3 years ago

I will investigate the reason for it.

selfrefactor commented 2 years ago

I have a test to showcase this difference, but I couldn't fix it. Will have to close the issue, but feel free to comment further.