deoxxa/dotty

deep_keys?

rgarcia opened this issue · 4 comments

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(...)?

Can you explain what this method would do?

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']

👍 thanks!

No problem! Sorry it took so long!