Skip to content

Add options #38

@tj-commits

Description

@tj-commits

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions