74
rated 0 times
[
77]
[
3]
/ answers: 1 / hits: 25655
/ 10 Years ago, wed, august 20, 2014, 12:00:00
I have a javascript object width depth.
I need to know the exact path from this key within the object ex: obj1.obj2.data1
I already know the key is data1, the value is 123.
My javascript object look like this
{
obj1: {
obj2: {
data1: 213,
data2: 1231,
obj3: {
data: milf
}
}
},
obj4: {
description: toto
}
}
How could I achieve that ?
here is a jsfiddle : http://jsfiddle.net/3hvav8xf/8/
I am trying to implement getPath.
More From » object