Output all properties of object #1684
Unanswered
espruino-discuss
asked this question in
JavaScript
Replies: 2 comments
-
Posted at 2024-01-24 by @gfwilliams There isn't a specific function available to JS (it's calling But as I understand it you should be able to use |
Beta Was this translation helpful? Give feedback.
0 replies
-
Posted at 2024-01-24 by d3nd3-o0 I did try that recursion, I couldn't seem to get much results. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Posted at 2024-01-23 by d3nd3-o0
I noticed that the auto-completion tab in IDE is able to output more fields than a call to eg.:
Object.getOwnPropertyNames(Bangle)
Object.getOwnPropertyNames(Bangle.__proto__)
Specifically, some object-like fields:
Bangle.on
Bangle.removeListener
etcSimilarly for a Promise object, I do not see the
.then
function as child object. How can I get full listing via javascript?The auto-complete is able to show all of these fields from a promise instance:
How do I get these items into a javascript list?
Beta Was this translation helpful? Give feedback.
All reactions