Skip to content

Convert tree to array #14

@tonytcb

Description

@tonytcb

How convert a tree to array?

It's possible with this module?

Getting something like this (using the same tree example of the module):

var arrayNames = [
    'michael' = [
        'meredith' = [
            'kelly' = [],
            'creed' = []
        ],
        'jim' = [
            'phyllis' = [],
            'stanley' = [],
            'dwight' = []
        ],
        'angela' = [
            'oscar' = []
        ]
    ]
];

Thanks anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions