mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Bump to v4.17.0.
This commit is contained in:
4
ary.js
4
ary.js
@@ -4,7 +4,7 @@ define(['./_createWrap'], function(createWrap) {
|
||||
var undefined;
|
||||
|
||||
/** 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,
|
||||
@@ -26,7 +26,7 @@ define(['./_createWrap'], function(createWrap) {
|
||||
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);
|
||||
}
|
||||
|
||||
return ary;
|
||||
|
||||
Reference in New Issue
Block a user