Example
Code: Select all
/**
* Removes leading and ending spaces from the string
* @return {String}
*/
String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g, '');
}
i42. tinypic. com/ao8cab.jpg
Code: Select all
/**
* Removes leading and ending spaces from the string
* @return {String}
*/
String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g, '');
}
Users browsing this forum: No registered users and 1 guest