Compare Revisions

String.prototype.trim()

Change Revisions

Revision 454597:

Revision 454597 by Brettz9 on

Revision 498467:

Revision 498467 by mitar on

Title:
String.trim
String.trim
Slug:
Web/JavaScript/Reference/Global_Objects/String/Trim
Web/JavaScript/Reference/Global_Objects/String/Trim
Tags:
"String Methods", "String"
String Methods, String,
Content:

Revision 454597
Revision 498467
t84    return this.replace(/^\s+|\s+$/g, '');t84    return this.replace(/^\s+|\s+$/gm, '');

Back to History