Is there any way to assign a variable through a function?
Here's an example:
var test = "foo"
assign(test, "bar")
console.log(test) // "bar"
Of course I know you could do something like this:
var test = "foo"
test = assign(test, "bar")
console.log(test) // "bar"
But I'm curious if it's possible to do this without the direct =
assignment.