Closed JhoMartins closed 3 years ago
Sorry for taking forever to answer this. Yeah, that's fine. nil
is a falsy value, and you shouldn't have any issues with it, unless you're type checking.
If you really need a boolean, use !!CPF.valid?(number, strict: true)
to coerce the returning value.
This is a valid cpf number
01234567890
but when I call theCPF.valid?
function I have this behavior: