Skip to content

ipairs

ipairs(table)

Returns three values: an iterator function, the table table, and 0. Each time the iterator function is called, it returns the next numerical index-value in the table.

When used in a generic for-in-loop, the return values can be used to iterate over each numerical index in the table.