umd/fieldstack.js
/**
 * Returns the direction of a block of text, based on the direction of its
 * first strong character (has Bidi_Class value of L, R, or AL).
 *
 * @param str  A text block; e.g. paragraph, table cell, tag
 * @return     The resolved direction
 */
Returns the direction of a block of text, based on the direction of its
first strong character (has Bidi_Class value of L, R, or AL).

@param str  A text block; e.g. paragraph, table cell, tag
@return     The resolved direction
Returns the direction of a block of text based on the direction of its first strong character ( has Bidi_Class value of L R or AL ) . @param str A text block ; e . g . paragraph table cell tag @return The resolved direction
function firstStrongCharDir(str) {
  var strongChar = firstStrongChar(str);
  if (strongChar == null) {
    return UnicodeBidiDirection_1.NEUTRAL;
  }
  return REGEX_RTL.exec(strongChar) ? UnicodeBidiDirection_1.RTL : UnicodeBidiDirection_1.LTR;
}
function firstStrongCharDir ( str ) { var strongChar = firstStrongChar ( str ) ; if ( strongChar == null ) { return UnicodeBidiDirection_1 . NEUTRAL ; } return REGEX_RTL . exec ( strongChar ) ? UnicodeBidiDirection_1 . RTL : UnicodeBidiDirection_1 . LTR ; }
Returns the direction of a block of text, based on the direction of its
 first strong character (has Bidi_Class value of L, R, or AL).
Returns the direction of a block of text based on the direction of its first strong character ( has Bidi_Class value of L R or AL ) .