How to traverse through javascript object

One of my function returns value and that value contains three objects how to split these object and assign the object value to Array…

Below is how my object looks

you already have the three objects in an array. if you want to have the value property instead of the object, use Array.map().

@Dormilich…i need to break single array into 3 individual array and later traverse thru the value in each array…

what is the result array supposed to look like?

this must be my resultant array…
arr1 = object1;
arr2 = object2;
arr3 = object3;

and what is object1? you already have an array of three objects …

@Dormilich… Object1 is my first object in the array and object2 is second object and object3 is my third…

Object1 one contains some values…and u can see thise values in the screenshot ive shared…

if what you showed there is what you want, then there is no need to do anything. There is no point in putting these objects into separate variables.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.