mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Dumb _.curry down for consistent feature support for old environments.
This commit is contained in:
@@ -4715,7 +4715,7 @@
|
|||||||
*/
|
*/
|
||||||
function curry(func, arity) {
|
function curry(func, arity) {
|
||||||
if (typeof arity != 'number') {
|
if (typeof arity != 'number') {
|
||||||
arity = +arity || null;
|
arity = +arity || (func ? func.length : 0);
|
||||||
}
|
}
|
||||||
return createWrapper(func, CURRY_FLAG, arity);
|
return createWrapper(func, CURRY_FLAG, arity);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user