UNPKG
@isentinel/eslint-plugin-comment-length
Version:
latest (2.2.0)
2.2.0
1.7.3
lasselupe33/eslint-plugin-comment-length
@isentinel/eslint-plugin-comment-length
/
src
/
utils
/
is-punctuation.ts
6 lines
(4 loc)
•
169 B
text/typescript
View Raw
1
2
3
4
5
6
const
punctuation = [
","
,
"."
,
"?"
,
":"
,
"!"
,
";"
];
export
function
isPunctuation
(
char
: string | undefined)
: boolean {
return
!!
char
&& punctuation.
includes
(
char
); }