• If t has a metamethod __pairs, calls it with t as argument and returns the first three results from the call. Otherwise, returns three values: the next function, the table t, and nil, so that the construction

    for k,v in pairs(t) do body end

    will iterate over all key–value pairs of table t.

    See function next for the caveats of modifying the table during its traversal.

    Type Parameters

    Parameters

    Returns LuaIterable<LuaMultiReturn<[TKey, NonNullable<TValue>]>>

  • Type Parameters

    • T

    Parameters

    • t: T

    Returns LuaIterable<LuaMultiReturn<[keyof T, NonNullable<T[keyof T]>]>>

Generated using TypeDoc