Skip to content

Still Wrong Example in in Document for curry function #285

New issue

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

Open
devjaeyoon opened this issue Apr 1, 2025 · 0 comments
Open

Still Wrong Example in in Document for curry function #285

devjaeyoon opened this issue Apr 1, 2025 · 0 comments

Comments

@devjaeyoon
Copy link

https://lodash.com/docs/4.17.15#curry

var abc = function(a, b, c) {
  return [a, b, c];
};
 
var curried = _.curry(abc);
 
curried(1)(2)(3);
// => [1, 2, 3]
 
curried(1, 2)(3);
// => [1, 2, 3]
 
curried(1, 2, 3);
// => [1, 2, 3]
 
// Curried with placeholders.
curried(1)(_, 3)(2);
// => [1, 3, 2]

Hi, I see the issue in lodash repository, But Still Wrong Output in the document for curry function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant