I have a dynamic object which will add new object and update existing array. I need to check below question
- wheather array has another array?
- how to get data from array of array ?
below is the array object
[
"Stories",
"Tasks",
"In Progress",
"In Review",
"Completed",
[
{
"divName": "content-container2",
"content": "us 2345",
"topPos": 109,
"leftPos": 150
},
{
"divName": "content-container3",
"content": "Description",
"topPos": 98,
"leftPos": 382
},
{
"divName": "content-container4",
"content": "12212",
"topPos": 110,
"leftPos": 644
}
]
]
Object.prototype.toString.call(obj) == '[object Array]'
. Maybe that's a start to working out if a member is an array or not?