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
/
regular-object.js
21 lines
(19 loc)
•
234 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
var
data
=
{
foo:
{
bar:
{
baz:
{
target:
"target string"
} } },
biz:
{
boz:
{
bizzy:
{
target:
1
} } } }
;
if
(typeof
exports
===
'object'
)
{
module.exports
=
data;
}