I am creating a map of array using this:
var m = new Map(Array(40).fill(new Array()).entries()); Now, I want to push values in those array. But when I do this:
m.get(1).push(10) The value 10 gets pushed into all the arrays instead of the one at 1st position.