mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Bump to v4.17.0.
This commit is contained in:
4
curry.js
4
curry.js
@@ -1,7 +1,7 @@
|
||||
import createWrap from './_createWrap.js';
|
||||
|
||||
/** Used to compose bitmasks for function metadata. */
|
||||
var CURRY_FLAG = 8;
|
||||
var WRAP_CURRY_FLAG = 8;
|
||||
|
||||
/**
|
||||
* Creates a function that accepts arguments of `func` and either invokes
|
||||
@@ -46,7 +46,7 @@ var CURRY_FLAG = 8;
|
||||
*/
|
||||
function curry(func, arity, guard) {
|
||||
arity = guard ? undefined : arity;
|
||||
var result = createWrap(func, CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
|
||||
var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
|
||||
result.placeholder = curry.placeholder;
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user