From d1fd53116dfd55d236ac7a305f0dc915d8cda145 Mon Sep 17 00:00:00 2001 From: David Beck Date: Wed, 14 Aug 2013 12:04:20 -0700 Subject: Clarify that `some` and `every` run iterators in parallel in readme --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c6130ff..cc19c6e 100644 --- a/README.md +++ b/README.md @@ -543,9 +543,9 @@ call returns `true`, the main `callback` is immediately called. __Arguments__ * `arr` - An array to iterate over. -* `iterator(item, callback)` - A truth test to apply to each item in `arr`. - The iterator is passed a `callback(truthValue)` which must be called with a - boolean argument once it has completed. +* `iterator(item, callback)` - A truth test to apply to each item in the array + in parallel. The iterator is passed a callback(truthValue) which must be + called with a boolean argument once it has completed. * `callback(result)` - A callback which is called as soon as any iterator returns `true`, or after all the iterator functions have finished. Result will be either `true` or `false` depending on the values of the async tests. @@ -573,9 +573,9 @@ way node libraries work with truth tests like `fs.exists`. __Arguments__ * `arr` - An array to iterate over. -* `iterator(item, callback)` - A truth test to apply to each item in `arr`. - The `iterator` is passed a `callback(truthValue)` which must be called with a - boolean argument once it has completed. +* `iterator(item, callback)` - A truth test to apply to each item in the array + in parallel. The iterator is passed a callback(truthValue) which must be + called with a boolean argument once it has completed. * `callback(result)` - A callback which is called after all the `iterator` functions have finished. Result will be either `true` or `false` depending on the values of the async tests. -- cgit v1.2.1