textConvert
    Preparing search index...

    Function clear

    • Clear punctuations from a string and replaces it with a whitespace character or returns an array of strings.

      Parameters

      • text: string

        String input to clear from punctuation.

      Returns string

      Either a string or an array of strings cleared from punctuations based on the arguments passed.

      clear('Hello, world!'); // 'hello world'