Skip to content

[Issue]: isNumber ignores javascript values: -Infinity & Infinity and returns false #32

@rehman-00001

Description

@rehman-00001

Couple of issues I encountered when using this library in my project:

isNumber - returns false for javascript numeric values: -Infinity & Infinity and for numbers created using new Number(..) wrapper;

isBoolean & isString returns false for objects created using new keywords.
i.e., new String('asdf') & new Boolean()

@flexdinesh, please let me know if this need to be handled

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