Description
Flattens an array.
Syntax
flatten array
Parameters:
Returns: Array of Anything - flattened array
Examples
Example 1
flatten [1, [2], [[3]], [[[4]]]]; // returns [1, 2, 3, 4]
Example 2
flatten getUnitLoadout player;
Results appear below as you type; use the arrow keys to move through them.