mozilla

Compare Revisions

String.prototype.trim()

Change Revisions

Revision 509869:

Revision 509869 by fscholz on

Revision 522859:

Revision 522859 by George on

Title:
String.prototype.trim()
String.prototype.trim()
Slug:
Web/JavaScript/Reference/Global_Objects/String/Trim
Web/JavaScript/Reference/Global_Objects/String/Trim
Tags:
"ECMAScript5", "prototype", "String", "Method", "JavaScript"
"ECMAScript5", "prototype", "String", "Method", "JavaScript"
Content:

Revision 509869
Revision 522859
t53    return this.replace(/^\s+|\s+$/gm, '');t53    return this.replace(/^\s+|\s+$/g, '');

Back to History