I know that 2D arrays can be created like this but I don’t understand this line of code from .map to the end
new Array(len).fill(0).map(row => new Array(len)).fill(0)
any help is appreciated
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
I know that 2D arrays can be created like this but I don’t understand this line of code from .map to the end
new Array(len).fill(0).map(row => new Array(len)).fill(0)
any help is appreciated