Allow _.compose to be called without arguments. [closes #352]

This commit is contained in:
John-David Dalton
2013-09-17 19:39:07 -07:00
parent 0414bae820
commit d6aed16e7c
8 changed files with 13 additions and 8 deletions

View File

@@ -3636,7 +3636,7 @@
*/
function compose() {
var funcs = arguments,
length = funcs.length || 1;
length = funcs.length;
while (length--) {
if (!isFunction(funcs[length])) {