104. Traverse DOM level by level
Share
medium - accepted / - tried
Given a DOM tree, flatten it into an one dimensional array, in the order of layer by layer, like below.
Related Lists
Tree / DOM Treemedium - accepted / - tried
Given a DOM tree, flatten it into an one dimensional array, in the order of layer by layer, like below.
Related Lists
Tree / DOM Tree