src/client/components/PlainMarkdownInput/slate/tokenizer.js
function getTokensLength(tokens) {
  if (typeof tokens === 'string') {
    return tokens.length;
  }
  return tokens.reduce((acc, token) => {
    return acc + (token.length ? token.length : 0);
  }, 0);
}
function getTokensLength(tokens) {
  if (typeof tokens === 'string') {
    return tokens.length;
  }
  return tokens.reduce((acc, token) => {
    return acc + (token.length ? token.length : 0);
  }, 0);
}
function getTokensLength ( tokens ) { if ( typeof tokens === 'string' ) { return tokens . length ; } return tokens . reduce ( ( acc , token ) => { return acc + ( token . length ? token . length : 0 ) ; } , 0 ) ; }
getTokensLength - Function calculate tokens' length

@param tokens
@returns {Number}
getTokensLength - Function calculate tokens length