0
I have an object that returns array and object at the same time Example:
I was able to retrieve the object by calling straight
var obj = { name: obj.name, month: obj.month, year: obj.year }
You can sort this array to first bring the object before the array ?
Example :
objeto,
[0] objeto,
[1] objeto,
[2] objeto
Note that in the image it retrieves the object last
Your question seems too vast How To Ask try edit your question, putting the code can help to find the problem
– Amadeu Antunes
This object is strange... what gives
console.log(JSON.stringify(obj));
?– Sergio
This looks like an array in which you also created keys like the
name
andyear
and so it gets complicated. How this information is built ?– Isac