lib/utils/indent-common.js
function isTrivialToken (token) {
  return token != null && (
    (token.type === 'Punctuator' && TRIVIAL_PUNCTUATOR.test(token.value)) ||
    token.type === 'HTMLTagOpen' ||
    token.type === 'HTMLEndTagOpen' ||
    token.type === 'HTMLTagClose' ||
    token.type === 'HTMLSelfClosingTagClose'
  )
}
function isTrivialToken (token) {
  return token != null && (
    (token.type === 'Punctuator' && TRIVIAL_PUNCTUATOR.test(token.value)) ||
    token.type === 'HTMLTagOpen' ||
    token.type === 'HTMLEndTagOpen' ||
    token.type === 'HTMLTagClose' ||
    token.type === 'HTMLSelfClosingTagClose'
  )
}
function isTrivialToken ( token ) { return token != null && ( ( token . type === 'Punctuator' && TRIVIAL_PUNCTUATOR . test ( token . value ) ) || token . type === 'HTMLTagOpen' || token . type === 'HTMLEndTagOpen' || token . type === 'HTMLTagClose' || token . type === 'HTMLSelfClosingTagClose' ) }
Check whether a given token is trivial or not.
@param {Token} token The token to check.
@returns {boolean} `true` if the token is trivial.
Check whether a given token is trivial or not .