Usually I convert my data arrays in way that lets me access elements faster later in the code, say the element is an object with an ID property then I set this property as the element's key in the array. To give you an example let's suppose I have this:
[{id: 1, name: "a"}, {id: 2, name: "b"}, etc..]
becomes
[1 => {name: "a"}, 2 => {name: "b"}, etc...]
then I can simply use a[2] without iterating over the array to find the element with ID = 2
The problem is some values might be missing which causes empty elements in the array:
1599,
<2 empty items>,
1105,
892,
<2 empty items>,
86,
1695,
999,
<1 empty item>,
967,
1663,
<3 empty items>,
1673,
<4 empty items>,
1043,
998,
1350,
1688,
<3 empty items>,
2013,
<2 empty items>,
136,
1463,
1632,
<1 empty item>,
1827,
1680,
1293,
<2 empty items>,
844,
1696,
1108,
<1 empty item>,
925,
<6 empty items>,
1144,
<7 empty items>,
905,
<3 empty items>,
2006,
<7 empty items>,
1876,
<2 empty items>,
1609,
<2 empty items>,
2232,
<1 empty item>,
1561,
<1 empty item>,
2203,
<1 empty item>,
1400,
<3 empty items>,
1381,
1287,
1312,
<2 empty items>,
933,
... 4011 more items ]
Are these using memory, should I be concerned?

{a: 1, c:3}there is no memory reserved forb. Same with the (essentially){0: "a", 2: "c"}