otp-generator
otp-generator copied to clipboard
Refactor: enhance generator readability
- Simplify the checking of properties in
generateOptions
. - Remove extra check:
I guess checking if
generateOptions.digits === true
here is unecessary (it will always be true if the selected character is '0').