From c174663ea3b7d18d9df4f94dfb69eddc35686522 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Sun, 24 Apr 2011 11:41:31 -0400 Subject: [PATCH] fixing docs for 'all' --- index.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 04c878ad0..685706fee 100644 --- a/index.html +++ b/index.html @@ -340,16 +340,14 @@ var odds = _.reject([1, 2, 3, 4, 5, 6], function(num){ return num % 2 == 0; });

- all_.all(list, [iterator], [context]) + all_.all(list, iterator, [context]) Alias: every
Returns true if all of the values in the list pass the iterator - truth test. If an iterator is not provided, the truthy value of - the element will be used instead. Delegates to the native method every, if - present. + truth test. Delegates to the native method every, if present.

-_.all([true, 1, null, 'yes']);
+_.all([true, 1, null, 'yes'], _.identity);
 => false