When you want to save an array into another array
Arrays in another array will become same as above.
But there's a real simple way to fix it with array.flat([])
Let's give it a try.
if you exchange push array as above
You can see the correct form!
'JavaScript' 카테고리의 다른 글
JS Finding out Prime Number (0) | 2022.10.30 |
---|---|
JavaScript Tip (2) - Using tip (1) for undo and redo function in array (0) | 2022.10.30 |