Open Bug 1447921 Opened 2 years ago Updated 2 years ago

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

Categories

(Developer Documentation :: JavaScript, enhancement, P5)

All
Other
enhancement

Tracking

(Not tracked)

People

(Reporter: 2224362775, Assigned: fscholz)

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
You need to log in before you can comment on or make changes to this bug.