Array-like

An attribute of an object that requires indexable values like an array and a non-negative integer length property.


Examples

const arrLike1 = {
  0: 'hello',
  1: 'world',
  length: 2
};

const arrLike2 = {
  length: 0
};

// arrays are also array-like
const arrLike3 = ['hello', 'world'];