Javascript String wtf()

Description

Javascript String wtf()


String.prototype.wtf = function () {
  var re = /.*/;//from   ww  w .  jav  a 2s .  co  m
  return this.replace(re, 'WTF?!');  
};



PreviousNext

Related