Detecting nil-vs-omitted function arguments
⭐ Starfall•Updated 2 days ago•0 views
Use select('#', ...) to count args - distinguishes f(nil) from f() where a plain param check can't.
How to check if nil was passed vs no argument without varargs
Use select('#', ...) to count args - distinguishes f(nil) from f() where a plain param check can't.