From af4b86e0a6c4504bb8f402872498b99400fcf481 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Fri, 3 Feb 2012 10:18:44 -0500 Subject: [PATCH] making toArray example clearer. --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 181e10983..9c10bc272 100644 --- a/index.html +++ b/index.html @@ -579,8 +579,8 @@ _.shuffle([1, 2, 3, 4, 5, 6]); real Array. Useful for transmuting the arguments object.

-(function(){ return _.toArray(arguments).slice(0); })(1, 2, 3);
-=> [1, 2, 3]
+(function(){ return _.toArray(arguments).slice(1); })(1, 2, 3, 4);
+=> [2, 3, 4]