Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add options #38

Open
tj-commits opened this issue Aug 11, 2024 · 0 comments
Open

Add options #38

tj-commits opened this issue Aug 11, 2024 · 0 comments

Comments

@tj-commits
Copy link

I think there should be another parameter/argument for options in the isNumber function because some people may not want isNumber to return true when a stringified number is passed in. Therefore the following options should be included in an optional options parameter/argument:

allowStrings: boolean // allow strings that are numbers like "1" to be considered numbers in isNumber()
allowInfiniteNumbers: boolean // allow numbers that are not finite because your library currently does an isFinite check which should be optional

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant