is-rtl-text Library Example

A small JavaScript utility used to detect whether your text belongs to a Right To Left language.

isRtlText('Hello World');

Return: False

isRTL('رحبا بالعالم');

Return: True