Javascript String reverse(del)

Description

Javascript String reverse(del)

String.prototype.reverse = (function (del) {
  del = del || "";
  return this.split(del).reverse().join(del);
});//from  w  w w.  j  a  v  a 2s .c  o m



PreviousNext

Related