Skip to content

Get the value of an Element in an array

i’m trying to get the value of a Object in my array. Basically when i’m doing

var firsts =;

I have something like that

 "EUR_BND": 1.603476

But the name of the object is changing every time, so i can’t do

I wondered if there was a way to directly get the value of the only object, without having to go through its name.


You can use the object.values


Which would return an array of the values in the object

Object.values([0] would return the value if you have one