documentcloud / underscore-contrib

The brass buckles on Underscore's utility belt
MIT License
621 stars 117 forks source link

Expose JS path string -> path array function #178

Closed joshuacc closed 9 years ago

joshuacc commented 10 years ago

@megawac @AlphaGit I think exposing the parsing function from #175 is a good idea. Suggestions on naming?

AlphaGit commented 10 years ago

Just to make it explicit: the function takes a JavaScript notation path and outputs an array with the list of accessors (properties?) to access in each level.

I like over-specific names but I think that's against the normal naming of the library, on which functions are usually called 1 or 2-word name functions.

That being said, how about the following?

megawac commented 10 years ago

:+1: keysFromPath