There is data stored in a variable that is displayed in the Chrome console like this:
0:
@attributes:
actPer: "1",
id: "19"
1:
@attributes:
actPer: "1"
id: "17"
etc
To filter this data, the following code was used:
myvar = this.obj.listResponse.instance;
Everything is fine until this point.
Now, the goal is to only retrieve the first item and extract the id value from that item.
How can this be achieved?