I am build an autocomplete that searches off of a CouchDB View.
I need to be able to take the final character of the input string, and replace the last character wit
var input = "Hello"; var result = "" for(var i=0;i