function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Leonardi KohLeonardi Koh 

Accessing Proxy Handler target in javascript

As the title suggested, I am attempting to access the Proxy Handler target content in javascript running on an Aura component , so I had a line similar to
var theElements = document.getElementsByClassName('slds-text-heading_small');

in my Aura component, and when rendered predictably enough this shows a Proxy object with Handler, etc... typical of what one expect.

(the result looks like this:)
User-added image

so I can see it right there in the console, and in the example above i can see the innerText, outerText value etc...

So the question is what is the correct way to read these values in javascript?

For example, if i want to read the value of this Proxy -> Handler -> target -> 0 (1st element of this HTMLCollection) -> innerText

then what is the correct way to do it in javascript?