deep_keys?
rgarcia opened this issue · 4 comments
rgarcia commented
We often find ourselves using dotty in conjunction with a home-rolled deep_keys function. We've come to think that it should be part of dotty. @deoxxa would you be open to a pull request for dotty.deep_keys(...)
?
deoxxa commented
Can you explain what this method would do?
rgarcia commented
sorry, it would extract a list of keys in dot notation, e.g. dotty.deep_keys({ 'a': { 'b': 1, 'c': 1} })
would return ['a.b','a.c']
rgarcia commented
👍 thanks!
deoxxa commented
No problem! Sorry it took so long!