Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-918

flesh out cursor.forEach method page

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • v1.0
    • None
    • None
    • None

    Description

      Should mention

      • that the function expects a single argument; although ....
      • forEach function, you can certainly omit the argument, in which case you'll only be able to access it by the special "arguments" variable within a function. You can do arguments[0] to get the first argument, regardless of whether you declared it in the function signature, and you can also access arguments.length for get the number of arguments passed.

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            kay.kim@mongodb.com Kay Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11 years, 5 weeks, 5 days ago