From 8e7b33cd590c2ef28a43c11e4ed04cbdf1b78fe2 Mon Sep 17 00:00:00 2001 From: kay Date: Wed, 16 Jan 2013 17:19:40 -0500 Subject: [PATCH] remove the general javascript variable arguments per scott's comment --- source/reference/method/cursor.forEach.txt | 25 +--------------------- 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/source/reference/method/cursor.forEach.txt b/source/reference/method/cursor.forEach.txt index 8d64368c61b..0b561601624 100644 --- a/source/reference/method/cursor.forEach.txt +++ b/source/reference/method/cursor.forEach.txt @@ -16,30 +16,7 @@ cursor.forEach() JavaScript function to apply to each document from the cursor. The ```` signature includes a single argument - that is passed the current document to process, as in the - following prototype: - - .. code-block:: javascript - - function(doc) { - ... - } - - However, if the signature is missing the argument, you can - access the document using the reserved - ``arguments`` [#arguments]_ variable within the function, - specifically ``arguments[0]``, as in the following prototype: - - .. code-block:: javascript - - function() { - doc = arguments[0]; - ... - } - - .. [#arguments] The ``arguments`` variable is an array - and thus, you can access ``arguments.length`` attribute to - determine the number of arguments. + that is passed the current document to process. The following example invokes the :method:`~cursor.forEach()` method on the cursor returned by :method:`~db.collection.find()` to print