This is a nice pattern in Lua to make it possible to add parameters to a function without needing to break backwards compatibility with older code.
The same concept works in Javascript which is described in more detail here.
This is a nice pattern in Lua to make it possible to add parameters to a function without needing to break backwards compatibility with older code.
The same concept works in Javascript which is described in more detail here.