Closed Bug 1447921 Opened 6 years ago Closed 4 years ago

Indexed collections Array class doesn't have static method forEach. prototype does

Categories

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

All
Other
enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: 2224362775, Assigned: fs)

References

()

Details

:: Developer Documentation Request

      Request Type: Correction
     Gecko Version: unspecified
 Technical Contact: 

:: Details

Array.forEach("a string", function(chr) {
  console.log(chr);
});
can't run well
Array.prototype.forEach.call("a string", function(chr) {
  console.log(chr);
});
is right
Assignee: nobody → fscholz
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P5
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.