https://javascript.plainenglish.io/mastering-sparse-arrays-in-javascript-simplifying-your-data-manipulation-34de49676d45