mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Bump to v4.17.0.
This commit is contained in:
4
ary.js
4
ary.js
@@ -1,7 +1,7 @@
|
||||
import createWrap from './_createWrap.js';
|
||||
|
||||
/** Used to compose bitmasks for function metadata. */
|
||||
var ARY_FLAG = 128;
|
||||
var WRAP_ARY_FLAG = 128;
|
||||
|
||||
/**
|
||||
* Creates a function that invokes `func`, with up to `n` arguments,
|
||||
@@ -23,7 +23,7 @@ var ARY_FLAG = 128;
|
||||
function ary(func, n, guard) {
|
||||
n = guard ? undefined : n;
|
||||
n = (func && n == null) ? func.length : n;
|
||||
return createWrap(func, ARY_FLAG, undefined, undefined, undefined, undefined, n);
|
||||
return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);
|
||||
}
|
||||
|
||||
export default ary;
|
||||
|
||||
Reference in New Issue
Block a user