[Racine des codes] [Page précédente]

add-trim-function-to-String

/Html JavaSript/add-trim-function-to-String.js
String.prototype.trim = function() {
  return this.replace(/^[\s]+/g,"").replace(/[\s]+$/g,"");
}
[edit]