E
E
Evgeniy Kvasyuk2017-03-09 17:10:21
JavaScript
Evgeniy Kvasyuk, 2017-03-09 17:10:21

How to build an infinite category tree?

there is an array of categories objects, where each object contains id and parent_id, how to build a category tree based on this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Falseclock, 2017-03-09
@EvgeniyKvasyuk

Through a recursive function to which to feed the object

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question