detectDirection()
function detectDirection(text): BaseDirection | null;Direction of the first strong character (rules P2 and P3), or null when there is none.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
text |
string |
Returns
Section titled “Returns”BaseDirection | null