Skip to content

detectDirection()

function detectDirection(text): BaseDirection | null;

Direction of the first strong character (rules P2 and P3), or null when there is none.

Parameter Type
text string

BaseDirection | null