Javascript String trimFrontBack()

Description

Javascript String trimFrontBack()

String.prototype.trimFrontBack = function () {

  return this.replace(/^\s+|\s+$/g, '');
  
};



PreviousNext

Related