async.waterfall([1,2,3,4].map(function (arrayItem) {
return function (lastItemResult, nextCallback) {
// same execution for each item in the array
var itemResult = (arrayItem+lastItemResult);
// results carried along from each to the next
nextCallback(null, itemResult);
}}), function (err, result) {
// final callback
});
だから私は非同期に慣れていないので、簡単な例を試してみましたが、このエラーが発生しました。このメソッドの何が問題になっています TypeError: nextCallback is not a function
上記のコードの何が問題になっていますか?