src/template/compiler/languages/mustache.js
function atDelim(str, position, delim) {
  if (str.charAt(position) !== delim.charAt(0)) {
    return false;
  }
  for (let i = 1, l = delim.length; i < l; i++) {
    if (str.charAt(position + i) !== delim.charAt(i)) {
      return false;
    }
  }

  return true;
}
function atDelim(str, position, delim) {
  if (str.charAt(position) !== delim.charAt(0)) {
    return false;
  }
  for (let i = 1, l = delim.length; i < l; i++) {
    if (str.charAt(position + i) !== delim.charAt(i)) {
      return false;
    }
  }

  return true;
}
function atDelim ( str , position , delim ) { if ( str . charAt ( position ) !== delim . charAt ( 0 ) ) { return false ; } for ( let i = 1 , l = delim . length ; i < l ; i ++ ) { if ( str . charAt ( position + i ) !== delim . charAt ( i ) ) { return false ; } } return true ; }
Checks if the string has a delimiter at the given position
@param  {String} str      String to check
@param  {Number} position Position to start at
@param  {String} delim    Delimiter to check for
@return {Boolean}
Checks if the string has a delimiter at the given position