What is the best way to shuffle a 2D array in javascript ?
I need my 2D array to be shuffled after being created.
will this be a good solution of doing this?
thx
What is the best way to shuffle a 2D array in javascript ?
I need my 2D array to be shuffled after being created.
will this be a good solution of doing this?
thx
You can use lodash. It's javascript lib for array manipulation.
You can shuffle with lodash:
_.shuffle(yourArray);