getTextDirection
functionReturns the text direction ('ltr' or 'rtl') of the given string, or null if it contains no strong directional characters.
Returns the text direction ('ltr' or 'rtl') of the given string, or null if it contains no strong directional characters.