Skip to content

Min/max #3

@dy

Description

@dy

Found out that in our project we use pretty often date clamping, like, only past or only future:

let pastDate = new Date(Math.min(someFutureDate, new Date))

Would be handy to have instead

Dates.min(dateA, dateB)
Dates.max(dateA, dateB)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions