Skip to content

treePaths

treePaths(object) → array · Object

Get all paths in a tree structure as an array of path strings.

  • object (required): tree structure
utlx
treePaths({a: {b: 1}, c: 2})             // ["a.b", "c"]

Released under AGPL-3.0.