MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

Compare Revisions

Array.prototype.map()

Change Revisions

Revision 481043:

Revision 481043 by itmitica on

Revision 496067:

Revision 496067 by patrickdw on

Title:
Array.prototype.map()
Array.prototype.map()
Slug:
Web/JavaScript/Reference/Global_Objects/Array/map
Web/JavaScript/Reference/Global_Objects/Array/map
Tags:
"ECMAScript5", "Array", "JavaScript", "Array methods", "JavaScript 1.6"
"ECMAScript5", "Array", "JavaScript", "Array methods", "JavaScript 1.6"
Content:

Revision 481043
Revision 496067
n164// Test enhancement propositionn
165// When testing for new native methods, like Array.prototype.map,
166// maybe an extensive test should replace the simple if (!Arrray.
>prototype.map). 
167// Maybe include [native code] string existence test?
168 
169// console.log(Array.prototype.map.toString());
170// > function map() {
171// >   [native code]
172// > }
173 
174// Otherwise
175// Array.prototype.map = "map";
176// tests true but not for behavior
177 
t203    if (thisArg) {t189    if (arguments.length > 1) {

Back to History