[DOCS-918] flesh out cursor.forEach method page Created: 20/Dec/12  Updated: 15/Jan/13  Resolved: 10/Jan/13

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: v1.0

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 11 years, 5 weeks, 5 days ago

 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.


 Comments   
Comment by auto [ 11/Jan/13 ]

Author:

{u'date': u'2013-01-09T23:56:20Z', u'email': u'kay.kim@10gen.com', u'name': u'kay'}

Message: DOCS-918 incorporate jeremy's feedback
Branch: master
https://github.com/mongodb/docs/commit/d4ef057287f9bb2679255f60498849519cf82703

Comment by auto [ 11/Jan/13 ]

Author:

{u'date': u'2013-01-09T00:05:04Z', u'email': u'kay.kim@10gen.com', u'name': u'kay'}

Message: DOCS-918 forEach javascript function information
Branch: master
https://github.com/mongodb/docs/commit/d4d579140ff038e03c49e3a8610506e2ed936932

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