mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Allow _.compose to be called without arguments. [closes #352]
This commit is contained in:
@@ -4649,7 +4649,12 @@
|
||||
_.forEach(falsey, function(value, index) {
|
||||
var pass = false;
|
||||
try {
|
||||
index ? func(value) : func();
|
||||
if (index) {
|
||||
func(value);
|
||||
} else {
|
||||
func();
|
||||
pass = methodName == 'compose';
|
||||
}
|
||||
} catch(e) {
|
||||
pass = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user