> Well, you could always just use Array.prototype.
I'm sorry, I have formulated my question incorrectly. The question
should rather be: How do I modify Array.prototype.b.c() in the code
below so that "this" would return ['one', 'two', 'three']:
var myArray = ['one', 'two', 'three'];
Array.prototype.b = {};
Array.prototype.b.c = function() {
console.log(this);
}
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]