Closed florian-h05 closed 2 years ago
Thanks, out of curiosity whats the benefit of listing getOwnPropertyNames and getAllPropertyNames since the later seems to be a super set ?
Thanks, out of curiosity whats the benefit of listing getOwnPropertyNames and getAllPropertyNames since the later seems to be a super set ?
Yes, it's a superset of course, but I thing it is anyway practical too also have only the own property names, because usually I only want to see the own poperty names. E.g. a function in my rule dynamically adds properties to an object and I want to have a quick look on what has been added.
Utils: Fix property names getters of dumpObject()
Description
Fixes #104 and adds a getter for the object's own enumerable property names.
Signed-off-by: Florian Hotze florianh_dev@icloud.com
Testing
I have used the following UI-script for testing:
This logs: