Sobes.tech
Intern — Middle

Extracting leaf node values from a tree

livecode

Task condition

Formulate a function that takes a tree structure as input and returns an array with the values of all leaf nodes.