Skip to content

Inconsistent Results of isDate in Multi-Frame Applications #541

Closed
@Dzek

Description

When dateFns.isDate(argument) is used in a multi framed application (e.g. GWT), isDate() always returns false for a valid date.
Just throwing this out there but I propose a solution similar to what is described here:
instanceof considered harmful

The link also helps explain the problem without going into further detail here.
I am using date-fns v1.28.5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Inconsistent Results of isDate in Multi-Frame Applications · Issue #541 · date-fns/date-fns