If there is no equivalent what is the suggested way to check for nil params.
There is no need for it. If your function doesn't accept nil parameters, make sure the parameters aren't optionals.
If you want to assert that a value is non-nil you can use a regular assert.
assert(value != nil, "nil value")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With