Closed Nokel81 closed 6 years ago
Hey @Nokel81 - I LOVE the idea of the suggested functionality.
That being said, it is not a feature that keeps with the spirit of the original design of selectn
. If you (or anyone else reading this) know of or decide to create such a lib, feel free to link it here as I could imagine use cases for such a tool.
❤️
Here you are: https://www.npmjs.com/package/dotfind
If you think anything should be added just open an issue on github
I created it because I had looked through libs and could not find one that did this
Since you thought that this would be useful would you mind adding it to the list of related packages?
What would be really nice is if the follow could be done:
With
tryEverything
enabled (or something similar) then it would so a sort of "smart" search through the object, greedily trying to find the path to the object. Namely,a
is not found so it then triesa.b
which is finds and then goes onto findc
. Would this be something that this library might want to support?