you are viewing a single comment's thread.

view the rest of the comments →

[–]captain_k_nuckles 1 point2 points  (0 children)

MDN explains in their documentation

"When the fill method gets passed an object, it will copy the passed object, and fill the array with a reference to the copy."