Fun With JavaScript: Replace Array Contents Without Reassigning
I came up against this little puzzle the other day. The specifics aren’t important, I’m working with a 3rd party library and in one of their exposed hooks they pass me a reference to an array. I want to completely replace the contents of that array with some



