reorderSegments()
function reorderSegments<T>(segments): T[];Reorders logical segments of uniform level into visual (left-to-right) order (rule L2). The content of odd-level segments still has to be reversed by the caller.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends object |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
segments |
readonly T[] |
Returns
Section titled “Returns”T[]