Extra parameter passed to Map forEach example

RESOLVED FIXED

Status

Developer Documentation
JavaScript
P5
normal
RESOLVED FIXED
a year ago
a year ago

People

(Reporter: ajoshi, Unassigned)

Tracking

Details

(URL)

(Reporter)

Description

a year ago
:: 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
Last Resolved: a year 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.