I have an object set. I want to get the value in position 0 . Example. men is at position zero. i want to access label and innerlabel inside options .
const obj1 = {
men: {
value: "men",
attribute_label: "Men",
type: "select",
options: {
1: { innerlabel: "infant", value_string: "1" },
2: { innerlabel: "baby", value_string: "2" }
}
},
women: {
value: "women",
attribute_label: "Women",
type: "select",
options: {
1: { innerlabel: "infant", value_string: "1" },
2: { innerlabel: "baby", value_string: "2" }
}
},
kids: {
value: "kids",
attribute_label: "Kids",
type: "select",
options: {
7: { innerlabel: "infant", value_string: "1" },
8: { innerlabel: "baby", value_string: "2" }
}
}
};