What is the difference between unpack () and table.unpack ()?

Hi! I just wanted to ask what is the difference between unpack () and table.unpack (). I tried to print the unpacked table and it printed the same in both cases.

local table1 = {"One","Two","Three"}
local table2 = {"One","Two","Three"}

print(table.unpack(table1)) -- prints 'One' 'Two' 'Three'
print(unpack(table2)) -- prints the same thing

Is there any difference between these functions?

Correct me if I am wrong but there is no different lol

1 Like

They seem to be the same. Check out this.

1 Like

table.unpack is more stable (correct me if this wrong).

1 Like

Ok. Right. Thanks for response!