diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -36,7 +36,7 @@ async.map(['file1','file2','file3'], fs.stat, function(err, results){ async.filter(['file1','file2','file3'], function(filePath, callback) { fs.access(filePath, function(err) { - callback(!err) + callback(null, !err) }); }, function(results){ // results now equals an array of the existing files @@ -417,7 +417,7 @@ __Example__ ```js async.filter(['file1','file2','file3'], function(filePath, callback) { fs.access(filePath, function(err) { - callback(!err) + callback(null, !err) }); }, function(results){ // results now equals an array of the existing files |