I have an object looking like this :
{
Item 1 : {'Item1a', 'Item1b', 'Item1c'},
Item 2 : {'Item2a', 'Item2b', 'Item2c'},
Item 3 : {'Item3a', 'Item3b', 'Item3c'}
}
I want to know the index of Item2 for instance.
I tried myobject.indexOf('Item 2');
But the console tells me : indexOf() is not a function. Do you ave an idea ?