Re: Array property of custom object
Mihai Dobrescu <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.jseng |
|---|---|
| Message-ID | <[email protected]> |
On Tuesday, May 3, 2016 at 8:05:54 PM UTC+3, Boris Zbarsky wrote: > On 5/3/16 12:45 PM, Mihai Dobrescu wrote: > > Isn't there a generic trap for that in order to know the current item accessed? > > Proxies have getOwnPropertyDescriptor, yes. But to even get to that > point you have to have some other bits in place if you're doing for-in > or for-of. Again, a proxy can do all the relevant bits. > > -Boris Is there some example or guidance on how to do it?