Skip to main content

Try it Live

Run Hardfork examples in the interactive playground

    Operator-Style API

    lte mimics the ≤ operator for clearer code:

    Usage Patterns

    Maximum Version Checks

    Range Validation

    Network Configuration

    Chronological Ordering

    Uses chronological deployment order:

    Comparison with isBefore

    Unlike isBefore, lte returns true for equal versions:

    Performance

    Time Complexity: O(1) - Array index comparison Typical Time: ~10-20ns per call

    See Also

    • gte - Greater than or equal
    • lt - Strictly less than (alias for isBefore)
    • isBefore - Strictly less than