If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

This prototype function exists for arrays but not strings... until now! This will reverse a string for example from "abcd" to "dcab". I can't see any use for it but I was outraged that it had support for Array but not for String .

You may be familiar with Ultimater's Array.prototype.escape. Recently I read about a prototype function built into JavaScript called Array.prototype.map that makes it easy to apply a function to each element of an array. That lead me to nullify Ultimaters prototype with:

myArray.map(escape);

However upon testing this to my surprise it did not work! I realised that this map function works only in JavaScript 1.5 and is not well supported, so I wrote it!

Voting
Since there have been several functions provided through-out this thread and it's becoming very hard to find that brilliant function your looking for,
there has been added a new feature to allow you to vote for the function-links provided in my first post -- the index.
For more details, see my first post.