I have an array of objects like this:
[{
name: "Peter",
childs: [{
name: "John",
childs: [{
name: "Joseph",
childs: []
}]
}]
},
{
name: "Carl",
childs: [{
name: "Sam",
childs: []
}]
}]
Where each person can have children and each of these children can have any number of children and so on. Does anyone know a good way to perform this on underscore.js?