Skip to content

Instantly share code, notes, and snippets.

@an9eldust
Created December 25, 2014 18:00
Show Gist options
  • Save an9eldust/69b8b6096c5ca3f301f0 to your computer and use it in GitHub Desktop.
Save an9eldust/69b8b6096c5ca3f301f0 to your computer and use it in GitHub Desktop.
[
{
id: {Number},
parentId: {Number|null}
},
...
]
=>
{
id: {Number},
children: [
{
id: {Number},
children: [... ]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment