fix #1 check for null / undefined result

This commit is contained in:
AJ ONeal 2015-01-07 00:53:34 -07:00
parent 7218a53487
commit f761f9215c
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@
ret = result = fn(item, k, arr);
}
if (!ret.then) {
if (!ret || !ret.then) {
ret = PromiseA.resolve(result);
}