I am trying to make a very basic \"secret santa\" generator as one of my first Javascript projects. I have searched for hours for a solution to this problem but so far noth
If you don't need to keep the original array you can remove the names as they get selected and each time you pick a name check that it isn't an empty string before pushing it to the next array.