The getTextInfo()
method of Intl.Locale
instances returns the ordering of characters indicated by either ltr
(left-to-right) or by rtl
(right-to-left) for this locale.
Note: In some versions of some browsers, this method was implemented as an accessor property called textInfo
. However, because it returns a new object on each access, it is now implemented as a method to prevent the situation of locale.textInfo === locale.textInfo
returning false
. Check the browser compatibility table for details.