strip :: String

strip() -> string

 

Strips all leading and trailing whitespace from a string.

 

Example

 

'    hello world!    '.strip();

// -> 'hello world!'


Prototype API 1.5.0 - prototypejs.org