On Tue, Apr 24, 2018 at 2:54 PM, somonek <[email protected]> wrote: > ... > > could > myObject[in 0] === 'one' // true
What's the use case? Relying on the order of the properties in the object is almost always a bad idea (although if I read the current spec correctly, `Object.keys` is no longer exempt from order as it once was). The only time I've seen this done that seemed reasonable was when the object was known to have a single own enumerable property but that property's name was unknown (which was, in itself, an X/Y problem -- the real problem was why that name was unknown/varied at runtime). -- T.J. Crowder
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

