Permalink
Browse files

fixing docs for 'all'

  • Loading branch information...
jashkenas committed Apr 24, 2011
1 parent b617615 commit c174663ea3b7d18d9df4f94dfb69eddc35686522
Showing with 3 additions and 5 deletions.
  1. +3 −5 index.html
View
@@ -340,16 +340,14 @@ <h2>Collection Functions (Arrays or Objects)</h2>
</pre>
<p id="all">
- <b class="header">all</b><code>_.all(list, [iterator], [context])</code>
+ <b class="header">all</b><code>_.all(list, iterator, [context])</code>
<span class="alias">Alias: <b>every</b></span>
<br />
Returns <i>true</i> if all of the values in the <b>list</b> pass the <b>iterator</b>
- truth test. If an <b>iterator</b> is not provided, the truthy value of
- the element will be used instead. Delegates to the native method <b>every</b>, if
- present.
+ truth test. Delegates to the native method <b>every</b>, if present.
</p>
<pre>
-_.all([true, 1, null, 'yes']);
+_.all([true, 1, null, 'yes'], _.identity);
=&gt; false
</pre>

0 comments on commit c174663

Please sign in to comment.