UNPKG
deep-pluck
Version:
latest (0.1.2)
0.1.2
0.1.1
0.1.0
Recursively grab the values of all keys within a deeply nested object
deep-pluck
/
test
/
fixtures
/
multiple-levels.json
18 lines
(17 loc)
•
236 B
JSON
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
"foo"
:
[
{
"bar"
:
{
"baz"
:
{
"target"
:
{
"wow"
:
"I cant believe it works"
}
}
}
}
]
,
"bar"
:
{
"target"
:
"target2"
}
,
"target"
:
"just a normal string"
}