Dumb _.curry down for consistent feature support for old environments.

This commit is contained in:
John-David Dalton
2014-01-21 22:25:08 -08:00
parent 38bb975abd
commit e51aa5899a

View File

@@ -4715,7 +4715,7 @@
*/
function curry(func, arity) {
if (typeof arity != 'number') {
arity = +arity || null;
arity = +arity || (func ? func.length : 0);
}
return createWrapper(func, CURRY_FLAG, arity);
}