I noticed that the auto-completion tab in IDE is able to output more fields than a call to eg.:
Specifically, some object-like fields:
The auto-complete is able to show all of these fields from a promise instance:
There isn't a specific function available to JS (it's calling jswrap_object_keys_or_property_names_cb(object, JSWOKPF_INCLUDE_NON_ENUMERABLE|JSWOKPF_INCLUDE_PROTOTYPE|JSWOKPF_NO_INCLUDE_ARRAYBUFFER)
But as I understand it you should be able to use Object.getOwnPropertyNames and then recursing down __proto__ of each object
I did try that recursion, I couldn't seem to get much results.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem