Fix coercing arity in baseCurry.

This commit is contained in:
John-David Dalton
2014-08-02 22:08:17 -07:00
parent ea219f683e
commit c3cd94b695
2 changed files with 17 additions and 2 deletions

View File

@@ -1624,7 +1624,7 @@
*/
function baseCurry(func, bitmask, arity) {
if (typeof arity != 'number') {
arity = +arity || (func ? func.length : 0);
arity = arity == null ? (func ? func.length : 0) : (+arity || 0);
}
return createWrapper([func, bitmask, arity]);
}