From 0044ca654d2e039f461f00fc832914b2b081b72b Mon Sep 17 00:00:00 2001 From: Sherbek <91262758+SherbekMavlonov@users.noreply.github.com> Date: Tue, 20 Aug 2024 12:18:46 +0500 Subject: [PATCH] Update wrong example Issue: https://github.com/lodash/lodash/issues/5911 Website: https://lodash.com/docs/4.17.15#curry Before: [1, 3, 2] Now: [1, 2, 3] --- docs/4.17.15.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/4.17.15.html b/docs/4.17.15.html index 2c2a4bbb..1cf54a11 100644 --- a/docs/4.17.15.html +++ b/docs/4.17.15.html @@ -2329,7 +2329,7 @@

Arguments

Returns

(Function): Returns the new curried function.

Example

-
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]
+
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, 2, 3]