I doubt it, JavaScript doesn't support pass by reference out parameters. When you call myVar.trim() you are in fact calling trim(myVar) and the function trim is written as:
Code:
function trim(this)
{
//code here
}
i.e. the first parameter is the instance of the class that called the function.
--
Joe