We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi!
I have strange issue with rearg and reduce:
const reduce = _.rearg(_.reduce, [1, 2, 0]); const result = reduce( (x, y) => x + y, 0, [4, 5, 10, 11] ); console.log(typeof result); // function
But when i've changed indexes array to [1, 0, 2]:
const reduce = _.rearg(_.reduce, [1, 0, 2]); const result = reduce( (x, y) => x + y, [4, 5, 10, 11], 0, ); console.log(typeof result); // number!
What's wrong?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi!
I have strange issue with rearg and reduce:
But when i've changed indexes array to [1, 0, 2]:
What's wrong?
The text was updated successfully, but these errors were encountered: