From 7691177374b6a0abf5cf6f6efd0933ce92d6bd69 Mon Sep 17 00:00:00 2001 From: tjcrowder Date: Mon, 7 Sep 2009 16:46:27 +0100 Subject: [PATCH] doc: merged old docs for Enumerable#toArray --- src/lang/enumerable.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lang/enumerable.js b/src/lang/enumerable.js index f171056..425b8da 100644 --- a/src/lang/enumerable.js +++ b/src/lang/enumerable.js @@ -677,7 +677,12 @@ var Enumerable = (function() { /** * Enumerable#toArray() -> Array * - * Returns an Array representation of the enumeration. + * Returns an Array containing the elements of the Enumeration. + * + * ### Example + * + * $R(1, 5).toArray() + * // -> [1, 2, 3, 4, 5] **/ function toArray() { return this.map();