I have a string in javascript
var Foo = "Bar";
I have a function that does a manipulation on this string. to add this function to the string I did this
String.prototype.func = function(){
// code
}
But this function will work for every string. I want this function to be called only from my variable Foo