1

I have an interesting one. I am trying to reverse engineer qml (qnx) code, already figured out things I needed, but out kf interest I wanted to check what properties and methods object have, but struggling to console log anything about it.

Things I've tried: JSON.stringify // {} typeof //object I am using properties from this object just fine (the ones I know about)

Is there any way to list all properties and methods even if they are not enumerable?

uneasy
  • 547
  • 1
  • 7
  • 17
  • 1
    What about [`Object.getOwnPropertyNames`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames)? It seems to return an array of property names, showing some even when the property has been defined with `enumerable: false` - _"the method returns an array of all properties (including non-enumerable properties except for those which use Symbol) found directly in a given object."_ – evolutionxbox Aug 22 '22 at 22:43
  • Interesting, I will have a good with that – uneasy Aug 22 '22 at 22:53

0 Answers0