Javascript String trim(charlist)

Description

Javascript String trim(charlist)


'use strict';/*from www.  java 2s. c  om*/

String.prototype.trim = function (charlist) {
  return this.ltrim(charlist).rtrim(charlist);
};



PreviousNext

Related