Tests if the document is in RTL mode.

Since
  • 1.0.0
Returns:

Whether the document is in RTL mode.

Type: 
boolean
Example
import { isRtl } from "@gravityforms/utils";

function Example() {
  if ( isRtl() ) {
      // do something
  }
}