版博士V2.0程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

22 строки
418 B

  1. /**
  2. * @param {Comment} node
  3. * @returns {boolean}
  4. */
  5. const isJSDocComment = (node) =>
  6. node.type === 'Block' &&
  7. node.value.charAt(0) === '*' &&
  8. node.value.charAt(1) !== '*'
  9. /**
  10. * @param {Comment} node
  11. * @returns {boolean}
  12. */
  13. const isBlockComment = (node) =>
  14. node.type === 'Block' &&
  15. (node.value.charAt(0) !== '*' || node.value.charAt(1) === '*')
  16. module.exports = {
  17. isJSDocComment,
  18. isBlockComment
  19. }