mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Update doc examples to ES2015.
This commit is contained in:
4
curry.js
4
curry.js
@@ -23,11 +23,11 @@ const WRAP_CURRY_FLAG = 8;
|
||||
* @returns {Function} Returns the new curried function.
|
||||
* @example
|
||||
*
|
||||
* var abc = function(a, b, c) {
|
||||
* const abc = function(a, b, c) {
|
||||
* return [a, b, c];
|
||||
* };
|
||||
*
|
||||
* var curried = curry(abc);
|
||||
* const curried = curry(abc);
|
||||
*
|
||||
* curried(1)(2)(3);
|
||||
* // => [1, 2, 3]
|
||||
|
||||
Reference in New Issue
Block a user