Skip to content

@technobuddha > library > String > Categorization

Function: isPunctuation()

ts
function isPunctuation(input: string): boolean;

Defined in: is-punctuation.ts:10

Test a string for all punctuation characters

Parameters

ParameterTypeDescription
inputstringstring to test

Returns

boolean

true, if all characters in the string are punctuation