I know that this is the future technology, but MDN doesn't cover all use-cases, ans almost any environment already supports this method. Here's an example I am worried about:
var groups = new Array(4);
groups.fill([]);
groups[0].push(1);
groups[0] // --> [ 1 ]
groups[1] // --> [ 1 ]
So it's not just fills groups
with empty array, it fills groups
with the same one empty array!
Is this an intended behavior or things can change in the future?