src/client/components/PlainMarkdownInput/slate/transforms.js
function hasMarkOnChar(character, mark) {
  const arrChars = character.marks.toJS();
  const marksSize = arrChars.length;
  for (let i = 0; i < marksSize; i++) {
    if (arrChars[i].type === mark) {
      return true;
    }
  }
  return false;
}
function hasMarkOnChar(character, mark) {
  const arrChars = character.marks.toJS();
  const marksSize = arrChars.length;
  for (let i = 0; i < marksSize; i++) {
    if (arrChars[i].type === mark) {
      return true;
    }
  }
  return false;
}
function hasMarkOnChar ( character , mark ) { const arrChars = character . marks . toJS ( ) ; const marksSize = arrChars . length ; for ( let i = 0 ; i < marksSize ; i ++ ) { if ( arrChars [ i ] . type === mark ) { return true ; } } return false ; }
Has the mark on a char

@param character
@param mark
@returns {boolean}
Has the mark on a char