doc: merged old docs for Enumerable#toArray

This commit is contained in:
tjcrowder 2009-09-07 16:46:27 +01:00 committed by Tobie Langel
parent 6a702b420c
commit 7691177374
1 changed files with 6 additions and 1 deletions

View File

@ -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();