+ 1
How can I remove an array element from a multidimensional array.
win_moves = [[0, 1, 2], [3, 4, 5], [6, 7, 8], [0, 3, 6], [1, 4, 7], [2, 5, 8], [0, 4, 8], [2, 4, 6]]; How do I remove a specific element from win_moves array?
3 Answers
+ 3
You can try the array method splice();
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice
https://code.sololearn.com/c6sj2fRdrooT/#node