slice(0) doesn't do anything

It copies the array is what it does, but a simple set works here.