As I work on creating a JavaScript editor autocomplete feature, my goal is to showcase all available top-level elements. So far, I've experimented with:
Object.keys(window)
as well as
for (k in window)
However, it seems like neither method includes entries such as 'Math' or 'Array'. How can I access all properties from the window object?