For example, [].map was “implemented in JavaScript 1.6.” Is that an ES5 method? How does the 1.6 correlate to an ECMAScript version?
For example, [].map was implemented in JavaScript 1.6. Is that an ES5 method? How
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There aren’t really strict correspondences between the version numbers Mozilla uses and the ECMAScript standard’s version numbers. There’s a table on Wikipedia that might be what you’re looking for — you’ll see that JavaScript 1.6 corresponds to ECMAScript 3 and then some additional extensions.
[].mapspecifically was standardized in ECMAScript 5, but to my understanding, the feature was first introduced by Firefox before the ECMAScript 5 standard was even published. (Firefox 1.5 which included JavaScript 1.6 was released on November 29, 2005, and the standard appears to have been published in September 2009.)