If the array does not change over time, using array indices is perfectly fine. You can use anything as a key as long as you guarantee that it stays the same for that specific element. If you don&#x27;t change or reorder the array, the element&#x27;s index does give such a guarantee.