[DOCS-7003] Comment on: "manual/reference/method/cursor.toArray.txt" Created: 20/Jan/16  Updated: 03/Nov/17  Resolved: 14/Mar/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: https://docs.mongodb.org/manual/reference/method/cursor.toArray/#cursor.toArray
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
Referrer: https://docs.mongodb.org/manual/tutorial/iterate-a-cursor/
Screen Resolution: 1366 x 768
repo: docs
source: reference/method/cursor.toArray


Participants:
Days since reply: 7 years, 48 weeks, 3 days ago

 Description   

This page doesn't seem to say anything about the arguments that can be passed to toArray().



 Comments   
Comment by Kay Kim (Inactive) [ 14/Mar/16 ]

The toArray function does not take any arguments:

function (){
    if ( this._arr )
        return this._arr;
 
    var a = [];
    while ( this.hasNext() )
        a.push( this.next() );
    this._arr = a;
    return a;
}

However, the page should be rewritten a bit.

Generated at Thu Feb 08 07:53:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.