On Thu, Nov 3, 2011 at 5:34 AM, RobG <[email protected]> wrote: > > > On Nov 1, 7:06 pm, Anoop <[email protected]> wrote: >> As per the MDN documentation: >> A for...in loop does not iterate over non–enumerable properties. >> Objects created from built–in constructors like Array and Object have >> inherited non–enumerable properties from Object.prototype and >> String.protottype > > Neither Objects (ECMA-262 § 15.2.2.1) or Arrays (ECMA-262 § 15.4.2.1) > inherit from String.prototype. In particular, the internal > [[Prototype]] of Object.prototype is null, so it doesn't inherit from > anything.
Correct. Is that a comment to the quote[1] above? I don't see the connection. /L [1] from https://developer.mozilla.org/en/JavaScript/Reference/Statements/for...in -- 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]
