Posted By

cfleschhut on 04/28/10


Tagged

javascript object String prototype native reverse


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

irrevokable


JavaScript: Reverse String [Extended Native]


 / Published in: JavaScript
 

URL: http://jsfiddle.net/Bu3As/

  1. String.prototype.reverse = function() {
  2. return this.split("").reverse().join("");
  3. }

Report this snippet  

You need to login to post a comment.