Skip to content

Java script : String.trimAll()

Govind Prasad Gupta edited this page Oct 2, 2020 · 1 revision

String.trimAll()

Target:

Applicable with String Data Type.

Description :

remove all extra spaces, tabs and new line characters from string and return string with single space between words.

Syntax:

String.trimAll()

Usase:

1. " hello how are you? ".trimAll() It return string "hello how are you?"

Clone this wiki locally