Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Typo. --a should be --l

  • Loading branch information...
commit 4ed0d790870b949cbef7971551df1bd15825ca16 1 parent ac1872f
@isaacs isaacs authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 articles/flow-control-in-npm/async-map.js
View
4 articles/flow-control-in-npm/async-map.js
@@ -9,9 +9,7 @@ function asyncMap (list, fn, cb_) {
if (errState) return
if (arguments.length > 1) data = data.concat(d)
if (er) return cb_(errState = er, data)
- else if (-- a === 0) cb_(errState, data)
+ else if (-- l === 0) cb_(errState, data)
}
- // expect the supplied cb function to be called
- // "n" times for each thing in the array.
list.forEach(function (ar) { fn(ar, cb) })
}
Please sign in to comment.
Something went wrong with that request. Please try again.