a8m / a8m/deep-keys

Add Support for arrays

Aperta
#6 1 commento 4 reazioni 0 assegnatari Vedi su GitHub
help wanted
Lingua principale
JavaScript
Stelle
22
Fork
7
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

If you have an array of objects nested, I think it should still include these.

```
var testObj = {
level1: {
prop1_1: "abc",
level2: {
prop2_1: "abc",
level3: {
prop3_1: "abc",
array3_2: [ {
prop3_2_1: "abc",
}],
}
}
}
}

var deepKeys = require('deep-keys');

console.log( deepKeys(testObj).join("\n") );
```
### Output
```
level1.prop1_1
level1.level2.prop2_1
level1.level2.level3.prop3_1
level1.level2.level3.array3_2
```
### Expected Output
```
level1.prop1_1
level1.level2.prop2_1
level1.level2.level3.prop3_1
level1.level2.level3.array3_2.0.props3_2_1
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.