Arrays are objects in JavaScript
Arrays are objects
First, let's confirm that arrays are objects.
This is key to understanding how they work:
const arr = ['a', 'b', 'c']
// Under the hood, it's like this:
const arrAsObject = {
'0': 'a',
'1': 'b',
'2': 'c',
length: 3...
tigerabrodi.blog4 min read
Dusan Skiljevic
Oh look, a bug
What happens with object references? What mode does V8 take when working with references?