mavoweb / treecle

WIP. A toolbox for hierarchical JS objects.
https://treecle.mavo.io
MIT License
6 stars 0 forks source link

Paths as arrays #6

Closed adamjanicki2 closed 6 months ago

adamjanicki2 commented 6 months ago

I think it would be a good idea to convert our notion of paths to arrays. Currently, we implement an object containing a property and index, however, it would be a good idea to convert our codebase to using arrays, as this would support a more general use case of arbitrary long paths. For example, we might want to implement a general path function, which finds a path of arbitrary length, in which case, we would need an array.