Determines the writing system's directionality based on characters tests.
$ component install component/directionality
var dir = ;; // 'right'; // 'left'
The decision is made based on the first character of the input string.
'rtl' for right-to-left text, and
Access the regular expression of ltr charecters.
Access the regular expression of rtl charecters.