I’ve always been wondering if its required to use ipairs or pairs in iteration loops. I understand pairs is used for dictionary while ipairs are used in array table structures but I often see examples of people not using pairs or ipairs just like the example shown:
This is called generalized iteration, which is a feature of Luau. Personally, I still use pairs and ipairs in my code for clarity, but you don’t need to use them anymore.