Tagged “gotchas”
-
TIL array fill references the same object in memory javascript gotchas
When you use `array.fill` to create inner arrays, it's actually just referencing the same space in memory.
See all tags.
When you use `array.fill` to create inner arrays, it's actually just referencing the same space in memory.
See all tags.