fn getAllChildren ArrayOrObject=( ary = #() typ = classOf ArrayOrObject if typ == Array then ary = ArrayOrObject else if typ != UndefinedClass do append ary ArrayOrObject for obj in ary do ( childs = obj.children if childs.count != 0 do join ary childs ) return ary )