Friday, May 17, 2024
141
rated 0 times [  142] [ 1]  / answers: 1 / hits: 34875  / 13 Years ago, thu, september 8, 2011, 12:00:00

When doing this:



var a = new Array(a, b);
a.map(function() { });


in IE8 I get:



Object doesn't support this property or method


Is this method not supported in IE8, or do I have some other problem? I've had a Google, but get lots of Google Maps javascript issues/questions...



Edit: OK so IE8 and below DO NOT support the .map() function. Copy-paste the code from MDN here which will add the .map() function to the Array prototype exactly per the specs if not natively supported (and it seems to work perfectly).


More From » internet-explorer-8

 Answers
8

IE8 doesn't support map(). When in doubt, check MDN (Mozilla Developer Network):



map - MDN



Looks like IE added support for map() in version 9.


[#90201] Wednesday, September 7, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
anais

Total Points: 672
Total Questions: 118
Total Answers: 121

Location: Oman
Member since Fri, Dec 23, 2022
1 Year ago
;