Closed Bug 1305972 Opened 8 years ago Closed 8 years ago

Extra parameter passed to Map forEach example

Categories

(Developer Documentation Graveyard :: JavaScript, defect, P5)

All
Other
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ajoshi, Unassigned)

References

()

Details

:: Developer Documentation Request

      Request Type: Correction
     Gecko Version: unspecified
 Technical Contact: 

:: Details

In the following example myMap need not be passed to the forEach function

myMap.forEach(function(value, key) {
  console.log(key + " = " + value);
}, myMap)
// Will show 2 logs; first with "0 = zero" and second with "1 = one"
Fixed. Ni/ Florian for review: it may have been a reason why it has been added.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(fscholz)
Resolution: --- → FIXED
Nope, I removed it. Thanks for filing this bug.
Component: General → JavaScript
Flags: needinfo?(fscholz)
You need to log in before you can comment on or make changes to this bug.