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

flesh out cursor.forEach method page

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • v1.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved:
              11 years, 16 weeks, 4 days ago