index.js
function isValidES2015VarName(name) {
  // In ES2015-compatible code, these are reserved words.
  if (name === 'await') { return false; }
  if (name === 'enum') { return false; }

  return validateVarName(allowedCharactersES2015, name, exports.strict);
}
function isValidES2015VarName(name) {
  // In ES2015-compatible code, these are reserved words.
  if (name === 'await') { return false; }
  if (name === 'enum') { return false; }

  return validateVarName(allowedCharactersES2015, name, exports.strict);
}
function isValidES2015VarName ( name ) { // In ES2015-compatible code, these are reserved words. if ( name === 'await' ) { return false ; } if ( name === 'enum' ) { return false ; } return validateVarName ( allowedCharactersES2015 , name , exports . strict ) ; }
Determines whether a variable name is valid.  Specifically, checks
whether the characters are valid and whether the name is a reserved word.
Note that while literals can be used as unquoted property names, these
will not necessarily be accepted as valid by this function.

@param name The variable name to check.
@return true if the name is valid, or false if it is not.
@public
Determines whether a variable name is valid . Specifically checks whether the characters are valid and whether the name is a reserved word . Note that while literals can be used as unquoted property names these will not necessarily be accepted as valid by this function .