From e51aa5899ae6df4e6b6ffa85d9815fbf32fdccbb Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 21 Jan 2014 22:25:08 -0800 Subject: [PATCH] Dumb `_.curry` down for consistent feature support for old environments. --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index dbc388320..d7c9ae671 100644 --- a/lodash.js +++ b/lodash.js @@ -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); }