0
I have a "queue" like this:
const input = [
1,
2,
[31, 32, 33],
4,
[51, [521, [5221, 5222, 5223], 523], 53],
6,
[
71,
[721, [7221, [72221, [722221, 722222, 722223], 72223], 7223], 723],
73,
],
8,
9,
];
It's an arbitrarily deeply nested array.
Every alternating "d...