As an interpreted language JS is great for discovering interfaces as you need them but the gjs-console I have been using is not very featureful. For example it will only print out primitive types and Array objects. If you give it either a plain object or an import object it just prints the type eg
[object object] or
[object GIRepositoryNamespace] Browser consoles will print out a stringified representation (or even an interactive version) so you can see the properties and methods available.
There is also no tab completion either.
Is there currently some other easy way to inspect objects in gjs? Either in the shell or even just to print in a script too. I tried a for loop which doesn’t look like it works.