• Checks whether the before date comes before the after date

    Returns

    true if the before date comes before the after date, false otherwise

    Example

    expect(isBefore(new Date(1), new Date(2)).value).toBeTruthy()
    

    Parameters

    • before: Date

      The before date

    • after: Date

      The after date

    Returns Result<boolean | undefined>

Generated using TypeDoc