I have an array like that:
    [{
        id: 1,
        name: 'Proposal'
    },
    {
        id: 2,
        name: 'Contract',
        children: [
            {
                name: 'Approval',
                component: '/approval'
            },
            {
                name: 'Cancellation',
                component: '/cancellation'
            }
        ]
    }]
and another like that:
    [{
        id: 1,
        name: 'Proposal'
    },
    {
        id: 2,
        name: 'Contract',
        children: [
            {
                name: 'Approval',
                component: '/approval'
            }
        ]
    }, 
    {
        id: 3,
        name: 'Example'
    }]
My question is how is the best way to filter arrays, and remove one if have duplicated or more, even in array of children. Or the best, is like arrays merge!
